Skip to content

ci: llms.txt daily auto-merge (regen → guards → PR → --auto)#454

Merged
akegaviar merged 1 commit into
mainfrom
ci/llms-txt-auto-merge
Jun 23, 2026
Merged

ci: llms.txt daily auto-merge (regen → guards → PR → --auto)#454
akegaviar merged 1 commit into
mainfrom
ci/llms-txt-auto-merge

Conversation

@akegaviar

Copy link
Copy Markdown
Member

What

Flip llms-txt-sync.yml from the read-only freshness detector to a daily auto-merging sync, now that HD-270 granted GITHUB_TOKEN the create-PRs permission.

Flow

regenerate → validation guards → (if drift) open/refresh PR → enable --auto

  • Schedule: 55 6 * * * (06:55 UTC = 14:55 SGT) + manual workflow_dispatch
  • Regenerate: python3 scripts/generate_llms_txt.py
  • Guards (abort before any PR if): root llms.txt ≥ 50K · any sub-index malformed or ≥ 50K · page count craters (< 1500)
  • On drift: force-push branch auto/llms-txt-sync, open a PR if none is open, then gh pr merge --squash --auto

Why 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

--auto needs the repo setting "Allow auto-merge" (Settings → General) ON — currently off. Until it's enabled, gh pr merge --auto is 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 pass bash -n; cron and permissions confirmed.

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).
@infra-bot-atlantis

Copy link
Copy Markdown
Error: This repo is not allowlisted for Atlantis.

@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

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

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 @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 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 configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e1a9dcfe-698a-46dd-ac68-2ba655099f8e

📥 Commits

Reviewing files that changed from the base of the PR and between f87fd55 and 52f0161.

📒 Files selected for processing (1)
  • .github/workflows/llms-txt-sync.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/llms-txt-auto-merge

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.

@mintlify

mintlify Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
chainstack 🟢 Ready View Preview Jun 23, 2026, 9:49 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@akegaviar akegaviar marked this pull request as ready for review June 23, 2026 10:01
@infra-bot-atlantis

Copy link
Copy Markdown
Error: This repo is not allowlisted for Atlantis.

@akegaviar akegaviar merged commit e913ffe into main Jun 23, 2026
3 of 4 checks passed
@akegaviar akegaviar deleted the ci/llms-txt-auto-merge branch June 23, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant