Skip to content

Commit 5f8c0ee

Browse files
chore: refactor claude action (#12)
1 parent f2ea3b6 commit 5f8c0ee

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/claude.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
pull_request_review_comment:
77
types: [created]
88
issues:
9-
types: [opened, assigned]
9+
types: [opened, assigned, labeled]
1010
pull_request_review:
1111
types: [submitted]
1212

@@ -35,12 +35,13 @@ jobs:
3535
uses: anthropics/claude-code-action@v1
3636
with:
3737
anthropic_api_key: ${{ secrets.ACTION_ANTHROPIC_API_KEY }}
38+
additional_permissions: |
39+
actions: read
40+
label_trigger: "claude"
41+
assignee_trigger: "claude[bot]"
3842
claude_args: |
39-
--system-prompt "Use branch prefix: claude-agent-
40-
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.
41-
Push your changes to the branch and verify that the branch is found before done
42-
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"
43-
assignee_trigger: "claude-bot"
43+
--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."
44+
--max-turns 15
4445
# Optional: Customize the trigger phrase (default: @claude)
4546
# trigger_phrase: "/claude"
4647

0 commit comments

Comments
 (0)