Skip to content

Commit 69d9550

Browse files
authored
Upgrade GitHub workflows to claude-code-action@v1 (#1956)
1 parent d9fe373 commit 69d9550

3 files changed

Lines changed: 19 additions & 14 deletions

File tree

.github/workflows/marvin-dedupe-issues.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
- Use `gh` to interact with GitHub, rather than web fetch
5252
- Do not use other tools, beyond `gh` and Task (eg. don't use other MCP servers, file edit, etc.)
5353
- Make a todo list first
54+
- Never include this issue as a duplicate of itself
5455
5556
For your comment, follow this format precisely (example with 3 suspected duplicates):
5657
@@ -70,11 +71,13 @@ jobs:
7071
EOF
7172
7273
- name: Run Marvin dedupe command
73-
uses: anthropics/claude-code-base-action@beta
74+
uses: anthropics/claude-code-action@v1
7475
with:
75-
model: claude-3-5-haiku-latest
7676
prompt_file: /tmp/claude-prompts/dedupe-prompt.txt
77-
allowed_tools: "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh api:*),Bash(gh issue comment:*),Task"
7877
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_FOR_CI }}
79-
claude_env: |
80-
GH_TOKEN: ${{ steps.marvin-token.outputs.token }}
78+
claude_args: |
79+
--allowedTools Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh api:*),Bash(gh issue comment:*),Task
80+
settings: |
81+
{
82+
"GH_TOKEN": "${{ steps.marvin-token.outputs.token }}"
83+
}

.github/workflows/marvin-label-triage.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,14 @@ jobs:
146146
EOF
147147
148148
- name: Run Marvin for Issue Triage
149-
uses: anthropics/claude-code-base-action@beta
149+
uses: anthropics/claude-code-action@v1
150150
with:
151151
prompt_file: /tmp/claude-prompts/triage-prompt.txt
152-
allowed_tools: "Bash(gh label list),mcp__github__get_issue,mcp__github__get_issue_comments,mcp__github__update_issue,mcp__github__get_pull_request_files"
153-
timeout_minutes: "5"
154152
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_FOR_CI }}
155-
mcp_config: /tmp/mcp-config/mcp-servers.json
156-
claude_env: |
157-
GH_TOKEN: ${{ steps.marvin-token.outputs.token }}
153+
claude_args: |
154+
--allowedTools Bash(gh label list),mcp__github__get_issue,mcp__github__get_issue_comments,mcp__github__update_issue,mcp__github__get_pull_request_files
155+
--mcp-config /tmp/mcp-config/mcp-servers.json
156+
settings: |
157+
{
158+
"GH_TOKEN": "${{ steps.marvin-token.outputs.token }}"
159+
}

.github/workflows/marvin.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ jobs:
5959

6060
# Marvin Assistant
6161
- name: Run Marvin
62-
uses: anthropics/claude-code-action@beta
62+
uses: anthropics/claude-code-action@v1
6363
with:
6464
github_token: ${{ steps.marvin-token.outputs.token }}
6565
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
66-
mode: tag
6766
trigger_phrase: "/marvin"
6867
allowed_bots: "*"
69-
allowed_tools: "WebSearch,WebFetch,Bash(uv:*),Bash(pre-commit:*),Bash(pytest:*),Bash(ruff:*),Bash(ty:*),Bash(git:*),Bash(gh:*),mcp__github__add_issue_comment,mcp__github__create_issue,mcp__github__get_issue,mcp__github__list_issues,mcp__github__search_issues,mcp__github__update_issue,mcp__github__update_issue_comment,mcp__github__create_pull_request,mcp__github__get_pull_request,mcp__github__get_pull_request_comments,mcp__github__get_pull_request_files,mcp__github__get_pull_request_reviews,mcp__github__get_pull_request_status,mcp__github__list_pull_requests,mcp__github__update_pull_request,mcp__github__update_pull_request_branch,mcp__github__update_pull_request_comment,mcp__github__merge_pull_request"
68+
claude_args: |
69+
--allowedTools WebSearch,WebFetch,Bash(uv:*),Bash(pre-commit:*),Bash(pytest:*),Bash(ruff:*),Bash(ty:*),Bash(git:*),Bash(gh:*),mcp__github__add_issue_comment,mcp__github__create_issue,mcp__github__get_issue,mcp__github__list_issues,mcp__github__search_issues,mcp__github__update_issue,mcp__github__update_issue_comment,mcp__github__create_pull_request,mcp__github__get_pull_request,mcp__github__get_pull_request_comments,mcp__github__get_pull_request_files,mcp__github__get_pull_request_reviews,mcp__github__get_pull_request_status,mcp__github__list_pull_requests,mcp__github__update_pull_request,mcp__github__update_pull_request_branch,mcp__github__update_pull_request_comment,mcp__github__merge_pull_request
7070
additional_permissions: |
7171
actions: read

0 commit comments

Comments
 (0)