Skip to content

ci: auto-sync prompt artifacts from upstream prompts.yml#137

Open
justin808 wants to merge 1 commit into
mainfrom
jg/ci-sync-prompt-artifacts
Open

ci: auto-sync prompt artifacts from upstream prompts.yml#137
justin808 wants to merge 1 commit into
mainfrom
jg/ci-sync-prompt-artifacts

Conversation

@justin808

Copy link
Copy Markdown
Member

What

A scheduled GitHub Actions bot that regenerates the committed prompt artifacts from react_on_rails prompts.yml and opens a PR when they drift — mirroring react_on_rails' own update-llms-full.yml.

Why

The site build runs prepare:prompts, which regenerates prompts.ts / prompts.json / prompts/llms.txt from upstream prompts.yml and fails on drift (scripts/prepare-prompts.mjs). Those files are committed, so whenever upstream prompts.yml changes (e.g. shakacode/react_on_rails#4232) they go stale and every PR turns red until someone regenerates by hand — exactly what just happened on #136. This keeps them fresh automatically.

How

  • Triggers: daily schedule, workflow_dispatch, and the docs-updated repository_dispatch react_on_rails already sends to this repo.
  • npm run prepare ephemeral-clones react_on_rails main (via REACT_ON_RAILS_REPO_URL/REF, same as the build job) and regenerates.
  • Opens a PR scoped to just the 3 prompt artifacts (add-paths); the change-detection is also scoped to those 3 files.

Notes for the maintainer

  • Requires Settings → Actions → "Allow GitHub Actions to create and approve pull requests" (same as react_on_rails uses for its llms-full bot).
  • PRs opened by GITHUB_TOKEN don't auto-trigger the build check; review the small generated diff and merge (or enable auto-merge). I can add a check-dispatch step if you'd prefer it fully hands-off.

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Jun 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@justin808, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 38 minutes and 17 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7afce601-a442-4c22-9a8e-926dfd517d51

📥 Commits

Reviewing files that changed from the base of the PR and between e0461a4 and fd8e300.

📒 Files selected for processing (1)
  • .github/workflows/sync-upstream-prompts.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jg/ci-sync-prompt-artifacts

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.

@greptile-apps

greptile-apps Bot commented Jun 28, 2026

Copy link
Copy Markdown

Greptile Summary

This PR adds an automated prompt artifact sync workflow. The main changes are:

  • A daily, manual, and docs-updated dispatch trigger.
  • A Node 24 prepare run against react_on_rails main.
  • Scoped change detection and bot PR creation for the three prompt artifacts.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
.github/workflows/sync-upstream-prompts.yml Adds the GitHub Actions workflow that regenerates prompt artifacts and opens a scoped bot PR when they drift.

Reviews (1): Last reviewed commit: "ci: add bot to sync prompt artifacts fro..." | Re-trigger Greptile

@github-actions

Copy link
Copy Markdown

Cloudflare preview deployed.

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