ci: llms.txt daily auto-merge (regen → guards → PR → --auto)#454
Conversation
Flip the llms.txt workflow from read-only detector to a daily auto-merging sync, now that HD-270 granted GITHUB_TOKEN the create-PRs permission. - cron 06:55 UTC (14:55 SGT) + workflow_dispatch - regenerate via scripts/generate_llms_txt.py - guards: abort if root llms.txt >=50K, a sub-index is malformed/>=50K, or page count craters (<1500) - on drift: open/refresh PR auto/llms-txt-sync, enable --auto squash merge - merges automatically once the required Mintlify Deployment check passes Needs repo setting 'Allow auto-merge' ON for --auto to engage; until then the PR is left open for a one-click manual merge (the run does not fail).
|
|
Warning Review limit reached
More reviews will be available in 29 minutes and 3 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 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 refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses rolling per-developer review limits. Reviews become available again as older review attempts age out of the rolling limit window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
What
Flip
llms-txt-sync.ymlfrom the read-only freshness detector to a daily auto-merging sync, now that HD-270 grantedGITHUB_TOKENthe create-PRs permission.Flow
regenerate → validation guards → (if drift) open/refresh PR → enable --auto55 6 * * *(06:55 UTC = 14:55 SGT) + manualworkflow_dispatchpython3 scripts/generate_llms_txt.pyllms.txt≥ 50K · any sub-index malformed or ≥ 50K · page count craters (< 1500)auto/llms-txt-sync, open a PR if none is open, thengh pr merge --squash --autoWhy a PR (not a direct push)
Probed (HD-270): the bot can create PRs and push branches, but cannot push straight to
main(org ruleset requires the Mintlify Deployment check). So the job opens a PR; GitHub auto-merges it once that check passes.One dependency
--autoneeds the repo setting "Allow auto-merge" (Settings → General) ON — currently off. Until it's enabled,gh pr merge --autois a graceful no-op (warns, leaves the PR open for a one-click merge) and the run still succeeds. So merging this is safe today; it upgrades to fully hands-off the moment the toggle is flipped — no workflow change needed.Validation
YAML parses; both
run:blocks passbash -n; cron and permissions confirmed.