Skip to content

Release job: leave a draft GitHub release with the list of merged pull requests - #325

Merged
nitrobass24 merged 2 commits into
bp-devfrom
ci/release-draft-notes
Nov 29, 2026
Merged

nitrobass24 merged 2 commits into
bp-devfrom
ci/release-draft-notes

Conversation

@nitrobass24

@nitrobass24 nitrobass24 commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #227.

The release job now leaves a draft GitHub release for the tag, so the notes start from a generated list and not a blank page.

What it does

  • After bp_release.py has accepted the tag and written the branches, a new step runs gh release create --draft --generate-notes.
  • The list is GitHub's own: one line per pull request merged since the nearest earlier tag, with its author. A sync PR is one line, not hundreds of upstream commits.
  • The maintainer writes the top section (what is new, what was not driven, warnings) and publishes. A draft notifies nobody.
  • A rerun leaves an existing release alone. A dry run creates nothing.
  • No new permission: it uses the App token the job already makes, which has contents: write.

docs/RELEASING.md has the new step for a new version and for a patch.

The first release's baseline

The repo had no release tags, and without an earlier tag GitHub lists every pull request the repo ever merged (128). The tag bp-7.0-base now marks where 7.1's list begins: 3210caa02, the last commit bp-dev and bp-7.0 share. It isn't a v* name, so it starts no job. With it the first list is 57 pull requests and includes the fixes bp-dev got that bp-7.0 users never did.

One line in that list is wrong: #220, which bp-7.0 also has (the same branch was merged into both). docs/RELEASING.md says to remove it by hand. Later releases need nothing: the previous release tag is found automatically.

After review

  • A test run's draft is titled "TEST : not a release, delete this draft". Before, it had the real title and the real list.
  • The check for an existing release lists releases and stops the step if the listing fails. Before, any error read as "none yet", which could leave a second draft for the same tag.
  • The docs say what to do if the run goes red at the draft step (the branches have already moved: run it again), that the list starts at the nearest earlier tag in the tag's history, so a patch's fixes show again in the next version's list, and that the same token now also creates the draft.

Checked

  • actionlint on the workflow.
  • The step's script run locally against a stub of gh and a throwaway repo: a real tag (title and start tag), a test tag (TEST title), a rerun with the release already there (left alone), a failed listing (the step fails), and a longer tag name that merely contains this one (not mistaken for it).
  • The previous-tag lookup in a throwaway repo: first release with no tag (no start), first release with a baseline tag, next version on bp-dev, a patch on a version branch, and a bpx-test/ tag in between is ignored.

Not checked

  • The step itself has not run: the release job only runs from the default branch's copy of the workflow. After the merge it can be run for real under bpx-test/ names (the doc now says to delete the draft that leaves).

Validation

  • build release
  • static analysis
  • unit tests
  • process replay
  • install smoke
  • bluepilot-hooks
  • After the merge: a bpx-test/ run leaves a draft release with a list

…l requests

After the branches are written, the job creates a draft release for the tag with GitHub's generated list of the
pull requests merged since the nearest earlier tag. The maintainer writes the top of the notes and publishes it.
A rerun leaves an existing release alone; a dry run creates nothing. Uses the App token the job already has
(contents: write).
@github-actions

Copy link
Copy Markdown
Contributor

Process replay diff report

Replays driving segments through this PR and compares the behavior to master.
Please review any changes carefully to ensure they are expected.

✅ 0 changed, 66 passed, 0 errors

…t leave a second draft, and the docs say what to do when the draft step fails
@nitrobass24
nitrobass24 merged commit 53930d8 into bp-dev Nov 29, 2026
10 checks passed
@nitrobass24
nitrobass24 deleted the ci/release-draft-notes branch November 29, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant