ci: Only run claude-review automatically on PRs to main

This commit is contained in:
Daan De Meyer
2026-03-24 10:21:04 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent da580dc161
commit 516a7b2baa

View File

@@ -36,6 +36,7 @@ jobs:
(github.event.action == 'labeled' && github.event.label.name == 'claude-review' && github.event.sender.login != 'github-actions[bot]' ||
github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'claude-review') ||
github.event.action == 'opened' &&
github.event.pull_request.base.ref == 'main' &&
contains(fromJSON('["MEMBER","OWNER","COLLABORATOR"]'), github.event.pull_request.author_association) &&
github.event.pull_request.user.login != 'YHNdnzj')) ||
(github.event_name == 'issue_comment' &&