fix(workflow): add 'labeled' event type for issues to trigger Claude
This commit is contained in:
parent
7c39d86ae4
commit
7b21f6dacc
1 changed files with 3 additions and 2 deletions
5
.github/workflows/claude.yml
vendored
5
.github/workflows/claude.yml
vendored
|
|
@ -6,7 +6,7 @@ on:
|
|||
pull_request_review_comment:
|
||||
types: [created]
|
||||
issues:
|
||||
types: [opened, assigned]
|
||||
types: [opened, assigned, labeled]
|
||||
pull_request_review:
|
||||
types: [submitted]
|
||||
|
||||
|
|
@ -16,7 +16,8 @@ jobs:
|
|||
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
|
||||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
|
||||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
|
||||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
|
||||
(github.event_name == 'issues' && github.event.action == 'labeled' && contains(fromJson('["claude"]'), toLower(github.event.label.name))) ||
|
||||
(github.event_name == 'issues' && github.event.action != 'labeled' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
|
|
|
|||
Loading…
Reference in a new issue