Skip to content

Commit f4f38f7

Browse files
committed
chore: update pr changelog naming
1 parent f5d3a15 commit f4f38f7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.agents/commands/pr.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,12 @@ gh pr create --base $base --title "..." --body "..." [--draft]
227227
- Instruct the user to drag-and-drop each media file into the Preview section via the GitHub web UI
228228
- Note: GitHub does not support programmatic media upload to PR bodies
229229

230-
### 8b. Backfill Changelog PR Number
230+
### 8b. Changelog Fragments
231231

232-
If the PR was created (not dry run) and `CHANGELOG.md` was modified in the branch (`git diff $base...HEAD --name-only | grep CHANGELOG.md`):
233-
- Read `CHANGELOG.md` and scan `## [Unreleased]` entries for lines missing a `#NUMBER` suffix
234-
- Append the actual PR number to those entries, e.g. `- Add foo` becomes `- Add foo #123`
235-
- If any entries were updated, create a new commit with message `chore: backfill changelog pr number` and push
232+
If the PR is user-facing, verify the branch adds exactly one changelog fragment under `changelog.d/next/` or `changelog.d/hotfix/`.
233+
Do not edit `CHANGELOG.md` in normal PRs.
234+
If the PR was created (not dry run), rename any new changelog fragment whose filename does not start with the actual PR number to `<PR_NUMBER>.<category>.md`, preserving the category (`added`, `changed`, `deprecated`, `removed`, `fixed`, or `security`).
235+
If any fragment was renamed, create a follow-up commit with message `chore: rename changelog fragment` and push it.
236236

237237
### 9. Output Summary
238238

0 commit comments

Comments
 (0)