ci: only open one sync_docs pr at a time - #487
Merged
zeroshade merged 3 commits intoSep 8, 2026
Merged
Conversation
Previously the branch was named docs/sync-output-YYYY-MM-DD, so each daily run created a new branch and opened a new PR — even though an existing one was still open. There are currently 5 stale open PRs as a result. Use a fixed branch name (docs/sync-output) instead. The force-push already updates the branch in-place; the gh pr view guard then skips opening a new PR when one is already open, so re-runs simply update the existing PR.
amoeba
force-pushed
the
fix/sync-docs-idempotent-branch
branch
from
September 7, 2026 21:46
9dc2b0c to
93a4cbb
Compare
Avoids noisy daily force-pushes (and associated CI reruns) when the open PR already reflects the current dbc output. The step only fires when docs/ on main is stale vs dbc, so we know changes exist relative to main — but if the remote docs/sync-output branch was already pushed with the same content (i.e. dbc hasn't released since), there's nothing new to push. Uses git diff --cached against origin/docs/sync-output -- docs/ to compare just the docs subtree.
zeroshade
approved these changes
Sep 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Sync Docs job can open multiple PRs if existing ones aren't merged before it runs again. This PR makes it so there's only ever one sync PR open at a time by: