ci: add Claude Code GitHub Action integration#152
Merged
kirich1409 merged 4 commits intodevelopfrom Feb 14, 2026
Merged
Conversation
Configure Claude Code integration with GitHub Actions: - Trigger on @claude mentions in issues/PRs/reviews - Set up JDK 17 and Gradle for Android builds - Allow Gradle commands for check, build, format, coverage - Include project conventions in system prompt Based on official example from anthropics/claude-code-action Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR adds integration with Claude Code through GitHub Actions, allowing the Claude AI assistant to be invoked via @claude mentions in issues, PR comments, and reviews. The workflow is configured specifically for this Android/Gradle project with appropriate build tools and command restrictions.
Changes:
- Added new
.github/workflows/claude.ymlworkflow file that triggers on@claudementions - Configured the workflow with JDK, Gradle, and Claude Code action setup
- Restricted Claude's allowed commands to safe Gradle and git operations with project-specific system prompts from CLAUDE.md
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Use JDK 21 (matches android.yml, build.yml) - Add Gradle cache for faster CI - Expand allowed commands: detekt, ktlintCheck, tests, coverage - Add git commands: status, diff, log, show - Include sample module commands - Update system prompt with architecture details - Increase max-turns to 20 for complex tasks Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator
Author
|
@claude review the PR |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Add author_association check (OWNER/MEMBER/COLLABORATOR only) - Remove id-token: write permission (not needed) - Remove fetch-depth: 1, add dynamic ref detection for PR contexts - Add chmod +x gradlew step before Gradle commands Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove custom determine-ref step (action handles checkout internally) - Remove @claude mention checks from if (action filters mentions itself) - Keep author_association gate as the only custom security check Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
.github/workflows/claude.ymlfor Claude Code integration with GitHub Actions🤖 Generated with Claude Code