Skip to content

Commit 8bb9f11

Browse files
committed
ci: allow coderabbitai branches
1 parent d6ba23f commit 8bb9f11

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/ci/guard-branch.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ DST="$2" # base ref
99
die() { echo "::error::$*"; exit 1; }
1010

1111
case "$SRC" in
12+
coderabbitai/*)
13+
[[ "$DST" == "main" ]] \
14+
|| die "coderabbitai/* branches must target main."
15+
;;
1216
feat/minimal-dpoi-qca-loop)
1317
# Temporary allowance while PR #70 lands Phase 1 directly onto main.
1418
[[ "$DST" == "main" ]] \
@@ -31,6 +35,6 @@ case "$SRC" in
3135
esac
3236

3337
if [[ "$DST" == "main" && ! "$SRC" =~ ^(release|fix)/ ]]; then
34-
[[ "$SRC" == "feat/minimal-dpoi-qca-loop" ]] \
35-
|| die "Only release/* or fix/* may target main."
38+
[[ "$SRC" == "feat/minimal-dpoi-qca-loop" || "$SRC" =~ ^coderabbitai/ ]] \
39+
|| die "Only release/*, fix/*, coderabbitai/*, or feat/minimal-dpoi-qca-loop may target main."
3640
fi

0 commit comments

Comments
 (0)