Skip to content

Find the change from the branch you are on - #203

Merged
androidand merged 3 commits into
mainfrom
feat/200-infer-change-from-branch
Nov 10, 2026
Merged

androidand merged 3 commits into
mainfrom
feat/200-infer-change-from-branch

Conversation

@androidand

Copy link
Copy Markdown
Owner
  • set-stage, note and archive find the change from the current branch when none is given: feat/<issue>-<slug> and an orchestrator's <prefix>/<slug> (Orca's default) both resolve
  • Only active changes count; the default branch and a detached HEAD never resolve, so a command run on main still has to name its change
  • The picked change and branch are printed on stderr; an explicit change always wins; bare specsync (sync all) is unchanged
  • Fix TestPull_CannotResolveFromBranch, which failed on any feat/<n>-… checkout (CI passed only because it runs on a detached HEAD)
  • agent-help, README and site/features.json updated

Closes #200

set-stage, note and archive can omit the change inside a change's
worktree. The branch's last segment is matched against active changes, so
feat/<issue>-<slug> and Orca's <user>/<slug> both resolve; the default
branch and a detached HEAD never do. Bare sync is unchanged.

Also pins the branch in TestPull_CannotResolveFromBranch, which failed on
any feat/<n>-... checkout.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Deploying specsync with  Cloudflare Pages  Cloudflare Pages

Latest commit: 766ffa5
Status: ✅  Deploy successful!
Preview URL: https://f2c59c83.specsync.pages.dev
Branch Preview URL: https://feat-200-infer-change-from-b.specsync.pages.dev

View logs

main moved commands into a registry; the branch inference for set-stage,
note and archive is re-applied in their new command files.
@androidand
androidand merged commit c1604ba into main Nov 10, 2026
2 checks passed
@androidand
androidand deleted the feat/200-infer-change-from-branch branch November 10, 2026 20:27
@androidand
androidand restored the feat/200-infer-change-from-branch branch November 10, 2026 20:27
@androidand
androidand deleted the feat/200-infer-change-from-branch branch November 10, 2026 20:27
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.

Find the change from the branch you are on

1 participant