From 78f6fc706e12006b7ffe3b75d52076ed9eab1dd4 Mon Sep 17 00:00:00 2001 From: jank Date: Mon, 2 Jun 2025 08:50:13 +0200 Subject: [PATCH 1/6] chore: Add README --- README.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/README.md b/README.md index e69de29..9b6d35f 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,41 @@ +# Claude PR Review + +## Description + +Reviews a PR using Claude + +## Inputs + +| name | description | required | default | +| -------------------- | ------------------------------------------------------------- | -------- | ------- | +| `ANTHROPIC_API_KEY` |

The API key for the anthropic API

| `true` | `""` | +| `GITEA_URL` |

The URL of the Gitea instance

| `true` | `""` | +| `GITEA_CLAUDE_TOKEN` |

The token of the claude account for the Gitea instance

| `true` | `""` | + +## Runs + +This action is a `composite` action. + +## Usage + +```yaml +- uses: ***PROJECT***@***VERSION*** + 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: "" +``` From c298cc9c98944f10c9eab55608fead7f6b6d3f10 Mon Sep 17 00:00:00 2001 From: jank Date: Mon, 2 Jun 2025 08:52:09 +0200 Subject: [PATCH 2/6] fix: Whoops --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b6d35f..d5c3fc8 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ This action is a `composite` action. ## Usage ```yaml -- uses: ***PROJECT***@***VERSION*** +- uses: https://git.kjan.de/actions/claude-pr-review@v1 with: ANTHROPIC_API_KEY: # The API key for the anthropic API From 39bb03327044b418c1f1dc124f3a1f67c8ac1811 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 2 Jun 2025 07:04:06 +0000 Subject: [PATCH 3/6] chore(deps): update https://git.kjan.de/actions/claude-pr-review digest to c298cc9 --- .forgejo/workflows/claude.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/claude.yml b/.forgejo/workflows/claude.yml index caa4ee5..04562a3 100644 --- a/.forgejo/workflows/claude.yml +++ b/.forgejo/workflows/claude.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Claude - uses: https://git.kjan.de/actions/claude-pr-review@1878fa8a576e5052194a42678af6f23776c7b206 + uses: https://git.kjan.de/actions/claude-pr-review@c298cc9c98944f10c9eab55608fead7f6b6d3f10 with: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} GITEA_URL: ${{ secrets._GITEA_URL }} From c74707d50e3e98bf3d6a8fef573c78874472e2ce Mon Sep 17 00:00:00 2001 From: jank Date: Mon, 2 Jun 2025 09:07:05 +0200 Subject: [PATCH 4/6] fix: dont release on chore --- release.config.cjs | 2 -- 1 file changed, 2 deletions(-) diff --git a/release.config.cjs b/release.config.cjs index dffea8d..3b51bc9 100644 --- a/release.config.cjs +++ b/release.config.cjs @@ -13,7 +13,6 @@ module.exports = { { type: "style", release: "patch" }, { type: "refactor", release: "patch" }, { type: "test", release: "patch" }, - { type: "chore", release: "patch" }, { type: "ci", release: "patch" }, { type: "build", release: "patch" }, { type: "revert", release: "patch" }, @@ -37,7 +36,6 @@ module.exports = { { type: "style", section: "Code Style", hidden: false }, { type: "refactor", section: "Code Refactoring", hidden: false }, { type: "test", section: "Tests", hidden: false }, - { type: "chore", section: "Chores", hidden: false }, { type: "ci", section: "Continuous Integration", hidden: false }, { type: "build", section: "Build System", hidden: false }, { type: "revert", section: "Reverts", hidden: false }, From 23487ee91f7b8a482ed5c2c1c03cf744f57eac3a Mon Sep 17 00:00:00 2001 From: jank Date: Tue, 3 Jun 2025 07:40:59 +0200 Subject: [PATCH 5/6] fix: Continue if the claude action fails --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index ef877f0..dfc8ba2 100644 --- a/action.yml +++ b/action.yml @@ -57,6 +57,7 @@ runs: - name: Claude PR Review if: steps.check-renovate.outputs.author != 'Renovate Bot' + continue-on-error: true env: ANTHROPIC_API_KEY: ${{ inputs.ANTHROPIC_API_KEY }} PR_NUMBER: ${{ github.event.number }} From fea848c8d7a246695841848738927c94ce2f139b Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 3 Jun 2025 05:46:42 +0000 Subject: [PATCH 6/6] chore(deps): update https://git.kjan.de/actions/claude-pr-review digest to 23487ee --- .forgejo/workflows/claude.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/claude.yml b/.forgejo/workflows/claude.yml index 04562a3..99a9d45 100644 --- a/.forgejo/workflows/claude.yml +++ b/.forgejo/workflows/claude.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Claude - uses: https://git.kjan.de/actions/claude-pr-review@c298cc9c98944f10c9eab55608fead7f6b6d3f10 + uses: https://git.kjan.de/actions/claude-pr-review@23487ee91f7b8a482ed5c2c1c03cf744f57eac3a with: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} GITEA_URL: ${{ secrets._GITEA_URL }}