-
-
Notifications
You must be signed in to change notification settings - Fork 4
INFRA-3188:Create workflow to sync release, stable branches #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| --state open \ | ||
| --json title,isDraft \ | ||
| --jq '.[] | select(.title | test("^release:\\s*[0-9]+\\.[0-9]+\\.[0-9]+"; "i")) | .title' \ | ||
| 2>/dev/null || echo "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Missing base branch filter when finding release PRs
The get_active_release_branches() function queries for PRs with titles matching "release: X.Y.Z" but doesn't filter by base branch. Release PRs merge release branches INTO stable, so the query at gh pr list is missing --base stable. This could incorrectly identify PRs targeting other branches (like main) as active release PRs if they happen to have a matching title format. Other scripts in the repository like get-release-timelines.sh correctly use --base stable when querying for release PRs.
Ticket: https://consensyssoftware.atlassian.net/browse/INFRA-3188
Test stable sync branch: https://github.com/consensys-test/metamask-mobile-test-workflow/actions/runs/20148777729/job/57923961348, consensys-test/metamask-mobile-test-workflow#174
Note
Adds a composite action and script to auto-create PRs syncing
stableinto activerelease/*branches after a release merges./.github/actions/release-branch-sync/action.yml:merged-release-branch,github-token, optionalgithub-tools-repositoryandgithub-tools-ref./.github/scripts/release-branch-sync.sh:release: X.Y.Z.stable-sync-release-X.Y.Zbranches fromorigin/stable, pushes, and opens PRs (head→ release branch) viaghCLI with a templated body.Written by Cursor Bugbot for commit 9fad56f. This will update automatically on new commits. Configure here.