mirror of
https://github.com/anthropics/claude-cookbooks.git
synced 2025-10-06 01:00:28 +03:00
34 lines
880 B
YAML
34 lines
880 B
YAML
name: Claude Link Review
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
paths:
|
|
- '**.md'
|
|
- '**.mdx'
|
|
- '**.ipynb'
|
|
- 'README.md'
|
|
|
|
jobs:
|
|
link-review:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
id-token: write
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Run Claude Link Review
|
|
uses: anthropics/claude-code-action@v1
|
|
with:
|
|
CLAUDE_API_KEY: ${{ secrets.CLAUDE_API_KEY }}
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
prompt: "/link-review"
|
|
claude_args: |
|
|
--allowedTools "Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(echo:*),Read,Glob,Grep,WebFetch"
|
|
env:
|
|
PR_NUMBER: ${{ github.event.pull_request.number }} |