Repository navigation
ci: automate releases with release-drafter via ospo-reusable-workflows - #5
Merged
Merged
Conversation
## What/Why Automate releases with ospo-reusable-workflows v2.1.0. The auto-labeler labels each PR from its conventional title (`feat:` gets `feature`, `fix:` gets `fix`). `release-minimal` then drafts, tags, and publishes a release when a PR carrying the `release` label merges to `main`. The version comes from `major`, `minor`, or `patch`, or from the auto-labels. Releases happen only when we add `release` (`release-only-with-label: true`). ## Proof it works - actionlint and zizmor pass. Both callers pin `a48c75f` (v2.1.0), verified against the tag. - `.github/release-drafter.yml` is copied from ospo-reusable-workflows at v2.1.0. - Created the `release`, `major`, `minor`, and `patch` labels. - End to end: after this merges, #4 (`feat:`) gets `feature` from the auto-labeler. Adding `release` and merging it should publish v1.1.0, since v1.0.0 is the previous tag. ## Risk + AI role Low to medium. Adds write-capable release automation. Claude Opus 5.5 wrote the callers. ## Review focus - Both callers use `pull_request_target` so fork PRs are handled, matching ospo's own callers. Neither checks out PR code; release-minimal checks out the base branch. Each trigger line carries a `zizmor: ignore[dangerous-triggers]` with that reason. - `release-minimal` moves the major tag (`v1`) on every release. A future tag ruleset should protect only `v*.*.*`. Signed-off-by: jmeridth <jmeridth@gmail.com>
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.
What/Why
Automate releases with ospo-reusable-workflows v2.1.0. The auto-labeler labels each PR from its conventional title (
feat:getsfeature,fix:getsfix).release-minimalthen drafts, tags, and publishes a release when a PR carrying thereleaselabel merges tomain. The version comes frommajor,minor, orpatch, or from the auto-labels. Releases happen only when we addrelease(release-only-with-label: true).Proof it works
a48c75f(v2.1.0), verified against the tag..github/release-drafter.ymlis copied from ospo-reusable-workflows at v2.1.0.release,major,minor, andpatchlabels.feat:) getsfeaturefrom the auto-labeler. Addingreleaseand merging it should publish v1.1.0, since v1.0.0 is the previous tag.Risk + AI role
Low to medium. Adds write-capable release automation. Claude Opus 5.5 wrote the callers.
Review focus
pull_request_targetso fork PRs are handled, matching ospo's own callers. Neither checks out PR code; release-minimal checks out the base branch. Each trigger line carries azizmor: ignore[dangerous-triggers]with that reason.release-minimalmoves the major tag (v1) on every release. A future tag ruleset should protect onlyv*.*.*.