]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: Only trigger claude review workflow on pr comments
authorDaan De Meyer <daan@amutable.com>
Tue, 10 Mar 2026 19:55:40 +0000 (20:55 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 10 Mar 2026 20:02:36 +0000 (21:02 +0100)
The trigger for regular pr and issue comments is the same, so we
have to make sure we skip if it's an issue comment and not a pr
comment.

.github/workflows/claude-review.yml

index 0f151add147419e1bed73250d3ca83a8b82d525a..c60bd3fac8e2c60f124e26072fe0d7c84a388681 100644 (file)
@@ -31,6 +31,7 @@ jobs:
     if: |
       github.repository_owner == 'systemd' &&
       ((github.event_name == 'issue_comment' &&
+        github.event.issue.pull_request &&
         contains(github.event.comment.body, '@claude') &&
         contains(fromJSON('["MEMBER","OWNER","COLLABORATOR"]'), github.event.comment.author_association)) ||
        (github.event_name == 'pull_request_review_comment' &&