Add Claude PR review GitHub Action#2771
Conversation
Automated PR reviews using Claude via Google Vertex AI, following openshift/console and openshift/oc patterns. Workflow (.github/workflows/claude-pr-review.yml): - Triggers on PR opened/ready_for_review/reopened (not on every push) - Responds to @claude mentions from MEMBER/OWNER/COLLABORATOR - Skips draft PRs, 15min timeout, cancel-in-progress per event type - All actions pinned to commit SHA for supply chain security - GCP credentials via ADC, cleaned up on exit - Project ID and region from GitHub Actions variables Agent (.claude/agents/code-reviewer.md): - PatternFly 6 compliance (--pf-t--global--* tokens) - Console SDK data fetching patterns (useK8sWatchResource, k8s*) - TypeScript/React, i18n, cross-package, security checks - Does not run build/lint/test (handled by Sanity Checks workflow) Context (CLAUDE.md -> AGENTS.md): - Follows openshift/console pattern for AI context files - Project conventions, commands, common pitfalls Required setup: - GitHub secret: GCP_CREDENTIALS (GCP ADC JSON for Vertex AI) - GitHub variables: ANTHROPIC_VERTEX_PROJECT_ID, CLOUD_ML_REGION
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: weirdwiz The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@weirdwiz: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
openshift/console(CLAUDE.md → AGENTS.md) andopenshift/oc(.claude/agents/code-reviewer.md)@claudeto re-review after fixesGCP_CREDENTIALSsecret andANTHROPIC_VERTEX_PROJECT_ID/CLOUD_ML_REGIONvariables