diff --git a/docs/docs/features/pr-status.md b/docs/docs/features/pr-status.md index cc64db0d2..ea9401d73 100644 --- a/docs/docs/features/pr-status.md +++ b/docs/docs/features/pr-status.md @@ -54,16 +54,16 @@ GitHub's pull request list shows only titles, labels and a check icon, so ProPR | State | Title | | --- | --- | | `working` | `πŸ”¨ [3475 by Claude Opus 5.5] Let an automation run when a plan issue is blocked` | -| `needs_attention` | `⚠️β‘₯ [3475 by Claude Opus 5.5] …`, with the latest review score (β‘  to β‘©) when there is one | -| `ready` | `βœ…β‘§ [3510 by Claude Opus 5.5] Apply library extensions automatically…`, with the latest review score when there is one | +| `needs_attention` | `βš οΈβž… [3475 by Claude Opus 5.5] …`, with the latest review score (βž€ to βž‰) when there is one | +| `ready` | `βœ…βž‡ [3510 by Claude Opus 5.5] Apply library extensions automatically…`, with the latest review score when there is one | -The slot is one emoji, the score beside ⚠️ and βœ…, then a single space and the title exactly as it was. An epic pull request follows the emoji with its progress, and shows a pie circle in place of πŸ”¨ while it is working; see [Epic pull requests](#epic-pull-requests). A `none` pull request has no slot. +The slot is one emoji, the score beside ⚠️ and βœ…, then a single space and the title exactly as it was. The score uses the Dingbats circled digits βž€ to βž‰. A title still showing an older β‘  to β‘© score is recognised and gets the new digit on its next rename. An epic pull request follows the emoji with its progress, and shows a pie circle in place of πŸ”¨ while it is working; see [Epic pull requests](#epic-pull-requests). A `none` pull request has no slot. Every title change adds a "changed the title" entry to the timeline, so the title changes far less often than the body line: - A new pull request is created with `πŸ”¨` already in its title, so creation costs no rename. - The title changes only when the state changes, or when the score beside ⚠️ or βœ… changes. Activity inside `working` (a review starting, the next Ultrafix cycle, waiting for CI) never renames the pull request; that detail is in the body line. -- ProPR writes ⚠️ or βœ… only once the state has held for about 30 seconds and nothing for the pull request is queued or about to start. The short gap between an Ultrafix review and its fix, or between a failed check and its CI follow-up, costs no rename. Going back to `πŸ”¨` (for example when you post a follow-up on a `βœ…β‘§` pull request) is immediate. +- ProPR writes ⚠️ or βœ… only once the state has held for about 30 seconds and nothing for the pull request is queued or about to start. The short gap between an Ultrafix review and its fix, or between a failed check and its CI follow-up, costs no rename. Going back to `πŸ”¨` (for example when you post a follow-up on a `βœ…βž‡` pull request) is immediate. - No change is sent when the title is already right. When ProPR changes both the body line and the title, it does so in one update. - ProPR only ever replaces the slot it recognises at the start of the title. Your edits to the rest of the title are kept. If you remove the slot, it stays off until the state changes. ProPR also leaves the title alone when adding the slot would take it past GitHub's 256-character limit. - When the pull request is merged or closed, ProPR removes the slot: one final rename, so closed pull request lists and release notes stay clean. diff --git a/packages/api/test/mcpMergePreconditions.test.ts b/packages/api/test/mcpMergePreconditions.test.ts index 3d452f02c..ec7882b41 100644 --- a/packages/api/test/mcpMergePreconditions.test.ts +++ b/packages/api/test/mcpMergePreconditions.test.ts @@ -185,7 +185,7 @@ test('executeTool persists specific PR state failures and get_operation returns if (route === 'GET /repos/{owner}/{repo}/pulls/{pull_number}') { requestedPull = Number(args.pull_number); if (requestedPull === 43) return { data: rest({ number: 43, state: 'closed', closed_at: '2026-09-27T12:00:00Z' }) }; - if (requestedPull === 45) return { data: rest({ number: 45, title: 'βœ…β‘§ [12 by Claude Opus 5.5] Add retries' } as PullRequestStateSource) }; + if (requestedPull === 45) return { data: rest({ number: 45, title: 'βœ…βž‡ [12 by Claude Opus 5.5] Add retries' } as PullRequestStateSource) }; if ([44, 46, 47, 48, 49].includes(requestedPull)) return { data: rest({ number: requestedPull }) }; if (requestedPull === 50) throw Object.assign(new Error('Server Error'), { name: 'HttpError', status: 502, response: { status: 502, headers: {}, data: { message: 'Server Error' } }, diff --git a/packages/core/test/pullRequestStatusTitle.test.ts b/packages/core/test/pullRequestStatusTitle.test.ts index 0ffdf3097..f41508bdc 100644 --- a/packages/core/test/pullRequestStatusTitle.test.ts +++ b/packages/core/test/pullRequestStatusTitle.test.ts @@ -203,7 +203,7 @@ test('creation costs no rename, and a full Ultrafix loop to the goal with passin await syncSettled(); await syncSettled(); - assert.deepEqual(github.renames, [`βœ…β‘§ ${TITLE}`]); + assert.deepEqual(github.renames, [`βœ…βž‡ ${TITLE}`]); }); test('checks pending keep πŸ”¨; a failure without follow-up shows ⚠️, passing checks show βœ…', async () => { @@ -218,12 +218,12 @@ test('checks pending keep πŸ”¨; a failure without follow-up shows ⚠️, passin assert.equal(github.pull.title, `πŸ”¨ ${TITLE}`, '⚠️ is held until it settles'); await new Promise(resolve => setTimeout(resolve, SETTLE_MS + 10)); await sync(); - assert.equal(github.pull.title, `βš οΈβ‘§ ${TITLE}`); + assert.equal(github.pull.title, `βš οΈβž‡ ${TITLE}`); github.checkRuns = [{ name: 'unit', status: 'completed', conclusion: 'success' }]; await syncSettled(); - assert.equal(github.pull.title, `βœ…β‘§ ${TITLE}`); - assert.deepEqual(github.renames, [`βš οΈβ‘§ ${TITLE}`, `βœ…β‘§ ${TITLE}`]); + assert.equal(github.pull.title, `βœ…βž‡ ${TITLE}`); + assert.deepEqual(github.renames, [`βš οΈβž‡ ${TITLE}`, `βœ…βž‡ ${TITLE}`]); }); test('a brief ⚠️ between a failed check and its queued follow-up costs no rename', async () => { @@ -245,7 +245,7 @@ test('a follow-up on a βœ… pull request renames it to πŸ”¨ at once and back only await addTask('issue', 'completed'); await addScore(8); await syncSettled(); - assert.equal(github.pull.title, `βœ…β‘§ ${TITLE}`); + assert.equal(github.pull.title, `βœ…βž‡ ${TITLE}`); const followUp = await addTask('pr-comment', 'processing', { comments: [{ commandMode: 'default' }] }); await sync(); @@ -256,8 +256,8 @@ test('a follow-up on a βœ… pull request renames it to πŸ”¨ at once and back only assert.equal(github.pull.title, `πŸ”¨ ${TITLE}`, 'still πŸ”¨ while the checks of the follow-up run'); github.checkRuns = [{ name: 'unit', status: 'completed', conclusion: 'success' }]; await syncSettled(); - assert.equal(github.pull.title, `βœ…β‘§ ${TITLE}`); - assert.deepEqual(github.renames, [`βœ…β‘§ ${TITLE}`, `πŸ”¨ ${TITLE}`, `βœ…β‘§ ${TITLE}`]); + assert.equal(github.pull.title, `βœ…βž‡ ${TITLE}`); + assert.deepEqual(github.renames, [`βœ…βž‡ ${TITLE}`, `πŸ”¨ ${TITLE}`, `βœ…βž‡ ${TITLE}`]); }); test('a person\'s edit to the rest of the title survives later state changes', async () => { @@ -267,7 +267,7 @@ test('a person\'s edit to the rest of the title survives later state changes', a await setTaskState(implementation, 'completed'); await addScore(9); await syncSettled(); - assert.equal(github.pull.title, 'βœ…β‘¨ [12 by Claude Opus 5.5] A better title, by a person'); + assert.equal(github.pull.title, 'βœ…βžˆ [12 by Claude Opus 5.5] A better title, by a person'); }); test('a slot a person removed comes back on the next state change, not before', async () => { @@ -403,7 +403,7 @@ test('the edited webhook of a ProPR rename causes no further write or work', asy }); test('[Epic] detection accepts titles with and without the slot', () => { - for (const slot of ['', 'πŸ”¨ ', '⚠️β‘₯ ', '⚠ ', 'βœ…β‘§ ', 'πŸ”¨ 3/5 ', 'β—‹ 0/5 ', 'β—” 1/5 ', 'β—‘ 3/5 ', 'β—• 4/5 ', '⚠️ 4/5 ', 'βœ… 5/5 ']) assert.equal(isEpicPullRequestTitle(`${slot}[Epic] Plan`), true, slot); + for (const slot of ['', 'πŸ”¨ ', 'βš οΈβž… ', '⚠ ', 'βœ…βž‡ ', 'πŸ”¨ 3/5 ', 'β—‹ 0/5 ', 'β—” 1/5 ', 'β—‘ 3/5 ', 'β—• 4/5 ', '⚠️ 4/5 ', 'βœ… 5/5 ']) assert.equal(isEpicPullRequestTitle(`${slot}[Epic] Plan`), true, slot); assert.equal(isEpicPullRequestTitle('Not an [Epic]'), false); assert.equal(isEpicPullRequestTitle(null), false); }); diff --git a/packages/shared/src/prTitleStatusSlot.ts b/packages/shared/src/prTitleStatusSlot.ts index ce3cf29d9..f98f99078 100644 --- a/packages/shared/src/prTitleStatusSlot.ts +++ b/packages/shared/src/prTitleStatusSlot.ts @@ -4,8 +4,8 @@ * review score as one circled digit), then a single space, then the title. * * πŸ”¨ [3475 by Claude Opus 5.5] Let an automation run when … - * ⚠️β‘₯ [3475 by Claude Opus 5.5] … - * βœ…β‘§ [3510 by Claude Opus 5.5] Apply library extensions automatically … + * βš οΈβž… [3475 by Claude Opus 5.5] … + * βœ…βž‡ [3510 by Claude Opus 5.5] Apply library extensions automatically … * * An epic pull request follows its emoji with how many of its issues are * merged into the epic branch, and shows no score. While it is working, a pie @@ -47,16 +47,23 @@ const EPIC_NONE = '\u25CB'; const EPIC_QUARTER = '\u25D4'; const EPIC_HALF = '\u25D1'; const EPIC_THREE_QUARTERS = '\u25D5'; -/** β‘  (U+2460) to β‘© (U+2469). */ -const CIRCLED_ONE = 0x2460; +/** + * The score is written with the Dingbats circled sans-serif digits βž€ (U+2780) + * to βž‰ (U+2789). The Enclosed Alphanumerics β‘  (U+2460) to β‘© (U+2469) that + * titles used before are drawn sideways by some platform fonts (#3576); they + * are still read, so an older title gets the new digit on its next update. + */ +const CIRCLED_ONE = 0x2780; /** * The slot, anchored at the start of the title and followed by exactly one * space. ⚠ is accepted with and without its variation selector. The score is - * only recognised beside ⚠️ and βœ…. An epic's ` merged/total` may follow; a - * working epic's circle is recognised only with it. + * only recognised beside ⚠️ and βœ…, as βž€β€“βž‰ or the older ①–⑩. An epic's + * ` merged/total` may follow; a working epic's circle is recognised only with it. + * Every non-ASCII character is escaped: the desktop renderer can decode the + * bundle as Latin-1, where a literal βž€ turns into an out-of-order range. */ -export const PR_TITLE_STATUS_SLOT_PATTERN = /^(?:(?:\u{1F528}|(?:⚠️?|βœ…)[β‘ -β‘©]?)(?: \d{1,6}\/\d{1,6})?|[\u25CB\u25D4\u25D1\u25D5] \d{1,6}\/\d{1,6}) /u; +export const PR_TITLE_STATUS_SLOT_PATTERN = /^(?:(?:\u{1F528}|(?:\u26A0\uFE0F?|\u2705)[\u2460-\u2469\u2780-\u2789]?)(?: \d{1,6}\/\d{1,6})?|[\u25CB\u25D4\u25D1\u25D5] \d{1,6}\/\d{1,6}) /u; /** The circle a working epic shows for `merged` of `total` issues merged. */ function epicWorkingCircle(merged: number, total: number): string { diff --git a/packages/shared/test/prTitleStatusSlot.test.ts b/packages/shared/test/prTitleStatusSlot.test.ts index e5399ae2a..e9057ee83 100644 --- a/packages/shared/test/prTitleStatusSlot.test.ts +++ b/packages/shared/test/prTitleStatusSlot.test.ts @@ -8,34 +8,47 @@ const TITLE = '[3475 by Claude Opus 5.5] Let an automation run when a plan issue test('renders one slot per persistent state, with the score beside ⚠️ and βœ…', () => { assert.equal(renderStatusSlot({ state: 'working', score: 8 }), 'πŸ”¨'); - assert.equal(renderStatusSlot({ state: 'needs_attention', score: 6 }), '⚠️β‘₯'); - assert.equal(renderStatusSlot({ state: 'ready', score: 8 }), 'βœ…β‘§'); - assert.equal(renderStatusSlot({ state: 'ready', score: 10 }), 'βœ…β‘©'); - assert.equal(renderStatusSlot({ state: 'ready', score: 1 }), 'βœ…β‘ '); + assert.equal(renderStatusSlot({ state: 'needs_attention', score: 6 }), 'βš οΈβž…'); + assert.equal(renderStatusSlot({ state: 'ready', score: 8 }), 'βœ…βž‡'); + assert.equal(renderStatusSlot({ state: 'ready', score: 10 }), 'βœ…βž‰'); + assert.equal(renderStatusSlot({ state: 'ready', score: 1 }), 'βœ…βž€'); assert.equal(renderStatusSlot({ state: 'ready', score: null }), 'βœ…'); assert.equal(renderStatusSlot({ state: 'needs_attention', score: 0 }), '⚠️', 'no circled digit outside 1 to 10'); - assert.equal(renderStatusSlot({ state: 'ready', score: 7.6 }), 'βœ…β‘§'); + assert.equal(renderStatusSlot({ state: 'ready', score: 7.6 }), 'βœ…βž‡'); assert.equal(renderStatusSlot(null), null); }); test('sets, replaces and removes only the slot', () => { assert.equal(withStatusSlot(TITLE, { state: 'working' }), `πŸ”¨ ${TITLE}`); - assert.equal(withStatusSlot(`πŸ”¨ ${TITLE}`, { state: 'ready', score: 8 }), `βœ…β‘§ ${TITLE}`); - assert.equal(withStatusSlot(`βœ…β‘§ ${TITLE}`, { state: 'needs_attention', score: 6 }), `⚠️β‘₯ ${TITLE}`); - assert.equal(withStatusSlot(`⚠️β‘₯ ${TITLE}`, null), TITLE); - assert.equal(withStatusSlot(`βœ…β‘§ ${TITLE}`, { state: 'working' }), `πŸ”¨ ${TITLE}`); + assert.equal(withStatusSlot(`πŸ”¨ ${TITLE}`, { state: 'ready', score: 8 }), `βœ…βž‡ ${TITLE}`); + assert.equal(withStatusSlot(`βœ…βž‡ ${TITLE}`, { state: 'needs_attention', score: 6 }), `βš οΈβž… ${TITLE}`); + assert.equal(withStatusSlot(`βš οΈβž… ${TITLE}`, null), TITLE); + assert.equal(withStatusSlot(`βœ…βž‡ ${TITLE}`, { state: 'working' }), `πŸ”¨ ${TITLE}`); assert.equal(withStatusSlot('', { state: 'working' }), 'πŸ”¨ '); }); test('accepts ⚠ with and without the variation selector', () => { - assert.equal(readStatusSlot(`⚠️β‘₯ ${TITLE}`), '⚠️β‘₯'); - assert.equal(readStatusSlot(`⚠β‘₯ ${TITLE}`), '⚠β‘₯'); + assert.equal(readStatusSlot(`βš οΈβž… ${TITLE}`), 'βš οΈβž…'); + assert.equal(readStatusSlot(`βš βž… ${TITLE}`), 'βš βž…'); assert.equal(stripStatusSlot(`⚠ ${TITLE}`), TITLE); - assert.equal(withStatusSlot(`⚠β‘₯ ${TITLE}`, { state: 'ready', score: 9 }), `βœ…β‘¨ ${TITLE}`); + assert.equal(withStatusSlot(`βš βž… ${TITLE}`, { state: 'ready', score: 9 }), `βœ…βžˆ ${TITLE}`); +}); + +test('writes the score as a Dingbats circled digit and still reads the older ①–⑩ slot (#3576)', () => { + for (let score = 1; score <= 10; score += 1) { + const slot = renderStatusSlot({ state: 'ready', score }) as string; + assert.equal(slot.codePointAt(1), 0x2780 + score - 1, `score ${score}`); + } + for (const legacy of ['β‘ ', 'β‘₯', 'β‘©']) { + assert.equal(readStatusSlot(`⚠️${legacy} ${TITLE}`), `⚠️${legacy}`); + assert.equal(stripStatusSlot(`βœ…${legacy} ${TITLE}`), TITLE); + assert.equal(withStatusSlot(`⚠️${legacy} ${TITLE}`, { state: 'needs_attention', score: 6 }), `βš οΈβž… ${TITLE}`); + } + assert.equal(hasStatusSlot(`πŸ”¨β‘₯ ${TITLE}`), false, 'no score beside πŸ”¨ in either form'); }); test('recognises only a strict slot anchored at the start', () => { - for (const title of [TITLE, `x πŸ”¨ ${TITLE}`, `πŸ”¨${TITLE}`, `πŸ”¨β‘§ ${TITLE}`, `β‘§ ${TITLE}`, ` πŸ”¨ ${TITLE}`, `πŸ”§ ${TITLE}`]) { + for (const title of [TITLE, `x πŸ”¨ ${TITLE}`, `πŸ”¨${TITLE}`, `πŸ”¨βž‡ ${TITLE}`, `βž‡ ${TITLE}`, ` πŸ”¨ ${TITLE}`, `πŸ”§ ${TITLE}`]) { assert.equal(hasStatusSlot(title), false, title); assert.equal(stripStatusSlot(title), title, title); } @@ -47,13 +60,13 @@ test('recognises only a strict slot anchored at the start', () => { test('leaves the title unchanged when the slot would exceed the 256 character limit', () => { const long = 'a'.repeat(254); assert.equal(withStatusSlot(long, { state: 'working' }), long); - assert.equal(withStatusSlot(`πŸ”¨ ${'b'.repeat(250)}`, { state: 'ready', score: 8 }), `βœ…β‘§ ${'b'.repeat(250)}`); + assert.equal(withStatusSlot(`πŸ”¨ ${'b'.repeat(250)}`, { state: 'ready', score: 8 }), `βœ…βž‡ ${'b'.repeat(250)}`); const exact = 'c'.repeat(253); assert.equal(withStatusSlot(exact, { state: 'working' }).length, 256); }); test('merge commit titles carry no slot', () => { - assert.deepEqual(mergeCommitTitleFields({ number: 3510, title: `βœ…β‘§ ${TITLE}` }, 'squash'), { commit_title: `${TITLE} (#3510)` }); + assert.deepEqual(mergeCommitTitleFields({ number: 3510, title: `βœ…βž‡ ${TITLE}` }, 'squash'), { commit_title: `${TITLE} (#3510)` }); assert.deepEqual(mergeCommitTitleFields({ number: 3510, title: TITLE }, 'squash'), { commit_title: `${TITLE} (#3510)` }); assert.deepEqual(mergeCommitTitleFields({ number: 7, title: `πŸ”¨ ${TITLE}`, headLabel: 'integry:feature' }, 'merge'), { commit_title: 'Merge pull request #7 from integry/feature', commit_message: TITLE }); diff --git a/propr-ui/src/components/Dashboard/workTitle.test.ts b/propr-ui/src/components/Dashboard/workTitle.test.ts index 8802339d1..4cd47106c 100644 --- a/propr-ui/src/components/Dashboard/workTitle.test.ts +++ b/propr-ui/src/components/Dashboard/workTitle.test.ts @@ -3,7 +3,7 @@ import { splitWorkTitle } from './workTitle'; describe('splitWorkTitle', () => { it('parses titles with and without the PR status slot', () => { - for (const slot of ['', 'πŸ”¨ ', '⚠️β‘₯ ', '\u26A0β‘₯ ', 'βœ…β‘§ ', 'βœ… ']) { + for (const slot of ['', 'πŸ”¨ ', 'βš οΈβž… ', '\u26A0βž… ', 'βœ…βž‡ ', 'βœ… ']) { expect(splitWorkTitle(`${slot}[3475 by Claude Opus 5.5] Let an automation run`, 'issue')) .toEqual({ type: 'Implement', title: 'Let an automation run' }); expect(splitWorkTitle(`Fix PR #3510: ${slot}[3510 by Claude Opus 5.5] Apply library extensions`, 'pr-comment')) diff --git a/propr-ui/src/components/Dashboard/workTitle.ts b/propr-ui/src/components/Dashboard/workTitle.ts index eb06d230a..4b8c44ccd 100644 --- a/propr-ui/src/components/Dashboard/workTitle.ts +++ b/propr-ui/src/components/Dashboard/workTitle.ts @@ -63,7 +63,7 @@ function taskTypeLabel(taskType: string | null | undefined): string | null { } export function splitWorkTitle(title: string | null | undefined, taskType?: string | null): WorkTitle { - // A PR title may lead with its status slot (`βœ…β‘§ `); older task titles copied it after the prefix. + // A PR title may lead with its status slot (`βœ…βž‡ `); older task titles copied it after the prefix. let rest = stripStatusSlot((title ?? '').trim()); let type: string | null = null; diff --git a/propr-ui/src/components/TaskList/rowModel.test.ts b/propr-ui/src/components/TaskList/rowModel.test.ts index 1010dd4f8..be5588848 100644 --- a/propr-ui/src/components/TaskList/rowModel.test.ts +++ b/propr-ui/src/components/TaskList/rowModel.test.ts @@ -11,7 +11,7 @@ const image = (index: number) => ({ type: 'image', title: `Preview ${index}`, ur describe('sanitizeTaskTitle', () => { it('drops the PR status slot and the model tag, with or without the slot', () => { - for (const slot of ['', 'πŸ”¨ ', '⚠️β‘₯ ', 'βœ…β‘§ ']) { + for (const slot of ['', 'πŸ”¨ ', 'βš οΈβž… ', 'βœ…βž‡ ']) { expect(sanitizeTaskTitle(`Ultrafix PR #2664: ${slot}[2659 by GPT-6 Astra] Stop work when intent is withdrawn`)) .toEqual({ type: 'Ultrafix', title: 'Stop work when intent is withdrawn', fullTitle: 'Stop work when intent is withdrawn' }); expect(sanitizeTaskTitle(`PR #2664: ${slot}Stop work`).title).toBe('Stop work'); diff --git a/propr-ui/src/components/TaskList/utils.statusSlot.test.ts b/propr-ui/src/components/TaskList/utils.statusSlot.test.ts index 4586796ba..973c9e870 100644 --- a/propr-ui/src/components/TaskList/utils.statusSlot.test.ts +++ b/propr-ui/src/components/TaskList/utils.statusSlot.test.ts @@ -3,7 +3,7 @@ import { getCleanDocumentTitle } from './utils.tsx'; import { cleanHeaderTaskTitle } from '../headerUtils'; describe('title parsers and the PR status slot', () => { - for (const slot of ['', 'πŸ”¨ ', '⚠️β‘₯ ', '⚠ ', 'βœ…β‘§ ']) { + for (const slot of ['', 'πŸ”¨ ', 'βš οΈβž… ', '⚠ ', 'βœ…βž‡ ']) { it(`getCleanDocumentTitle reads the [N by Model] prefix with slot "${slot}"`, () => { expect(getCleanDocumentTitle(`${slot}[3475 by Claude Opus 5.5] Let an automation run`)).toBe('3475: Let an automation run'); expect(getCleanDocumentTitle(`Followup: ${slot}[870 by Claude Opus] Update checkout`)).toBe('870: Update checkout'); diff --git a/propr-ui/src/components/TaskList/utils.tsx b/propr-ui/src/components/TaskList/utils.tsx index bd2b43743..625a56a53 100644 --- a/propr-ui/src/components/TaskList/utils.tsx +++ b/propr-ui/src/components/TaskList/utils.tsx @@ -20,7 +20,7 @@ export const shouldDimTask = (task: Task): boolean => { * @returns Clean title in format "issueId: title" or the original title if no pattern matches */ /** - * The title without a PR status slot (`πŸ”¨ `, `βœ…β‘§ `), at its start or right + * The title without a PR status slot (`πŸ”¨ `, `βœ…βž‡ `), at its start or right * after a `Followup:` / `New Issue:` prefix. */ const withoutStatusSlot = (title: string): string => { diff --git a/propr-ui/src/components/headerUtils.ts b/propr-ui/src/components/headerUtils.ts index daa14255b..386e4a114 100644 --- a/propr-ui/src/components/headerUtils.ts +++ b/propr-ui/src/components/headerUtils.ts @@ -42,7 +42,7 @@ export const formatRelativeTime = (dateString: string): string => { /** * A task title for the header's task list: without the `Followup:` prefix, a - * PR status slot (`πŸ”¨ `, `βœ…β‘§ `) or the leading `[N by Model]` tag. + * PR status slot (`πŸ”¨ `, `βœ…βž‡ `) or the leading `[N by Model]` tag. */ export function cleanHeaderTaskTitle(title?: string): string { if (!title) return ''; diff --git a/test/autoMergeOperations.test.ts b/test/autoMergeOperations.test.ts index 559d5076d..151adb0d0 100644 --- a/test/autoMergeOperations.test.ts +++ b/test/autoMergeOperations.test.ts @@ -61,7 +61,7 @@ test('GitHub refusing to arm at all is reported as unavailable so callers merge test('the merge commit headline carries no title status slot', async () => { graphql.mock.resetCalls(); - currentPullRequest = { node_id: 'PR_node', title: 'βœ…β‘§ [12 by Claude Opus 5.5] Add retries', head: { sha: 'evaluated-head', label: 'acme:feature' }, base: { ref: 'main' } }; + currentPullRequest = { node_id: 'PR_node', title: 'βœ…βž‡ [12 by Claude Opus 5.5] Add retries', head: { sha: 'evaluated-head', label: 'acme:feature' }, base: { ref: 'main' } }; await enableAutoMerge({ owner: 'acme', repoName: 'repo', prNumber: 7, mergeMethod: 'SQUASH', expectedHead }); assert.equal(graphql.mock.calls[0].arguments[1].commitHeadline, '[12 by Claude Opus 5.5] Add retries (#7)'); assert.equal(graphql.mock.calls[0].arguments[1].commitBody, null); diff --git a/test/checkRunHandler.test.ts b/test/checkRunHandler.test.ts index 90f83f182..928d573da 100644 --- a/test/checkRunHandler.test.ts +++ b/test/checkRunHandler.test.ts @@ -3091,7 +3091,7 @@ describe('auto_merge.require_up_to_date sweep retries', () => { test('ProPR\'s own merge passes a commit title without the title status slot', async () => { resetMocks(); useUpToDatePolicy(); - mockCurrentPR({ title: 'βœ…β‘§ [12 by Claude Opus 5.5] Add retries' }); + mockCurrentPR({ title: 'βœ…βž‡ [12 by Claude Opus 5.5] Add retries' }); await handleCheckRunEvent(createMockCheckRunPayload({ headSha: 'abc123sha' }), 'test-correlation-id'); assert.equal(mergeCalls().length, 1); const params = mergeCalls()[0].arguments[1] as Record; diff --git a/test/prTaskTitleHelpers.test.ts b/test/prTaskTitleHelpers.test.ts index 031df55ce..25eab0a3f 100644 --- a/test/prTaskTitleHelpers.test.ts +++ b/test/prTaskTitleHelpers.test.ts @@ -618,12 +618,12 @@ describe('prTaskTitleHelpers merge conflict diff context', () => { describe('PR task titles and the title status slot', () => { test('a task built from a PR title with a slot has no emoji in its title', () => { - for (const slot of ['πŸ”¨ ', '⚠️β‘₯ ', 'βœ…β‘§ ', '']) { + for (const slot of ['πŸ”¨ ', 'βš οΈβž… ', 'βœ…βž‡ ', '']) { assert.strictEqual( buildPrTaskTitle({ workflow: 'followup', pullRequestNumber: 3510, prTitle: `${slot}[3510 by Claude Opus 5.5] Apply library extensions` }), 'Follow-up PR #3510: [3510 by Claude Opus 5.5] Apply library extensions', ); } - assert.strictEqual(buildPrTaskTitle({ workflow: 'fix', pullRequestNumber: 7, prTitle: 'βœ…β‘§ [Epic] Plan' }), 'Fix PR #7: [Epic] Plan'); + assert.strictEqual(buildPrTaskTitle({ workflow: 'fix', pullRequestNumber: 7, prTitle: 'βœ…βž‡ [Epic] Plan' }), 'Fix PR #7: [Epic] Plan'); }); });