Repository navigation
Release job: leave a draft GitHub release with the list of merged pull requests - #325
Merged
Merged
Conversation
…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).
Contributor
Process replay diff reportReplays driving segments through this PR and compares the behavior to master. ✅ 0 changed, 66 passed, 0 errors |
…t leave a second draft, and the docs say what to do when the draft step fails
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
bp_release.pyhas accepted the tag and written the branches, a new step runsgh release create --draft --generate-notes.contents: write.docs/RELEASING.mdhas 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-basenow marks where 7.1's list begins:3210caa02, the last commitbp-devandbp-7.0share. It isn't av*name, so it starts no job. With it the first list is 57 pull requests and includes the fixesbp-devgot thatbp-7.0users never did.One line in that list is wrong: #220, which
bp-7.0also has (the same branch was merged into both).docs/RELEASING.mdsays to remove it by hand. Later releases need nothing: the previous release tag is found automatically.After review
Checked
actionlinton the workflow.ghand 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).bp-dev, a patch on a version branch, and abpx-test/tag in between is ignored.Not checked
releasejob only runs from the default branch's copy of the workflow. After the merge it can be run for real underbpx-test/names (the doc now says to delete the draft that leaves).Validation
bpx-test/run leaves a draft release with a list