Repository navigation
fix: sync develop through a pull request, not a direct push - #373
Merged
Merged
Conversation
This was referenced Sep 19, 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.
Closes #372.
Why
sync-develop.ymlmergesmainintodevelopafter a release and pushes. The push is rejected:A ruleset on
developrequires status checks, so a direct push cannot succeed no matter what the token is allowed to do. The workflow has therefore failed on every release since that ruleset was added, anddevelopfell quietly behindmaineach time. Observed again on run 35165312757, after v0.8.9.That is one of two reasons the branches drift. The other is that this workflow only fires after a stable release tag, so
a277f08("docs: add Code of Conduct and Contributing guide"), committed straight tomainwith no tag, never reacheddevelopat all. The two together meantgit diff main..developshowed both community documents as deletions, and mergingdevelopintomainwould have removed them from the public repository. #358 caught it by hand before v0.8.9; nothing automatic would have.What
The final step opens a pull request and enables auto-merge instead of pushing.
chore/sync-develop-after-v<version>, pushed with--force-with-lease.--merge, not--squash: a squash would leave git unaware thatmain's commits are ancestors ofdevelop, which is the drift this is meant to end.The comment claiming
CI_ADMIN_TOKENexists to push past branch protection is corrected: the token pushes the branch and opens the pull request, and deliberately does not bypass the ruleset. The pull request faces the same checks as any other change todevelop, which was the point of the ruleset.What this does not fix
A commit made directly to
mainwith no release tag still bypasses the sync entirely, because the trigger isworkflow_runon Tag and Release. Worth a scheduled check that fails whenmain..developcontains deletions; that catches both causes and does not depend on the release path. Left out of this change deliberately, so the fix stays reviewable.Test
actionlintclean. The YAML parses and the job still has its nine steps in order. The final step's shell body extracted and checked withbash -n: syntax OK. The generated pull request body was inspected after block-scalar dedent and renders without leading whitespace.It cannot be exercised end to end before merging, since it only runs on a real release tag. #371 performs this release's sync by hand in the meantime, so
developis not left behind while this lands.