Skip to content

Enable automatic Claude PR reviews in dotcms/core #34809

@sfreudenthaler

Description

@sfreudenthaler

Context

We currently trigger Claude via @claude mentions using issue_comment_claude-code-review.yaml. We want automatic reviews on PR open/sync — no mention required.

dotcms/infrastructure-as-code already has this working via the reusable dotCMS/ai-workflows/.github/workflows/claude-orchestrator.yml@v1.0.0. Pattern is proven. The infra repo's review prompt is verbose and checklist-heavy — we don't want that.

Work

Update (or create alongside) the existing workflow to add:

pull_request:
  types: [opened, synchronize]

Add a claude-automatic-review job with trigger_mode: automatic. Gate it to skip if the PR title or body already contains @claude (avoid double-triggering alongside interactive mode).

Prompt Direction

The review persona should be a strong senior/staff engineer. Direct, specific, no preamble. The prompt should be roughly:

Review this PR. Flag anything that looks wrong, risky, or worth a second look — bad assumptions, missing edge cases, design problems, security issues. Skip praise. If it's clean, say so in one line.

No bullet-point checklists. No "great job on X". If there's nothing to flag, a short "LGTM" is fine.

Reference

  • Existing workflow: .github/workflows/issue_comment_claude-code-review.yaml
  • Working example: dotcms/infrastructure-as-code.github/workflows/remote-ai-checks.yml (claude-automatic-review job)
  • Reusable workflow: dotCMS/ai-workflows/.github/workflows/claude-orchestrator.yml@v1.0.0

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Status

New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions