Skip to content

Add Claude PR review caller workflow (pilot)#6072

Draft
dkayiwa wants to merge 2 commits into
masterfrom
add-claude-pr-review
Draft

Add Claude PR review caller workflow (pilot)#6072
dkayiwa wants to merge 2 commits into
masterfrom
add-claude-pr-review

Conversation

@dkayiwa

@dkayiwa dkayiwa commented May 4, 2026

Copy link
Copy Markdown
Member

Summary

Adds a thin caller workflow that invokes the reusable Claude PR review workflow in openmrs/openmrs-contrib-gha-workflows. Triggers on [opened, ready_for_review, reopened] (no synchronize) to avoid re-reviewing on every push during the pilot.

Why

Part of a 10-repo pilot of AI-assisted PR review (see openmrs/openmrs-contrib-gha-workflows#36). We're evaluating Claude Code Action as a potential replacement for CodeRabbit, which has been hitting free-tier limits.

Dependencies

⚠️ Do not merge before openmrs/openmrs-contrib-gha-workflows#36 is merged. This PR is opened as a draft until then; the caller pins the reusable workflow to @main.

Cost guardrails (pilot)

  • Model: claude-sonnet-4-6 (cheaper of the two main options).
  • Trigger: [opened, ready_for_review, reopened] only — explicitly excludes synchronize, so each PR gets one review per state-change, not one per push.
  • Skips draft PRs.

Test plan

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented May 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f09d84c9-0ac6-4976-bfbe-3efb4739feb7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add-claude-pr-review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov-commenter

codecov-commenter commented May 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.29%. Comparing base (a889bde) to head (4faa46d).

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6072   +/-   ##
=========================================
  Coverage     59.29%   59.29%           
- Complexity     9237     9238    +1     
=========================================
  Files           692      692           
  Lines         37196    37196           
  Branches       5476     5476           
=========================================
  Hits          22057    22057           
+ Misses        13161    13158    -3     
- Partials       1978     1981    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

pull_request doesn't pass org/repo secrets to PRs from forks, so
the Anthropic API key would be empty for the bulk of OpenMRS
contributions. pull_request_target runs the workflow YAML from the
base branch with secrets available; the reusable workflow now
explicitly checks out the PR head SHA. No step executes PR code,
so the standard pull_request_target footgun doesn't apply.

Also declare permissions explicitly at the caller level so the
reusable workflow's pull-requests:write / issues:write requests
succeed regardless of repo default workflow permissions.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented May 4, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants