-
Notifications
You must be signed in to change notification settings - Fork 4
[CDX-265] Add CC workflow #176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CDX-265] Add CC workflow #176
Conversation
There was a problem hiding this 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 adds Claude Code workflow integration to enable automated PR reviews. It introduces a GitHub Actions workflow that triggers on pull request events and includes comprehensive review guidelines documentation.
- Adds automated Claude PR review workflow using Constructor.io's shared workflow resources
- Includes detailed review command documentation with coding standards, security guidelines, and output formatting
- Configures workflow to trigger on PR open, ready_for_review, and synchronize events
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
.github/workflows/claude-review.yml |
Adds GitHub Actions workflow configuration for automated Claude-powered PR reviews |
.claude/commands/review.md |
Adds comprehensive review command documentation including process guidelines, coding standards, security audit criteria, and output formatting requirements |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| jobs: | ||
| review: | ||
| uses: Constructor-io/shared-claude-code-resources-public/.github/workflows/claude-code-review.yml@main | ||
| secrets: inherit |
Copilot
AI
Dec 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using secrets: inherit passes all repository secrets to the reusable workflow. Ensure that the shared workflow at Constructor-io/shared-claude-code-resources-public is trusted and that no sensitive secrets should be restricted from this workflow. Consider explicitly passing only required secrets if possible for better security control.
| secrets: inherit | |
| secrets: | |
| CLAUDE_API_KEY: ${{ secrets.CLAUDE_API_KEY }} |
.claude/commands/review.md
Outdated
| 1. **Branch Diff Analysis** | ||
|
|
||
| - Determine the name of the current branch to review | ||
| - Run `git merge-base origin/master [branch]` to find the common ancestor commit |
Copilot
AI
Dec 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The instruction references origin/master but line 7 mentions "against master (or main)". For consistency and to handle repositories using main as the default branch, consider using origin/main or adding a note about checking which default branch is used.
| - Run `git merge-base origin/master [branch]` to find the common ancestor commit | |
| - Run `git merge-base origin/[default branch] [branch]` to find the common ancestor commit | |
| - Replace `[default branch]` with your repository's default branch name (usually `master` or `main`) |
.claude/commands/review.md
Outdated
| Deliver structured feedback using this format: | ||
|
|
||
| ``` | ||
| ## Code Review Results |
Copilot
AI
Dec 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The output format template shows "## Code Review Results" as a heading followed immediately by another "## ✅ Strengths" heading at the same level. Consider either making "Code Review Results" a higher-level heading (single #) or removing it to avoid having two consecutive same-level headings.
| ## Code Review Results | |
| # Code Review Results |
Code Review SummaryThis PR adds a GitHub Actions workflow to enable automated Claude Code reviews on pull requests. The workflow is simple and well-structured, using a reusable workflow from the shared Constructor.io resources repository. Detailed Feedback[File:
|
No description provided.