You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Instruct the user to drag-and-drop each media file into the Preview section via the GitHub web UI
228
228
- Note: GitHub does not support programmatic media upload to PR bodies
229
229
230
-
### 8b. Backfill Changelog PR Number
230
+
### 8b. Changelog Fragments
231
231
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.
0 commit comments