Skip to content

Commit ac8b3dd

Browse files
authored
chore: only manual claude call (#2647)
1 parent 7f15c5b commit ac8b3dd

File tree

2 files changed

+12
-23
lines changed

2 files changed

+12
-23
lines changed

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

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
11
name: Claude Code Review
22

33
on:
4-
pull_request:
5-
types: [opened, synchronize]
6-
# Optional: Only run on specific file changes
7-
paths:
8-
- 'src/**/*.ts'
9-
- 'src/**/*.tsx'
10-
- 'src/**/*.js'
11-
- 'src/**/*.jsx'
12-
- 'package.json'
13-
- 'package-lock.json'
4+
workflow_dispatch:
5+
issue_comment:
6+
types: [created]
147

158
jobs:
169
claude-review:
17-
# Optional: Skip review for specific conditions
1810
if: |
19-
!contains(github.event.pull_request.title, '[skip-review]') &&
20-
!contains(github.event.pull_request.title, '[WIP]')
11+
github.event_name == 'workflow_dispatch' ||
12+
(github.event_name == 'issue_comment' &&
13+
github.event.issue.pull_request &&
14+
contains(github.event.comment.body, '/claude_review'))
2115
2216
runs-on: ubuntu-latest
2317
permissions:

.github/workflows/claude.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
name: Claude Code
22

33
on:
4+
workflow_dispatch:
45
issue_comment:
56
types: [created]
6-
pull_request_review_comment:
7-
types: [created]
8-
issues:
9-
types: [opened, assigned]
10-
pull_request_review:
11-
types: [submitted]
127

138
jobs:
149
claude:
1510
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')))
11+
github.event_name == 'workflow_dispatch' ||
12+
(github.event_name == 'issue_comment' &&
13+
github.event.issue.pull_request &&
14+
contains(github.event.comment.body, '@claude'))
2015
runs-on: ubuntu-latest
2116
permissions:
2217
contents: read

0 commit comments

Comments
 (0)