From 348ccea6555381a73f6c75f30e0fe255adae9f39 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 2 Jun 2025 06:01:49 +0000 Subject: [PATCH 1/4] chore(deps): add renovate.json --- renovate.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..c183f9d --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "local>Renovate/renovate-config" + ] +} From abac1fea78b8efd1e0c8d6105b410dc57517fe94 Mon Sep 17 00:00:00 2001 From: jank Date: Mon, 2 Jun 2025 07:40:56 +0200 Subject: [PATCH 2/4] chore: Implement the action in its own repo --- .forgejo/workflows/claude.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .forgejo/workflows/claude.yml diff --git a/.forgejo/workflows/claude.yml b/.forgejo/workflows/claude.yml new file mode 100644 index 0000000..a3e6761 --- /dev/null +++ b/.forgejo/workflows/claude.yml @@ -0,0 +1,16 @@ +name: Claude PR Review + +on: + pull_request: + types: [opened, synchronize] + +jobs: + claude: + runs-on: ubuntu-latest + steps: + - name: Claude + uses: https://git.kjan.de/actions/claude-pr-review@main + with: + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + GITEA_URL: ${{ secrets._GITEA_URL }} + GITEA_CLAUDE_TOKEN: ${{ secrets._GITEA_CLAUDE_TOKEN }} From 131b83733b4cc1927fc69aa7f179f05bdac5f979 Mon Sep 17 00:00:00 2001 From: jank Date: Mon, 2 Jun 2025 08:18:10 +0200 Subject: [PATCH 3/4] idk --- action.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/action.yml b/action.yml index 4e822e3..afd6436 100644 --- a/action.yml +++ b/action.yml @@ -47,14 +47,6 @@ runs: GITEA_URL: ${{ inputs.GITEA_URL }} GITEA_TOKEN: ${{ inputs.GITEA_CLAUDE_TOKEN }} run: | - if [ -z "$GITEA_URL" ]; then - echo "Error: GITEA_URL secret is not set." - exit 1 - fi - if [ -z "$GITEA_TOKEN" ]; then - echo "Error: GITEA_TOKEN secret is not set." - exit 1 - fi tea login add --name mygitea --url "$GITEA_URL" --token "$GITEA_TOKEN" --insecure ${{ startsWith(secrets._GITEA_URL, 'http://') || '' }} - name: Install bun From cc504b8ec75c129dcf11ed86c07e28e4d2995737 Mon Sep 17 00:00:00 2001 From: jank Date: Mon, 2 Jun 2025 07:40:56 +0200 Subject: [PATCH 4/4] chore: Implement the action in its own repo --- .forgejo/workflows/claude.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .forgejo/workflows/claude.yml diff --git a/.forgejo/workflows/claude.yml b/.forgejo/workflows/claude.yml new file mode 100644 index 0000000..a3e6761 --- /dev/null +++ b/.forgejo/workflows/claude.yml @@ -0,0 +1,16 @@ +name: Claude PR Review + +on: + pull_request: + types: [opened, synchronize] + +jobs: + claude: + runs-on: ubuntu-latest + steps: + - name: Claude + uses: https://git.kjan.de/actions/claude-pr-review@main + with: + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + GITEA_URL: ${{ secrets._GITEA_URL }} + GITEA_CLAUDE_TOKEN: ${{ secrets._GITEA_CLAUDE_TOKEN }}