Skip to content

Commit d561914

Browse files
committed
🤖 feat: add wait_pr_checks user script
Change-Id: Icc7a4669ba72f567ad8e2d42774eba7a44205123 Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parent 4e0126b commit d561914

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.cmux/scripts/wait_pr_checks

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
# Description: Wait for PR checks to pass on GitHub. Use this after pushing changes to origin, to catch CI failures. Accepts no arguments.
3+
set -euo pipefail
4+
5+
BRANCH=$(git branch --show-current)
6+
NUMBER=$(gh pr list --head "$BRANCH" --json number | jq -cr '.[0].number')
7+
./scripts/wait_pr_checks.sh "$NUMBER"

0 commit comments

Comments
 (0)