INFRA-3188:Create workflow to sync release, stable branches#189
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.
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.
| git config --global user.name "github-actions[bot]" | ||
| git config --global user.email "github-actions[bot]@users.noreply.github.com" |
There was a problem hiding this comment.
Do we want this to be metamaskbot?
There was a problem hiding this comment.
You're right, these are just used for commit metadata, but let me update it to metamaskbot like our other workflows. Updated
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
Add a composite GitHub Action and script to auto-create PRs syncing
stableinto activerelease/X.Y.Zbranches after a release merge./.github/actions/release-branch-sync/action.yml:/.github/scripts/release-branch-sync.sh:release: X.Y.Z.stable-sync-release-X.Y.Zbranches fromorigin/stable, pushes, and opens PRs into correspondingrelease/X.Y.Zbranches.Written by Cursor Bugbot for commit 1e3d835. This will update automatically on new commits. Configure here.