dotCMS / dotCMS/core

Enable automatic Claude PR reviews in dotcms/core

Open
#34,809 5 comments 0 reactions 1 assignee View on GitHub

@sfreudenthaler is already working on this.

Since Feb 28, 2026.

Dominant language
Java
Stars
970
Forks
486
Avg merge
3d 33m
Merged PRs (30d)
170

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.