Skip to content

Commit bf30b53

Browse files
committed
Fixed trigger behavior
1 parent c4dc2f3 commit bf30b53

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/claude-pr-triage.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,39 @@ name: PR Triage
22
on:
33
pull_request:
44
types: [ ready_for_review, synchronize ]
5-
pull_request_review_comment:
6-
types: [created ]
5+
issue_comment:
6+
types: [ created ]
77

88
permissions:
99
contents: read
1010
issues: read
1111
pull-requests: write
1212

1313
concurrency:
14-
group: claude-triage-${{ github.event.pull_request.number || github.event.inputs.pr_number }}
14+
group: claude-triage-${{ github.event.pull_request.number || github.event.issue.number }}
15+
cancel-in-progress: true
1516

1617
jobs:
1718
triage:
1819
if: |
1920
startsWith(github.repository, 'ClickHouse/') &&
2021
(
21-
github.event_name == 'schedule' ||
22-
github.event_name == 'workflow_dispatch' ||
23-
github.event_name == 'pull_request' ||
2422
(
25-
github.event_name == 'pull_request_review_comment' &&
23+
github.event_name == 'pull_request' &&
24+
github.event.pull_request.draft == false
25+
) ||
26+
(
27+
github.event_name == 'issue_comment' &&
2628
github.event.issue.pull_request != null &&
2729
github.event.sender.type != 'Bot' &&
2830
github.event.comment.user.type != 'Bot' &&
2931
startsWith(github.event.comment.body, '/triage') &&
3032
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)
3133
)
3234
)
33-
uses: ClickHouse/integrations-shared-workflows/.github/workflows/claude-pr-triage.yml@main
35+
uses: ClickHouse/integrations-shared-workflows/.github/workflows/claude-pr-triage.yml@3d91ad26a6d8e9164eb120fb0433ec2defd5c68a
3436
with:
35-
pr_number: ${{ github.event.inputs.pr_number }}
37+
pr_number: ${{ github.event.pull_request.number || github.event.issue.number }}
3638
triage_instructions: |
3739
## Category meanings
3840

0 commit comments

Comments
 (0)