Skip to content

Commit 3ed13c6

Browse files
committed
fix(ci): escape brackets in case patterns for bot logins
In POSIX shell case patterns, [bot] is a glob character class that matches a single character (b/o/t), not the literal string '[bot]'. This meant release-please[bot], dependabot[bot], and the other bot exemptions never matched and those PRs would have been failed by validate-pr-base. Escape the brackets so the patterns match the actual GitHub App login strings. Caught by Greptile review.
1 parent 9f95e79 commit 3ed13c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/lint-pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
run: |
5959
# Exempt automated PRs (Stainless codegen, release-please, dependabot, etc.)
6060
case "$PR_AUTHOR" in
61-
stainless-app|stainless-app[bot]|release-please[bot]|github-actions[bot]|dependabot[bot])
61+
stainless-app|stainless-app\[bot\]|release-please\[bot\]|github-actions\[bot\]|dependabot\[bot\])
6262
echo "PR is from automation ($PR_AUTHOR); allowing PR targeting main."
6363
exit 0
6464
;;

0 commit comments

Comments
 (0)