Skip to content

Add Claude PR review caller workflow (pilot)#726

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

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

Conversation

@dkayiwa
Copy link
Copy Markdown
Member

@dkayiwa dkayiwa commented May 4, 2026

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
Copy link
Copy Markdown

coderabbitai Bot commented May 4, 2026

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: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2acd12fc-179d-449e-98cf-b03605ea903c

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.

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>
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.

1 participant