|
| 1 | +--- |
| 2 | +name: Generate release notes |
| 3 | +about: Kick off the Release Notes Generator agent for an upcoming release |
| 4 | +title: '[release-notes] Generate notes for X.Y.Z' |
| 5 | +labels: documentation |
| 6 | +assignees: '' |
| 7 | + |
| 8 | +--- |
| 9 | + |
| 10 | +<!-- |
| 11 | +Fill in the two values below, then assign this issue to @copilot. |
| 12 | +
|
| 13 | +The Release Notes Generator agent |
| 14 | +(.github/agents/release-notes-generator.agent.md) will: |
| 15 | + 1. run ./tools/release-notes/get-commits-since-release.sh --json --tag <PREVIOUS_TAG> --to <TARGET_TAG> |
| 16 | + 2. rank PRs with the signal-net + anchored, batched rubric |
| 17 | + 3. write docs/reference/release-notes/<VERSION>.md (bare version, no "v") from |
| 18 | + docs/reference/release-notes/RELEASE_NOTES_TEMPLATE.md and update docs/reference/release-notes/index.md |
| 19 | + 4. open a draft PR linked back to this issue |
| 20 | +
|
| 21 | +For a feature release, PREVIOUS_TAG is the previous feature-release tag; |
| 22 | +maintenance backports already shipped by an intermediate patch release are |
| 23 | +automatically excluded from the feature notes. For a maintenance release, |
| 24 | +PREVIOUS_TAG is the immediately previous tag on that maintenance line, so the |
| 25 | +range contains only that release's incremental changes. |
| 26 | +--> |
| 27 | + |
| 28 | +**PREVIOUS_TAG:** <!-- add last released tag to diff against, e.g. **PREVIOUS_TAG:v1.16.0** --> |
| 29 | + |
| 30 | +**TARGET_TAG:** <!-- add tag being released, e.g. **TARGET_TAG:v1.17.0** --> |
| 31 | + |
| 32 | +## Task |
| 33 | + |
| 34 | +Follow the Release Notes Generator agent |
| 35 | +(`.github/agents/release-notes-generator.agent.md`) end to end for the release |
| 36 | +above. Respect the `skip` pre-filter, and rank PRs with the batched, anchored |
| 37 | +rubric (do not judge importance from commit subjects alone). Open the result as |
| 38 | +a **draft** PR against `main`. |
| 39 | + |
| 40 | +## If generation fails |
| 41 | + |
| 42 | +If enrichment reports it failed for all/most PRs while `gh auth`, `PR_REPO`, and |
| 43 | +the tags are all fine, it is almost certainly GitHub's secondary rate limit. The |
| 44 | +script batches its GitHub requests and caches only successful fetches, so simply |
| 45 | +**re-run** to retry the misses (delete `${TMPDIR:-/tmp}/mp-pr-cache` first only |
| 46 | +if you want a guaranteed clean slate). For an unexpectedly broad diff, confirm |
| 47 | +`PREVIOUS_TAG` is an ancestor of `TARGET_TAG` |
| 48 | +(`git merge-base --is-ancestor "$PREVIOUS_TAG" "$TARGET_TAG"`) before proceeding. |
| 49 | + |
| 50 | +Contributor detection is release-aware and stateless: a contributor is listed |
| 51 | +as new only when none of their PRs shipped in a published release before the |
| 52 | +target, so a contributor first shipped in a maintenance release is not |
| 53 | +acknowledged again by a later feature release. No manual step is required. |
| 54 | + |
| 55 | +The generated data also marks prior-release PRs with `already_shipped: true`. |
| 56 | +These records remain available for auditability but must be excluded from |
| 57 | +validation, ranking, and the published notes. This is particularly important |
| 58 | +for feature-release ranges that include maintenance commits merged back to |
| 59 | +`main`. |
0 commit comments