-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat: implement Claude Code GitHub Action v1.0 with auto-detection and slash commands #421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
9a66562
feat: implement Claude Code GitHub Action v1.0 with auto-detection an…
km-anthropic da182b6
test + formatting fixes
km-anthropic acbef8d
feat: simplify to two modes (tag and agent) for v1.0
km-anthropic 65896ab
fix: address PR review comments for v1.0 simplification
km-anthropic 1846b19
Merge branch 'main' into v1-dev
km-anthropic 18bb011
chore: remove unused js-yaml dependencies
km-anthropic cc07dbf
fix: remove experimental-review mode reference from MCP config
km-anthropic 36c720c
prettify
km-anthropic dfcaac8
feat: add claudeArgs input for direct CLI argument passing
km-anthropic b6238ad
refactor: use industry-standard shell-quote for argument parsing
km-anthropic e2bdca6
bun format
km-anthropic a7759cf
feat: add claudeArgs input for direct CLI argument passing
km-anthropic f2775d6
format
km-anthropic f592586
refactor: complete v1.0 simplification by removing all legacy inputs
km-anthropic f407f21
fix: update MCP server tests after removing additionalPermissions
km-anthropic ed42f1a
model version update
km-anthropic 90461a9
Merge branch 'main' of https://github.com/anthropics/claude-code-acti…
km-anthropic 3d480aa
Merge branch 'main' of https://github.com/anthropics/claude-code-acti…
km-anthropic 450e1a8
Update package json
km-anthropic e2aee89
remove deprecated workflow file (tests features we no longer support)
km-anthropic 1b4fc38
Simplify agent mode and re-add additional_permissions input
km-anthropic 5bdb1e4
Fix MCP config not being passed to Claude CLI
km-anthropic d5fbc80
Fix MCP tool availability and shell escaping in tag mode
km-anthropic c93188b
Merge branch 'main' into v1-dev
km-anthropic c7801e9
bun format
km-anthropic 65d9b31
tests, typecheck, format
km-anthropic 0e90e18
registry test update
km-anthropic d7a5b00
Update agent mode to have github server as a default
km-anthropic c03f13d
Fix agent mode to include GitHub MCP server with proper token
km-anthropic 8084086
Simplify review workflow - prevent multiple submissions
km-anthropic 55e9436
Add GitHub MCP server and context prefix to agent mode
km-anthropic 86e2835
Delete .github/workflows/claude-auto-review-test.yml
km-anthropic 24433f3
Remove github_comment and inline_comment servers from agent mode defa…
km-anthropic 30fb4ed
Remove all default MCP servers from agent mode
km-anthropic 73948c3
Remove GitHub context prefixing and clean up agent mode
km-anthropic eb146ef
Merge branch 'main' of https://github.com/anthropics/claude-code-acti…
km-anthropic e3b5697
Add GitHub MCP support to agent mode
km-anthropic d24561d
Format code with prettier
km-anthropic 8c230f7
Fix agent mode test to expect branch values
km-anthropic 0ac14b0
Fix agent test to handle dynamic branch names from environment
km-anthropic c13c2af
Better fix: Control environment variables in agent test for predictab…
km-anthropic ab7f1d6
minor formatting
km-anthropic d91030d
Simplify MCP configuration to use multiple --mcp-config flags
km-anthropic 632f04b
feat: Copy project subagents to Claude runtime environment
km-anthropic 30530c9
formatting
km-anthropic 9613b21
Merge branch 'main' of https://github.com/anthropics/claude-code-acti…
km-anthropic 4ec65ed
Add auto-fix CI workflows with slash command and inline approaches
km-anthropic 8d32355
Add workflow_run event support and auto-fix CI workflows
km-anthropic 91034c2
Use proper WorkflowRunEvent type instead of any
km-anthropic 52736c6
bun formatting
km-anthropic bf04905
Remove auto-fix workflows and commands from v1-dev
km-anthropic c72a45a
feat: Expose GitHub token as action output for external use
katchu11 130874e
Debug: Add logging and always output github_token in prepare step
katchu11 b12deea
Fix: Add git authentication to agent mode
katchu11 2ad58b1
minor bun format
katchu11 b69e4f8
Merge branch 'main' of https://github.com/anthropics/claude-code-acti…
katchu11 ccac9ce
Merge branch 'v1-dev' of https://github.com/anthropics/claude-code-ac…
katchu11 604ec53
remove unnecessary file
katchu11 b0ce9a2
fix: Add branch environment variable support to agent mode for signed…
km-anthropic 7929f4a
feat: Add auto-fix CI workflow examples
km-anthropic ca512bc
fix: Fix TypeScript error in agent mode git config
km-anthropic 5d72c06
fix: Align agent mode git config with existing patterns
km-anthropic f5c5d2d
refactor: Use shared configureGitAuth function in agent mode
km-anthropic 31085bc
Merge branch 'main' of https://github.com/anthropics/claude-code-acti…
km-anthropic f7111a5
feat: Improve error message for 403 permission errors when committing
km-anthropic b903a6e
docs: Update documentation for v1.0 release (#476)
km-anthropic 10cf63a
feat: Add comprehensive examples for hero use cases
km-anthropic 3c6f220
Merge branch into v1-dev - resolved conflicts in base-action files
km-anthropic 986e40a
refactor: Remove timeout_minutes parameter from action (#482)
km-anthropic f8c3629
refactor: Remove unused slash commands and agents copying logic
km-anthropic 554fbba
docs: Remove references to timeout_minutes parameter
km-anthropic 31f17eb
fix: Resolve TypeScript errors after removing slash commands
km-anthropic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # Test workflow for km-anthropic fork (v1-dev branch) | ||
| # This tests the fork implementation, not the main repo | ||
| name: Claude Code (Fork Test) | ||
|
|
||
| on: | ||
| issue_comment: | ||
| types: [created] | ||
| pull_request_review_comment: | ||
| types: [created] | ||
| issues: | ||
| types: [opened, assigned] | ||
| pull_request_review: | ||
| types: [submitted] | ||
|
|
||
| jobs: | ||
| claude: | ||
| if: | | ||
| (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || | ||
| (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || | ||
| (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || | ||
| (github.event_name == 'issues' && ( | ||
| contains(github.event.issue.body, '@claude') || | ||
| contains(github.event.issue.title, '@claude') | ||
| )) | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| issues: write | ||
| id-token: write # Required for OIDC token exchange | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Run Claude Code | ||
| uses: km-anthropic/claude-code-action@v1-dev | ||
| with: | ||
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.