ci: use centralized Claude AI code review - #18
Merged
Conversation
Delegate PR review and the @claude mention bot to the centrally-maintained reusable workflows in Venly/venly-github-workflows (project_type: generic). Review logic now lives in one place and is updated centrally.
There was a problem hiding this comment.
Pull request overview
This PR adds two GitHub Actions workflows that delegate Claude mention-handling and automated PR reviews to centrally maintained reusable workflows in Venly/venly-github-workflows@v1, aiming to remove per-repo duplication.
Changes:
- Added a
Claude Codeworkflow that triggers on issue/PR comment and review events and calls the centralizedclaude.ymlreusable workflow. - Added a
Claude Code Reviewworkflow that triggers on PR lifecycle events and calls the centralizedclaude-code-review.ymlreusable workflow withproject_type: genericandblock_on_critical: true.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| .github/workflows/claude.yml | Adds a thin caller workflow for an @claude mention bot, including permissions and an if gate. |
| .github/workflows/claude-code-review.yml | Adds a thin caller workflow that runs centralized automated PR review with configured inputs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+27
to
+28
| # Only invoke the engine on an actual @claude mention — avoids spawning a | ||
| # skipped workflow run on every comment/issue event. |
Comment on lines
+29
to
+33
| if: | | ||
| (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || | ||
| (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || | ||
| (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || | ||
| (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) |
| (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || | ||
| (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) | ||
| uses: Venly/venly-github-workflows/.github/workflows/claude.yml@v1 | ||
| secrets: inherit |
Comment on lines
+18
to
+20
| uses: Venly/venly-github-workflows/.github/workflows/claude-code-review.yml@v1 | ||
| secrets: inherit | ||
| with: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wires this repo to the centrally-maintained Claude AI code review engine in
Venly/venly-github-workflows(reusable workflows pinned to@v1).claude-code-review.yml→ automated PR review (project_type:generic, block_on_critical:true)claude.yml→ @claude mention botReview logic is no longer duplicated per repo; improvements ship from one place.