Skip to content

Conversation

@weeco
Copy link
Contributor

@weeco weeco commented Jan 27, 2026

Summary

Adds two Claude Code GitHub Action workflows for automated code review and interactive assistance.

Workflows

claude-review.yml - Automatic PR Review

  • Trigger: When a PR is opened
  • Purpose: Automatically reviews new PRs and posts a comment with findings
  • Uses: Custom /code-review command defined in .claude/commands/code-review.md
  • Checks for: Bugs, security issues, and CLAUDE.md compliance
  • Permissions: Read-only (contents: read, pull-requests: write)

claude.yml - Interactive @claude Assistant

  • Trigger: @claude mentions in issues, PR comments, or PR reviews
  • Purpose: Answer questions, explain code, help with tasks
  • Permissions: Write access for implementing changes (contents: write)
  • Security: Only org members with write access can trigger

Files Added

File Purpose
.github/workflows/claude-review.yml Auto PR review workflow
.github/workflows/claude.yml Interactive @claude workflow
.claude/commands/code-review.md Custom review command with format guidelines

Usage

Automatic Review: Simply open a PR - Claude will automatically post a code review comment.

Interactive: Mention @claude in any issue or PR comment with your question or request.

Test Plan

  • Tested automatic PR review in fork - posts formatted review comment
  • Tested @claude mention in PR comment - responds with detailed answer

@weeco weeco force-pushed the ms/add-claude-code-review-workflow branch from e785c91 to 457e87b Compare January 27, 2026 18:15
Split into two workflows:

1. claude-review.yml - Automatic PR code review
   - Triggers when PRs are opened
   - Uses custom /code-review command to post review as PR comment
   - Checks for bugs, security issues, and CLAUDE.md compliance

2. claude.yml - Interactive @claude assistant
   - Responds to @claude mentions in issues, PRs, and reviews
   - Can answer questions, explain code, and help with tasks
   - Only org members with write access can trigger

Also adds .claude/commands/code-review.md which defines the review
format and ensures reviews are posted as PR comments.
@weeco weeco force-pushed the ms/add-claude-code-review-workflow branch from 463960b to b998e00 Compare January 27, 2026 21:03
@weeco weeco changed the title feat: add Claude Code Review workflow Add Claude Code workflows for PR review and interactive assistance Jan 27, 2026
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.

3 participants