Skip to content

Commit 8acfcbe

Browse files
brtkwrclaude
andcommitted
INF-661/feat: use CLAUDE_REVIEW_CONFIG for auto-review gating
- Replace ENABLE_CLAUDE_AUTO_REVIEW with CLAUDE_REVIEW_CONFIG org variable - Remove branch filter (now controlled via config) - Add GitHub App auth for private plugin marketplace Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent 7baa5c4 commit 8acfcbe

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/claude-code-review.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Claude Code Review
22
on:
33
pull_request:
44
types: [opened, synchronize]
5-
branches:
6-
- main
75
issue_comment:
86
types: [created]
97
pull_request_review_comment:
@@ -22,7 +20,11 @@ jobs:
2220
code-review:
2321
runs-on: ${{ vars.RUNNER_STANDARD }}
2422
if: |
25-
(github.event_name == 'pull_request' && vars.ENABLE_CLAUDE_AUTO_REVIEW == 'true') ||
23+
(
24+
github.event_name == 'pull_request' &&
25+
vars.CLAUDE_REVIEW_CONFIG != '' &&
26+
fromJSON(vars.CLAUDE_REVIEW_CONFIG)[format('{0}:{1}', github.base_ref, github.event.action)] == true
27+
) ||
2628
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
2729
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
2830
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude'))
@@ -32,6 +34,8 @@ jobs:
3234
LINEAR_API_KEY: ${{ secrets.LINEAR_API_KEY }}
3335
with:
3436
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
37+
github_app_id: ${{ vars.TWO_INC_APP_ID }}
38+
github_app_private_key: ${{ secrets.TWO_INC_APP_PRIVATE_KEY }}
3539
extra_prompt: |
3640
3741
## Magento Plugin Specific Guidelines:

0 commit comments

Comments
 (0)