Support namespaced git feature branch templates#3293
Draft
PascalThuet wants to merge 2 commits into
Draft
Conversation
Collaborator
|
I realize this still a draft, but I wanted to make sure that you should merge the template into the git-config.yml for ease of use |
Assisted-by: Codex (model: GPT-5, autonomous)
Assisted-by: Codex (model: GPT-5, autonomous)
995f4cc to
f48178d
Compare
Contributor
Author
|
Thanks, done in the latest push. It defaults to |
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.
Summary
branch_templateconfig with{author},{app},{number}, and{slug}tokens, plusbranch_prefixas a shorthand namespace.{number}-{slug}branch shape.Why
Monorepo installs can have separate Spec Kit projects but one shared root Git branch namespace. This lets projects opt into names like
jdoe/app-a/008-guided-tourwithout requiring separate Git repositories or changing downstream feature path resolution.Fixes #3081.
Issue context
The implementation follows the concrete monorepo use case described in #3081 (comment). That comment is relevant because it identifies the target branch shape (
{author}/{app}/{number}-{slug}) and points out that downstream commands already resolve feature directories through.specify/feature.json/SPECIFY_FEATURE_DIRECTORY, so branch creation and validation are the important places to make namespace-aware.TDD sequence
dbe9203adds failing coverage for branch templates, branch-prefix shorthand, namespace-scoped numbering, namespacedGIT_BRANCH_NAMEextraction, and nested-prefix validation.f48178dimplements the behavior and documentation that make those tests pass.Validation
.venv/bin/python -m pytest tests/extensions/git/test_git_extension.py tests/test_timestamp_branches.py -qDisclosure
Prepared on behalf of @PascalThuet by Codex (model: GPT-5, autonomous). Each commit includes an
Assisted-by:trailer.