You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 30, 2026. It is now read-only.
This commit modifies the GitHub Actions workflow to create a pull request for syncing changes from the stable branch to the main branch. It checks for existing open pull requests and only creates a new one if necessary, improving the automation and efficiency of the release process.
git merge origin/stable -m "chore: sync stable release to main"
65
-
git push origin main
61
+
pr_number=$(gh pr list --base main --head stable --state open --json number --jq '.[0].number')
62
+
if [ -z "$pr_number" ]; then
63
+
git fetch origin main
64
+
if git diff --quiet origin/main...HEAD; then
65
+
echo "Main is already up to date with stable; skipping PR."
66
+
exit 0
67
+
fi
68
+
pr_number=$(gh pr create --base main --head stable --title "chore: sync stable release to main" --body "Automated PR to merge the latest stable changes back into main." --json number --jq '.number')
69
+
echo "Created PR #$pr_number to sync stable into main."
70
+
else
71
+
echo "PR #$pr_number already open to sync stable into main."
0 commit comments