Skip to content

Add Claude to review PRs#480

Open
wenchenvincent wants to merge 3 commits intodevfrom
claude_workflow
Open

Add Claude to review PRs#480
wenchenvincent wants to merge 3 commits intodevfrom
claude_workflow

Conversation

@wenchenvincent
Copy link
Collaborator

@wenchenvincent wenchenvincent commented Mar 13, 2026

Description

Add github action to use Claude to review PRs.

Type of change

  • Documentation change (change only to the documentation, either a fix or a new content)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Infra/Build change
  • Code refactoring

Copy link
Contributor

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

Adds a new GitHub Actions workflow to run the Anthropic Claude Assistant action in response to GitHub issue/PR review activity.

Changes:

  • Introduces .github/workflows/claude.yml workflow triggered on issue comments, PR review comments, issue events, and submitted PR reviews.
  • Configures the workflow to run anthropics/claude-code-action@v1 using secrets.CLAUDE_CODE_OAUTH_TOKEN.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +4 to +12
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
pull_request_review:
types: [submitted]
Comment on lines +4 to +12
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
pull_request_review:
types: [submitted]
claude-response:
runs-on: ubuntu-latest
steps:
- uses: anthropics/claude-code-action@v1
Copy link
Collaborator

@wangye805 wangye805 left a comment

Choose a reason for hiding this comment

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

Not quite familiar with the claude workflow but looks like this PR does not add any project specific context/prompt/skills. Is this just a starting PR to enable claude review so that later we can add context/prompt/skills? Also, how can we use this newly added claude.yml?

By the way, please make some simple description or either remove this section

Image

@wenchenvincent wenchenvincent changed the title Add Claude to workflow. Add Claude to review PRs Mar 14, 2026
@wenchenvincent
Copy link
Collaborator Author

Not quite familiar with the claude workflow but looks like this PR does not add any project specific context/prompt/skills. Is this just a starting PR to enable claude review so that later we can add context/prompt/skills? Also, how can we use this newly added claude.yml?

By the way, please make some simple description or either remove this section

Image

Sorry, pushed the wrong content in the original commit. I updated it.
It is to add a github action that would ask Claude to review a PR everytime a PR is submitted or updated.

@Micky774
Copy link
Contributor

I think it would be better to perform AI code reviews on explicit demand via a comment (or potentially even commit message). This will help keep the conversation clean and streamlined, allowing for simpler review.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants