Compare commits
8 commits
Author | SHA1 | Date | |
---|---|---|---|
6a490eeb51 |
|||
fea848c8d7 |
|||
23487ee91f | |||
d4902aada7 |
|||
c74707d50e | |||
39bb033270 |
|||
c298cc9c98 | |||
78f6fc706e |
4 changed files with 43 additions and 3 deletions
|
@ -9,7 +9,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Claude
|
- name: Claude
|
||||||
uses: https://git.kjan.de/actions/claude-pr-review@1878fa8a576e5052194a42678af6f23776c7b206
|
uses: https://git.kjan.de/actions/claude-pr-review@23487ee91f7b8a482ed5c2c1c03cf744f57eac3a
|
||||||
with:
|
with:
|
||||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||||
GITEA_URL: ${{ secrets._GITEA_URL }}
|
GITEA_URL: ${{ secrets._GITEA_URL }}
|
||||||
|
|
41
README.md
41
README.md
|
@ -0,0 +1,41 @@
|
||||||
|
# Claude PR Review
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
Reviews a PR using Claude
|
||||||
|
|
||||||
|
## Inputs
|
||||||
|
|
||||||
|
| name | description | required | default |
|
||||||
|
| -------------------- | ------------------------------------------------------------- | -------- | ------- |
|
||||||
|
| `ANTHROPIC_API_KEY` | <p>The API key for the anthropic API</p> | `true` | `""` |
|
||||||
|
| `GITEA_URL` | <p>The URL of the Gitea instance</p> | `true` | `""` |
|
||||||
|
| `GITEA_CLAUDE_TOKEN` | <p>The token of the claude account for the Gitea instance</p> | `true` | `""` |
|
||||||
|
|
||||||
|
## Runs
|
||||||
|
|
||||||
|
This action is a `composite` action.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- uses: https://git.kjan.de/actions/claude-pr-review@v1
|
||||||
|
with:
|
||||||
|
ANTHROPIC_API_KEY:
|
||||||
|
# The API key for the anthropic API
|
||||||
|
#
|
||||||
|
# Required: true
|
||||||
|
# Default: ""
|
||||||
|
|
||||||
|
GITEA_URL:
|
||||||
|
# The URL of the Gitea instance
|
||||||
|
#
|
||||||
|
# Required: true
|
||||||
|
# Default: ""
|
||||||
|
|
||||||
|
GITEA_CLAUDE_TOKEN:
|
||||||
|
# The token of the claude account for the Gitea instance
|
||||||
|
#
|
||||||
|
# Required: true
|
||||||
|
# Default: ""
|
||||||
|
```
|
|
@ -57,6 +57,7 @@ runs:
|
||||||
|
|
||||||
- name: Claude PR Review
|
- name: Claude PR Review
|
||||||
if: steps.check-renovate.outputs.author != 'Renovate Bot'
|
if: steps.check-renovate.outputs.author != 'Renovate Bot'
|
||||||
|
continue-on-error: true
|
||||||
env:
|
env:
|
||||||
ANTHROPIC_API_KEY: ${{ inputs.ANTHROPIC_API_KEY }}
|
ANTHROPIC_API_KEY: ${{ inputs.ANTHROPIC_API_KEY }}
|
||||||
PR_NUMBER: ${{ github.event.number }}
|
PR_NUMBER: ${{ github.event.number }}
|
||||||
|
|
|
@ -13,7 +13,6 @@ module.exports = {
|
||||||
{ type: "style", release: "patch" },
|
{ type: "style", release: "patch" },
|
||||||
{ type: "refactor", release: "patch" },
|
{ type: "refactor", release: "patch" },
|
||||||
{ type: "test", release: "patch" },
|
{ type: "test", release: "patch" },
|
||||||
{ type: "chore", release: "patch" },
|
|
||||||
{ type: "ci", release: "patch" },
|
{ type: "ci", release: "patch" },
|
||||||
{ type: "build", release: "patch" },
|
{ type: "build", release: "patch" },
|
||||||
{ type: "revert", release: "patch" },
|
{ type: "revert", release: "patch" },
|
||||||
|
@ -37,7 +36,6 @@ module.exports = {
|
||||||
{ type: "style", section: "Code Style", hidden: false },
|
{ type: "style", section: "Code Style", hidden: false },
|
||||||
{ type: "refactor", section: "Code Refactoring", hidden: false },
|
{ type: "refactor", section: "Code Refactoring", hidden: false },
|
||||||
{ type: "test", section: "Tests", hidden: false },
|
{ type: "test", section: "Tests", hidden: false },
|
||||||
{ type: "chore", section: "Chores", hidden: false },
|
|
||||||
{ type: "ci", section: "Continuous Integration", hidden: false },
|
{ type: "ci", section: "Continuous Integration", hidden: false },
|
||||||
{ type: "build", section: "Build System", hidden: false },
|
{ type: "build", section: "Build System", hidden: false },
|
||||||
{ type: "revert", section: "Reverts", hidden: false },
|
{ type: "revert", section: "Reverts", hidden: false },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue