mirror of
https://github.com/pacnpal/Claude-code-review.git
synced 2025-12-20 12:11:09 -05:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
782f8cccd0 | ||
|
|
6a73dbfff6 | ||
|
|
52219d4d98 | ||
|
|
c555f5511a | ||
|
|
bd3279eb92 | ||
|
|
18251326f9 | ||
|
|
5f46e3056e |
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -9,6 +9,8 @@ on:
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
||||
31
README.md
31
README.md
@@ -13,29 +13,44 @@ A GitHub Action that performs automated code reviews using Claude AI.
|
||||
Add this to your GitHub workflow file (e.g. `.github/workflows/review.yml`):
|
||||
|
||||
```yaml
|
||||
name: Code Review
|
||||
name: Claude Code Review
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
on:
|
||||
# Run on new/updated PRs
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize]
|
||||
|
||||
# Allow manual triggers for existing PRs
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
pr_number:
|
||||
description: 'Pull Request Number'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
review:
|
||||
code-review:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: your-username/claude-code-review-action@v1
|
||||
- name: Run Claude Review
|
||||
uses: pacnpal/claude-code-review@v1.0.6
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
anthropic-key: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
pr-number: ${{ github.event.pull_request.number }}
|
||||
pr-number: ${{ github.event.pull_request.number || inputs.pr_number }}
|
||||
```
|
||||
- Click on "Claude Code Review" Action under Actions tab.
|
||||
- Click "Run Workflow"
|
||||
- Fill in branch and pull request ID and click "Run Workflow"
|
||||
|
||||
## Setup
|
||||
|
||||
@@ -130,4 +145,4 @@ MIT License - see the [LICENSE](LICENSE) file for details
|
||||
|
||||
- Open an issue for bugs/feature requests
|
||||
- Submit a PR to contribute
|
||||
- Contact maintainers for other questions
|
||||
- Contact maintainers for other questions
|
||||
|
||||
@@ -18,4 +18,4 @@ outputs:
|
||||
description: 'Generated code review'
|
||||
runs:
|
||||
using: 'node20'
|
||||
main: 'action.js'
|
||||
main: 'dist/index.js'
|
||||
32027
dist/index.js
vendored
Normal file
32027
dist/index.js
vendored
Normal file
File diff suppressed because one or more lines are too long
3415
package-lock.json
generated
Normal file
3415
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
@@ -7,17 +7,22 @@
|
||||
"test": "jest",
|
||||
"build": "ncc build action.js -o dist"
|
||||
},
|
||||
"keywords": ["github", "action", "code-review", "claude"],
|
||||
"keywords": [
|
||||
"github",
|
||||
"action",
|
||||
"code-review",
|
||||
"claude"
|
||||
],
|
||||
"author": "PacNPal",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.1",
|
||||
"@actions/github": "^6.0.0",
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/github": "^6.0.0",
|
||||
"node-fetch": "^3.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vercel/ncc": "^0.38.3",
|
||||
"jest": "^29.7.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user