fix: open release version-bump pull requests#28
Conversation
Greptile SummaryThis PR moves the post-release version bump into a pull-request flow. The main changes are:
Confidence Score: 4/5The automated version-bump PR can miss required checks and cannot recover from an orphaned remote branch. PR creation with
What T-Rex did
Important Files Changed
Reviews (1): Last reviewed commit: "Merge branch 'main' into fix/release-ver..." | Re-trigger Greptile |
| secrets: | ||
| MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | ||
| MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | ||
| git push origin "HEAD:refs/heads/$branch" |
There was a problem hiding this comment.
Orphaned Branch Blocks Recovery
If this push succeeds but gh pr create fails, the remote branch remains without an open PR. A rerun creates a new local commit with a different identity, and this push is rejected as non-fast-forward, so the version-bump PR cannot be opened without manually deleting or reconciling the branch. The same failure occurs when a closed PR leaves its branch behind.
| pr_url="$( | ||
| gh pr create \ | ||
| --base main \ | ||
| --head "$branch" \ | ||
| --title "chore: start $NEXT_VERSION development" \ | ||
| --body "Automated post-release version bump. This PR changes only \`gradle.properties\`." |
There was a problem hiding this comment.
This command creates the PR with the repository GITHUB_TOKEN. GitHub does not start new workflow runs for events produced by that token, so the Build workflow's pull_request checks will not run for this PR; if those checks are required by branch protection, the automated version bump cannot be merged.
No description provided.