diff --git a/action.yml b/action.yml index 6d5fa0c..4e822e3 100644 --- a/action.yml +++ b/action.yml @@ -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