ci: React to issue_comment in claude review workflow
issue_comment is the trigger that fires on regular pull request comments, so we have to trigger the review workflow on that as well.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
d2fec49b55
commit
a67cb44287
@@ -5,6 +5,10 @@
|
|||||||
name: Claude Review
|
name: Claude Review
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
# Strangely enough you have to use issue_comment to react to regular comments on PRs.
|
||||||
|
# See https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_comment-use-issue_comment.
|
||||||
|
issue_comment:
|
||||||
|
types: [created]
|
||||||
pull_request_review_comment:
|
pull_request_review_comment:
|
||||||
types: [created]
|
types: [created]
|
||||||
pull_request_review:
|
pull_request_review:
|
||||||
@@ -18,6 +22,9 @@ jobs:
|
|||||||
|
|
||||||
if: |
|
if: |
|
||||||
github.repository_owner == 'systemd' &&
|
github.repository_owner == 'systemd' &&
|
||||||
|
((github.event_name == 'issue_comment' &&
|
||||||
|
contains(github.event.comment.body, '@claude') &&
|
||||||
|
contains(fromJSON('["MEMBER","OWNER","COLLABORATOR"]'), github.event.comment.author_association)) ||
|
||||||
(github.event_name == 'pull_request_review_comment' &&
|
(github.event_name == 'pull_request_review_comment' &&
|
||||||
contains(github.event.comment.body, '@claude') &&
|
contains(github.event.comment.body, '@claude') &&
|
||||||
contains(fromJSON('["MEMBER","OWNER","COLLABORATOR"]'), github.event.comment.author_association)) ||
|
contains(fromJSON('["MEMBER","OWNER","COLLABORATOR"]'), github.event.comment.author_association)) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user