Skip to content

ci: push bot-generated docs straight to main instead of opening PRs#12

Merged
alexander-sei merged 1 commit into
mainfrom
ci/bots-push-to-main
May 29, 2026
Merged

ci: push bot-generated docs straight to main instead of opening PRs#12
alexander-sei merged 1 commit into
mainfrom
ci/bots-push-to-main

Conversation

@alexander-sei
Copy link
Copy Markdown
Collaborator

What

regenerate-llms.yml and sync-default-configs.yml now commit their generated output directly to main when something changes, instead of opening a fresh bot PR on every run.

  • regenerate-llmsllms.txt / llms-full.txt
  • sync-default-configsnode/node-operators.mdx

Each replaces the peter-evans/create-pull-request@v6 step with a guarded commit-and-push: it no-ops if nothing changed, commits as github-actions[bot], rebases on origin/main to absorb any concurrent push, then pushes to main. Permissions narrowed from contents: write + pull-requests: write down to just contents: write.

Why

These bot PRs (e.g. #10) were piling up requiring a manual merge and inflating the PR count. The content is fully machine-generated (plaintext llms.txt, marker-bounded TOML blocks), so a per-PR review gate added noise without much safety. Mintlify still redeploys on every push to main, and link-check still sweeps main daily via its cron, so nothing material is lost.

🤖 Generated with Claude Code

regenerate-llms and sync-default-configs now commit their generated output (llms.txt / llms-full.txt and node/node-operators.mdx) directly to main when something changes, instead of opening a fresh bot PR each run. Keeps the PR list uncluttered. Permissions narrowed to contents: write since no PR is created.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented May 29, 2026

PR Summary

Medium Risk
Bypasses human review for automated commits to main; mitigated by no-op when unchanged, rebase-before-push, and fully generated outputs only.

Overview
Two scheduled doc automation workflows (regenerate-llms.yml, sync-default-configs.yml) no longer open bot PRs via peter-evans/create-pull-request@v6. When generated files differ, they commit as github-actions[bot], git pull --rebase --autostash origin main, then git push origin HEAD:main (no-op if the diff is empty). Workflow pull-requests: write permission was removed; only contents: write remains.

Reviewed by Cursor Bugbot for commit d6e6967. Bugbot is set up for automated code reviews on this repo. Configure here.

@mintlify
Copy link
Copy Markdown
Contributor

mintlify Bot commented May 29, 2026

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

Project Status Preview Updated (UTC)
sei-docs 🟢 Ready View Preview May 29, 2026, 12:18 AM

@alexander-sei alexander-sei merged commit cfa889e into main May 29, 2026
6 checks passed
@alexander-sei alexander-sei deleted the ci/bots-push-to-main branch May 29, 2026 00:22
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