Skip to content

Conversation

@Adam-D-Lewis
Copy link
Member

@Adam-D-Lewis Adam-D-Lewis commented Oct 29, 2025

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:

  • PR Review (.github/workflows/claude-pr-review.yml): Trigger with /claude review on any PR to get AI-powered code review covering quality, bugs, security, and performance
  • Issue Actions (.github/claude-issue-actions.yml): Automated issue handling with three commands:
    • /claude fix - Creates PR to fix bugs
    • /claude implement - Creates PR to implement features
    • /claude investigate - Posts detailed analysis without creating PR

Supporting components:

Features

  • Team-based authorization (nebari-dev/Contributors)
  • Support for custom instructions passed to Claude
  • Automatic branch creation and PR generation
  • Progress tracking via GitHub comments

Requirements

  • ANTHROPIC_API_KEY secret must be configured
  • Uses anthropics/claude-code-action@v1

@Adam-D-Lewis Adam-D-Lewis requested a review from a team as a code owner October 29, 2025 16:09
@Adam-D-Lewis Adam-D-Lewis requested review from dcmcand and marcelovilla and removed request for a team October 29, 2025 16:09
@Adam-D-Lewis Adam-D-Lewis marked this pull request as draft October 29, 2025 16:09
@Adam-D-Lewis
Copy link
Member Author

This PR is currently blocked waiting for an ANTHROPIC_API_KEY

@Adam-D-Lewis Adam-D-Lewis added the status: blocked ⛔️ This item is on hold due to another task label Oct 29, 2025
@dcmcand dcmcand requested a review from Copilot October 30, 2025 15:15
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 review comments
  • 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)
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
**Workflow file:** `.github-issue-actions.yml` (in root directory)
**Workflow file:** [`.github/claude-issue-actions.yml`](claude-issue-actions.yml) (in the `.github` directory)

Copilot uses AI. Check for mistakes.
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
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
- **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.

Copilot uses AI. Check for mistakes.
@Adam-D-Lewis
Copy link
Member Author

@dcmcand brought up that maybe we should just use Github Copilot since it has some similar functionality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: blocked ⛔️ This item is on hold due to another task

Projects

Status: New 🚦

Development

Successfully merging this pull request may close these issues.

2 participants