Fix sync-version-to-dev: create PR instead of direct push#57
Merged
Conversation
The dev branch has branch protection requiring PRs. Changed the sync-version-to-dev job to create a branch and open a PR via gh cli instead of pushing directly to dev. https://claude.ai/code/session_019MDcpswuKKNx9YhC2S2vT7
Contributor
|
If this change doesn't need a release (docs, CI config, etc.), you can ignore this message. |
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
The
sync-version-to-devCI job fails because thedevbranch has branch protection rules requiring PRs. The job was trying togit pushdirectly todev.Fix: Changed the job to create a branch (
chore/sync-version-{version}) and open a PR todevviagh pr createinstead of pushing directly.Changes
.github/workflows/publish.yml:sync-version-to-devjob now:chore/sync-version-X.Y.Zbranchdevusinggh pr createpull-requests: writepermissionTest plan
gh pr createusesGITHUB_TOKENwhich is already availableifcheck preserved)https://claude.ai/code/session_019MDcpswuKKNx9YhC2S2vT7