Add claude pr review and issue github actions#3175
Add claude pr review and issue github actions#3175Adam-D-Lewis wants to merge 2 commits intomainfrom
Conversation
|
This PR is currently blocked waiting for an ANTHROPIC_API_KEY |
There was a problem hiding this comment.
Pull Request Overview
This PR introduces Claude AI-powered automation workflows for pull request reviews and issue management. The automation enables team members to trigger AI assistance via GitHub comments using commands like /claude review, /claude fix, /claude implement, and /claude investigate.
Key changes:
- Added Claude PR review workflow triggered by
/claude reviewcomments - Added Claude issue automation workflow for bug fixes, feature implementation, and investigation
- Implemented team membership verification to restrict who can trigger these actions
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/claude-pr-review.yml |
GitHub Actions workflow for AI-powered PR reviews triggered by comments |
.github/claude-issue-actions.yml |
GitHub Actions workflow for automated issue handling (fix, implement, investigate) |
.github/actions/check-team-membership/action.yml |
Reusable composite action to verify team membership before executing workflows |
.github/README.md |
Documentation for the Claude automation tools and usage instructions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| Automates bug fixes, feature implementations, and issue investigations directly from GitHub issues. | ||
|
|
||
| **Workflow file:** `.github-issue-actions.yml` (in root directory) |
There was a problem hiding this comment.
The workflow file path in the documentation is incorrect. The file is actually located at .github/claude-issue-actions.yml (inside the .github directory), not .github-issue-actions.yml in the root directory. The path should be updated to match the actual file location.
| **Workflow file:** `.github-issue-actions.yml` (in root directory) | |
| **Workflow file:** [`.github/claude-issue-actions.yml`](claude-issue-actions.yml) (in the `.github` directory) |
| 3. Identify root cause and contributing factors | ||
| 4. Search for similar issues or patterns in the codebase | ||
| 5. Post a detailed comment with: | ||
| - **Root Cause**: What's causing this issue |
There was a problem hiding this comment.
The prompt template for the 'Investigate Issue' action appears to be incomplete. Line 148 shows the beginning of a bulleted list item but the file ends abruptly. The prompt should include complete instructions for what information Claude should provide in the investigation comment.
| - **Root Cause**: What's causing this issue | |
| - **Root Cause**: What's causing this issue | |
| - **Steps to Reproduce**: How can this issue be reliably triggered? Include any relevant commands, files, or actions. | |
| - **Relevant Code References**: Point to specific files, functions, or lines of code related to the issue. | |
| - **Contributing Factors**: Are there any related bugs, patterns, or technical debt that contribute to this issue? | |
| - **Potential Solutions or Next Steps**: Suggest possible fixes, further areas to investigate, or questions for the team. | |
| - **Additional Context**: Any other information that would help the team understand or resolve the issue. |
|
@dcmcand brought up that maybe we should just use Github Copilot since it has some similar functionality |
Add Claude AI-powered GitHub Actions for PR reviews and issue automation
This PR introduces GitHub Actions workflows that integrate Claude AI to automate code reviews and issue handling.
Changes
New workflows:
/claude reviewon any PR to get AI-powered code review covering quality, bugs, security, and performance/claude fix- Creates PR to fix bugs/claude implement- Creates PR to implement features/claude investigate- Posts detailed analysis without creating PRSupporting components:
Features
Requirements
ANTHROPIC_API_KEYsecret must be configuredanthropics/claude-code-action@v1