From cc504b8ec75c129dcf11ed86c07e28e4d2995737 Mon Sep 17 00:00:00 2001 From: jank Date: Mon, 2 Jun 2025 07:40:56 +0200 Subject: [PATCH 1/3] 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 d566ef116460359f25bafd5ac1f4c66058031be8 Mon Sep 17 00:00:00 2001 From: jank Date: Mon, 2 Jun 2025 08:24:59 +0200 Subject: [PATCH 2/3] whoops --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index afd6436..3073df3 100644 --- a/action.yml +++ b/action.yml @@ -47,7 +47,7 @@ runs: GITEA_URL: ${{ inputs.GITEA_URL }} GITEA_TOKEN: ${{ inputs.GITEA_CLAUDE_TOKEN }} run: | - tea login add --name mygitea --url "$GITEA_URL" --token "$GITEA_TOKEN" --insecure ${{ startsWith(secrets._GITEA_URL, 'http://') || '' }} + tea login add --name mygitea --url "$GITEA_URL" --token "$GITEA_TOKEN" --insecure ${{ startsWith(inputs.GITEA_URL, 'http://') || '' }} - name: Install bun uses: oven-sh/setup-bun@v2 From 8de3392da8309ee6f9ecfe1982ff811aca3cb91c Mon Sep 17 00:00:00 2001 From: jank Date: Mon, 2 Jun 2025 07:40:56 +0200 Subject: [PATCH 3/3] 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 }}