Rename auto-pr.yml to auto-merge-forward.yml - #26020
Merged
Merged
Conversation
voloagent
approved these changes
Aug 19, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR replaces the previous hard-coded auto PR workflow with a generalized “merge-forward” GitHub Actions workflow intended to forward changes across rel-x.y branches (and ultimately into dev).
Changes:
- Removed the legacy
.github/workflows/auto-pr.ymlworkflow that targeted a specific pair of release branches. - Added
.github/workflows/auto-merge-forward.yml, which on pushes torel-*resolves the next forward target (rel-*ordev), creates a forward-merge PR, and (when conflict-free) auto-approves/auto-merges it.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/auto-pr.yml | Removed the older, branch-specific auto-PR workflow. |
| .github/workflows/auto-merge-forward.yml | Added a generalized forward-merge workflow for rel-x.y branches with optional auto-merge behavior. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+1
to
+5
| name: Auto-merge forward | ||
|
|
||
| # Push to a rel-x.y branch opens a merge PR into the next newer rel-* line, | ||
| # or into dev when this line is the newest. Merge of that PR retriggers the | ||
| # next hop, so a bug-fix on rel-1.0 flows rel-1.0 -> rel-1.1 -> ... -> dev. |
Comment on lines
+141
to
+144
| set -euo pipefail | ||
| FORWARD_BRANCH="${{ steps.merge.outputs.branch }}" | ||
| gh pr review "$FORWARD_BRANCH" --approve | ||
| gh pr merge "$FORWARD_BRANCH" --merge --auto --delete-branch |
Comment on lines
+126
to
+132
| URL="$(gh pr create \ | ||
| --base "$TARGET" \ | ||
| --head "$FORWARD_BRANCH" \ | ||
| --title "Auto-merge forward ${SOURCE} → ${TARGET}" \ | ||
| --body "$BODY")" | ||
| echo "url=$URL" >> "$GITHUB_OUTPUT" | ||
| echo "Created $URL" |
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.
No description provided.