Skip to content

fix: automate release PR approval, merge, and CI trigger#21

Merged
kellenmurphy merged 1 commit into
mainfrom
fix/release-please-automerge
May 16, 2026
Merged

fix: automate release PR approval, merge, and CI trigger#21
kellenmurphy merged 1 commit into
mainfrom
fix/release-please-automerge

Conversation

@kellenmurphy

Copy link
Copy Markdown
Owner

Summary

Fixes the release-please workflow so release PRs are fully hands-off.

Root cause: When GITHUB_TOKEN creates a PR, GitHub suppresses pull_request workflow events on it (loop prevention). This means CI never runs, the required status check stays pending, and the PR is unmergeable.

Changes:

  • ci.yml — adds labeled to the pull_request trigger types. When release-please adds the autorelease: pending label to its PR, CI now fires.
  • release-please.yml — after creating/updating the release PR, uses RELEASE_PLEASE_TOKEN (PAT as kellenmurphy) to approve and enable auto-merge. The PR author is github-actions[bot], so this isn't self-review.

Result: On every merge to main, release-please opens/updates a release PR → CI runs → PR is auto-approved and set to auto-merge → once CI passes, it merges automatically.

- Add labeled trigger to ci.yml so CI runs when autorelease: pending
  label is added to a PR (fixes CI not running on GITHUB_TOKEN PRs)
- Add auto-approve + auto-merge step to release-please workflow using
  RELEASE_PLEASE_TOKEN; since the PR author is github-actions[bot],
  kellenmurphy can approve via PAT without triggering self-review block
@codecov

codecov Bot commented May 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kellenmurphy
kellenmurphy merged commit 8dd5876 into main May 16, 2026
5 checks passed
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