fix(ci): add --yes flag and mergeability wait to auto-merge step
- Add --yes to gh pr merge to prevent interactive prompt in CI - Add sleep 5 before merge to allow GitHub to compute PR mergeability Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -206,10 +206,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
PR_NUMBER="${{ steps.create_pr.outputs.pr_number }}"
|
PR_NUMBER="${{ steps.create_pr.outputs.pr_number }}"
|
||||||
echo "🔀 Merging PR #$PR_NUMBER via squash..."
|
echo "🔀 Merging PR #$PR_NUMBER via squash..."
|
||||||
|
# Brief wait for GitHub to compute PR mergeability
|
||||||
|
sleep 5
|
||||||
gh pr merge "$PR_NUMBER" \
|
gh pr merge "$PR_NUMBER" \
|
||||||
--repo "${{ github.repository }}" \
|
--repo "${{ github.repository }}" \
|
||||||
--squash \
|
--squash \
|
||||||
--delete-branch
|
--delete-branch \
|
||||||
|
--yes
|
||||||
echo "✅ PR #$PR_NUMBER merged successfully"
|
echo "✅ PR #$PR_NUMBER merged successfully"
|
||||||
|
|
||||||
- name: Summary
|
- name: Summary
|
||||||
|
|||||||
Reference in New Issue
Block a user