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
if echo "$ERROR_MSG" | grep -q -i "mergeability"; then
389
+
gh api repos/${{ github.repository }}/issues/$PR_NUMBER/comments \
390
+
-f body="❌ Cannot add to merge queue: Mergeability check has not completed. This usually resolves automatically - please try again in a few minutes or remove and re-add the auto-merge label."
391
+
elif echo "$ERROR_MSG" | grep -q -i "force-push\|branch protection"; then
392
+
gh api repos/${{ github.repository }}/issues/$PR_NUMBER/comments \
393
+
-f body="❌ Cannot add to merge queue: Branch protection rules prevent merge queue operations. Please check that merge queue is enabled for the **master-gmq** branch and has appropriate permissions."
394
+
else
395
+
gh api repos/${{ github.repository }}/issues/$PR_NUMBER/comments \
396
+
-f body="❌ Failed to add to merge queue: $ERROR_MSG. Please check repository settings and try again."
echo "✅ Successfully added to merge queue at position: $QUEUE_POSITION"
326
404
327
405
# Comment on PR with success
328
406
gh api repos/${{ github.repository }}/issues/$PR_NUMBER/comments \
329
-
-f body="🤖 Automatically added to merge queue at position **$QUEUE_POSITION** after CI success ✅ (Event: ${{ github.event_name }}, Trigger: Auto-merge label detected with successful CI)"
407
+
-f body="🤖 Successfully added to merge queue at position **$QUEUE_POSITION** after CI success ✅
408
+
409
+
Event: ${{ github.event_name }}
410
+
Trigger: Auto-merge label detected with successful CI"
0 commit comments