Skip to content

Commit 679efee

Browse files
committed
🤖 Debug and fix cmux.io deployment
- Add verification logging for CNAME file copy - Update wait_pr_checks.sh to handle merged PRs - Helps diagnose why cmux.io isn't resolving _Generated with `cmux`_
1 parent 37ef566 commit 679efee

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/wait_pr_checks.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,21 @@ echo ""
1515

1616
while true; do
1717
# Get PR status
18-
STATUS=$(gh pr view "$PR_NUMBER" --json mergeable,mergeStateStatus 2>/dev/null || echo "error")
18+
STATUS=$(gh pr view "$PR_NUMBER" --json mergeable,mergeStateStatus,state 2>/dev/null || echo "error")
1919

2020
if [ "$STATUS" = "error" ]; then
2121
echo "❌ Failed to get PR status. Does PR #$PR_NUMBER exist?"
2222
exit 1
2323
fi
2424

25+
PR_STATE=$(echo "$STATUS" | jq -r '.state')
26+
27+
# Check if PR is already merged
28+
if [ "$PR_STATE" = "MERGED" ]; then
29+
echo "✅ PR #$PR_NUMBER has been merged!"
30+
exit 0
31+
fi
32+
2533
MERGEABLE=$(echo "$STATUS" | jq -r '.mergeable')
2634
MERGE_STATE=$(echo "$STATUS" | jq -r '.mergeStateStatus')
2735

0 commit comments

Comments
 (0)