Skip to content

ci: automate releases with release-drafter via ospo-reusable-workflows - #5

Merged
jmeridth merged 1 commit into
mainfrom
ci/release-drafter
Sep 26, 2026
Merged

jmeridth merged 1 commit into
mainfrom
ci/release-drafter

Conversation

@jmeridth

Copy link
Copy Markdown
Member

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, feat: add reusable hugo-ci and a11y workflows #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*.*.*.

## 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>
@jmeridth jmeridth added the mark-ready-when-ready Auto-mark this draft PR ready for review once checks pass label Sep 26, 2026
@jmeridth jmeridth self-assigned this Sep 26, 2026
@github-actions
github-actions Bot marked this pull request as ready for review September 26, 2026 14:32
@github-actions github-actions Bot removed the mark-ready-when-ready Auto-mark this draft PR ready for review once checks pass label Sep 26, 2026
@jmeridth
jmeridth merged commit 61a3c41 into main Sep 26, 2026
2 of 3 checks passed
@jmeridth
jmeridth deleted the ci/release-drafter branch September 26, 2026 14:36
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