diff --git a/scripts/update-changelog.ts b/scripts/update-changelog.ts index b0862ac..0e79fc4 100644 --- a/scripts/update-changelog.ts +++ b/scripts/update-changelog.ts @@ -805,7 +805,7 @@ export function buildIndependentBody ( if (plan.unrouted.length) { const commitUrl = (sha: string) => `https://github.com/${opts.owner}/${opts.repo}/commit/${sha}` - lines.push('### 🧭 Unrouted commits', '', '_These commits were not routed to any package and do not bump any version._', '') + lines.push('### 📝 Other commits', '', '_These commits were not routed to any package and do not bump any version._', '') for (const c of plan.unrouted) { lines.push(`- ${c.message} ([\`${c.shortHash}\`](${commitUrl(c.shortHash)}))`) } @@ -1092,7 +1092,7 @@ async function runIndependent (packagesInput: string): Promise { }) if (plan.unrouted.length) { - console.log(`Unrouted commits (${plan.unrouted.length}, bump nothing):`) + console.log(`Other commits (${plan.unrouted.length}, bump nothing):`) for (const commit of plan.unrouted) { console.log(` ${commit.shortHash} ${commit.message}`) } diff --git a/test/update-changelog.test.ts b/test/update-changelog.test.ts index f0e305b..b64296a 100644 --- a/test/update-changelog.test.ts +++ b/test/update-changelog.test.ts @@ -561,14 +561,14 @@ describe('independent release PR', () => { const plan = fontainePlan([commit('feat(fontaine): thing'), commit('docs: update readme')]) const body = buildIndependentBody(plan, bodyOpts) - expect(body).toContain('### 🧭 Unrouted commits') + expect(body).toContain('### 📝 Other commits') expect(body).toContain('not routed to any package') expect(body).toContain('docs: update readme') }) it('omits the unrouted section when every commit is routed', () => { const body = buildIndependentBody(fontainePlan([commit('feat(fontaine): thing')]), bodyOpts) - expect(body).not.toContain('Unrouted commits') + expect(body).not.toContain('Other commits') }) it('preserves the preamble across regenerations', () => {