Compare commits

..

2 commits

Author SHA1 Message Date
abac1fea78 chore: Implement the action in its own repo
Some checks failed
Claude PR Review / claude (pull_request) Failing after 7s
2025-06-02 08:13:25 +02:00
28f88dc04f fix: Add missing vars 2025-06-02 07:48:18 +02:00

View file

@ -4,6 +4,12 @@ inputs:
ANTHROPIC_API_KEY:
description: "The API key for the anthropic API"
required: true
GITEA_URL:
description: "The URL of the Gitea instance"
required: true
GITEA_CLAUDE_TOKEN:
description: "The token of the claude account for the Gitea instance"
required: true
runs:
using: "composite"
@ -38,8 +44,8 @@ runs:
- name: Add Gitea Login
env:
GITEA_URL: ${{ secrets._GITEA_URL }}
GITEA_TOKEN: ${{ secrets._GITEA_TOKEN }}
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."
@ -60,7 +66,7 @@ runs:
- name: Claude PR Review
if: steps.check-renovate.outputs.author != 'Renovate Bot'
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
ANTHROPIC_API_KEY: ${{ inputs.ANTHROPIC_API_KEY }}
PR_NUMBER: ${{ github.event.number }}
run: |
claude --allowedTools "Bash(tea:*)" --allowedTools "Bash(git:*) Read Grep WebFetch Glob LS" -p "You are a code review assistant. Your task is to review the changes in Pull Request #${PR_NUMBER}. All relevant changes can be seen by looking at the git diff HEAD...main (NEVER EVER REVIEW ALL THE CODE ONLY THE ONE FROM THE DIFF you can use the rest as context) or using the tea cli which you can use and we are on gitea. Also make sure to only review the changes in this pull request