fix(ci): switch release workflow to PR-based merge#404
Merged
zbigniewsobiecki merged 1 commit intodevfrom Feb 18, 2026
Merged
Conversation
The "Protect main" ruleset requires all changes to go through a pull request, which caused the release workflow to fail with GH013 when pushing directly. GitHub Actions cannot be added as a bypass actor on personal repositories. Switch to creating a PR from dev→main with auto-merge enabled. The PR goes through the normal required checks (lint-and-test, enforce-dev-to-main) and merges automatically once they pass. Changes: - Add pull-requests: write permission - Replace direct git push with gh pr create + gh pr merge --auto - Add guard against duplicate open release PRs - Remove git config step (no longer pushing directly) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.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.
Summary
release.yml) was failing withGH013: Repository rule violationsbecause the "Protect main" ruleset requires all changes to go through a PRgit push origin mainto creating a PR with auto-merge enabledChanges
pull-requests: writepermission to the workflow jobgh pr createfromdev→mainwith commit summarygh pr merge --auto --mergeso it merges once checks passConfigure gitstep (no longer needed without direct push)--autoflag)Test plan
🤖 Generated with Claude Code