Skip to content

Require approval before creating a release tag - #6961

Merged
eleftherias merged 5 commits into
mainfrom
approve-release-tag
Oct 28, 2026
Merged

eleftherias merged 5 commits into
mainfrom
approve-release-tag

Conversation

@eleftherias

Copy link
Copy Markdown
Member

Summary

Adds an approval step to the release flow, so a release tag and GitHub Release are created only once a reviewer on the release environment approves.

  • create-release-tag.yml is split into two jobs:
    • verify runs the existing release commit checks (semver VERSION, commit message, Release-Triggered-By trailer) and writes a job summary for the approver: version, commit, who triggered the release PR, and who merged it.
    • create-tag runs on the release environment. It waits for approval, then generates the release app token, pushes the tag and creates the GitHub Release, as before.
  • create-tag reads the version and triggering actor from verify's job outputs, so it tags the version that was checked.
  • The toolhive-release skill and its workflow reference describe the approval step.

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation
  • Other (describe): CI release workflow

Test plan

  • Unit tests (task test)
  • E2E tests (task test-e2e)
  • Linting (task lint-fix)
  • Manual testing (describe below)

Ran actionlint on .github/workflows/create-release-tag.yml: no findings. The workflow runs only when a release PR merges, so the next release will exercise the approval step.

Does this introduce a user-facing change?

For maintainers cutting a release:

  • Before: merging the release PR created the tag and GitHub Release straight away.
  • After: the run pauses at create-tag until a reviewer on the release environment, other than the person who merged, approves it from the run page. Nothing is created until then.

Special notes for reviewers

The environment: is on create-tag itself rather than on a separate approval job, because it is the only job that writes anything.

🤖 Generated with Claude Code

eleftherias and others added 2 commits October 27, 2026 16:50
create-release-tag.yml is split into two jobs. verify runs the existing
release commit checks and writes a summary for the approver. create-tag
runs on the release environment, so it waits for a reviewer's approval
before it pushes the tag and creates the GitHub Release.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The toolhive-release skill and its workflow reference now say that
create-release-tag.yml waits for an approval on the release environment
before it creates the tag and GitHub Release.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the size/S Small PR: 100-299 lines changed label Oct 27, 2026
@github-actions github-actions Bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Oct 28, 2026
aponcedeleonch
aponcedeleonch previously approved these changes Oct 28, 2026
@codecov

codecov Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.13%. Comparing base (a993574) to head (89701f5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6961      +/-   ##
==========================================
- Coverage   80.14%   80.13%   -0.02%     
==========================================
  Files         845      845              
  Lines       85715    85715              
==========================================
- Hits        68697    68687      -10     
- Misses      17013    17023      +10     
  Partials        5        5              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

eleftherias and others added 2 commits October 28, 2026 11:22
GITHUB_TOKEN only checks out the repository in this workflow. The tag
push and the GitHub Release both use the release app token.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Oct 28, 2026
@eleftherias
eleftherias merged commit c001331 into main Oct 28, 2026
43 of 44 checks passed
@eleftherias
eleftherias deleted the approve-release-tag branch October 28, 2026 10:49
@github-actions github-actions Bot mentioned this pull request Oct 28, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Small PR: 100-299 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants