Skip to content

Commit

Permalink
Make sure the bot can approve the PRs too
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess committed Sep 16, 2024
1 parent cbe0f06 commit 29f1a6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build-scripts/auto-merge-successful-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ for pr in $(echo "$prs" | jq -r '.[] | @base64'); do

if [[ "$checks_passed" == "true" ]]; then
echo "All status checks passed for PR #$pr_number. Proceeding with merge..."
gh pr review $pr_number --approve -b "All status checks passed for PR #$pr_number."
gh pr merge $pr_number --auto --squash
else
echo "Status checks have not passed for PR #$pr_number. Skipping merge."
Expand Down

0 comments on commit 29f1a6e

Please sign in to comment.