Skip to content

Commit 8e43855

Browse files
committed
👷 (gha): Do not review bot's PRs with Claude
1 parent 253dabd commit 8e43855

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

‎.github/workflows/claude-code-review.yml‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ on:
1212

1313
jobs:
1414
claude-review:
15-
# Optional: Filter by PR author
16-
# if: |
17-
# github.event.pull_request.user.login == 'external-contributor' ||
18-
# github.event.pull_request.user.login == 'new-developer' ||
19-
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
15+
# Skip review for bot PRs (e.g., Dependabot)
16+
if: github.event.pull_request.user.type != 'Bot'
2017

2118
runs-on: ubuntu-latest
2219
permissions:

‎.github/workflows/claude.yml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ on:
1313
jobs:
1414
claude:
1515
if: |
16-
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
17-
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
18-
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
19-
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
16+
github.actor != 'dependabot[bot]' && github.actor != 'github-actions[bot]' &&
17+
(
18+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
19+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
20+
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
21+
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
22+
)
2023
runs-on: ubuntu-latest
2124
permissions:
2225
contents: read

0 commit comments

Comments
 (0)