mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-09-30 03:43:10 +00:00
Add pull_request trigger for required workflow ruleset
Required workflows via rulesets need a pull_request trigger directly. Falls back to org secret when not called via workflow_call.
This commit is contained in:
parent
0da9b01905
commit
b305a4a887
1 changed files with 3 additions and 1 deletions
4
.github/workflows/claude-code-review.yaml
vendored
4
.github/workflows/claude-code-review.yaml
vendored
|
|
@ -1,6 +1,8 @@
|
|||
name: Claude Code Review
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
workflow_call:
|
||||
secrets:
|
||||
anthropic_api_key:
|
||||
|
|
@ -22,7 +24,7 @@ jobs:
|
|||
|
||||
- uses: anthropics/claude-code-action@v1
|
||||
with:
|
||||
anthropic_api_key: ${{ secrets.anthropic_api_key }}
|
||||
anthropic_api_key: ${{ secrets.anthropic_api_key || secrets.ANTHROPIC_API_KEY }}
|
||||
prompt: |
|
||||
Review this pull request. Focus on:
|
||||
- Code correctness and potential bugs
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue