From ff7735132fe66a0f17f0561f91c45912733f6c65 Mon Sep 17 00:00:00 2001 From: gitcommitshow <56937085+gitcommitshow@users.noreply.github.com> Date: Mon, 8 Sep 2025 15:49:46 +0530 Subject: [PATCH] chore: refactor claude action --- .github/workflows/claude.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 1b0128c..ace400d 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -6,7 +6,7 @@ on: pull_request_review_comment: types: [created] issues: - types: [opened, assigned] + types: [opened, assigned, labeled] pull_request_review: types: [submitted] @@ -35,12 +35,13 @@ jobs: uses: anthropics/claude-code-action@v1 with: anthropic_api_key: ${{ secrets.ACTION_ANTHROPIC_API_KEY }} + additional_permissions: | + actions: read + label_trigger: "claude" + assignee_trigger: "claude[bot]" claude_args: | - --system-prompt "Use branch prefix: claude-agent- - If the branch already exists, continue working on it, that means you already worked on this issue, and now continue working on it and making changes and fixes. - Push your changes to the branch and verify that the branch is found before done - I need you to check if the branch is live - no need for PR, make sure the branch you made and committed all the changes to is there" - assignee_trigger: "claude-bot" + --system-prompt "When working on issues, create a new branch, make your changes, and push to remote. Always ensure the branch is pushed before completing." + --max-turns 15 # Optional: Customize the trigger phrase (default: @claude) # trigger_phrase: "/claude"