Repository navigation
feat(skills): add fast-forward to level the default branch and land changes - #141
Merged
Merged
Conversation
…hanges Captures the fetch -> --ff-only pull -> branch commit -> PR -> pinned merge -> fast-forward sequence used on synth-term (#32), with the guards it needed: stop when incoming commits touch dirty files, never push or force the default branch, leave untracked files alone, name the repo on every gh call, merge pinned to the full SHA, merge origin and regenerate on conflict, end at 0/0 and delete the branch with -d. Refs scf-sh3h2 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review fixes: push without -u (it writes .git/config); require every run and check on the pushed SHA to be green and hand no-CI cases to /merge-pr; confirm headRefOid; move the default branch with git branch -f, never reset; make the secrets scan block the push and add the public-repo checks; describe upstream sync generically; note branch -d may already be done; CHANGELOG entry; fixture pins all. Refs scf-sh3h2 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
New global skill
/fast-forward, user-typed only. It brings the default branch level withoriginand lands the intended tracked changes through a small PR, merged pinned to the pushed commit. It's the sequence used on synth-term to land tracker snapshot PR #32.Steps and guards
--reponamed on everyghcall, since a fork otherwise targets its parent. It asks before switching branches in a checkout another session shares.--ff-onlyonly, and it stops when incoming commits touch files with uncommitted changes. Local commits on the default branch move to a branch (git switch -c, thengit branch -f <default> origin/<default>, neverreset); they're never pushed directly.git add -A), after a secrets check. Untracked files stay untracked and are listed in the report.git push origin <branch>without-u, because-uwrites branch tracking into.git/config. The staged-diff scan for secrets, machine paths and identities blocks the push on a hit, and public repositories also go throughcommit-and-push's checks.headRefOidequal to the pushed commit. If CI exists but no run registered, or the repository has no CI, it hands the merge to/merge-pr. On a conflict it merges the default branch in and regenerates generated files, with no force-push.-d.Also: a
library.jsonglobal entry, an inventory row, a regenerated asset inventory, and the eval fixturefast-forward-lands-through-pinned-pr.Checks
sync --check,inventory --check, okf_lint, frontmatter, portability and secrets checks all pass.pytest tests: 319 passed.Refs scf-sh3h2
🤖 Generated with Claude Code