feat: emit init-time notice for git extension default change#2432
Merged
mnriem merged 1 commit intogithub:mainfrom May 1, 2026
Merged
feat: emit init-time notice for git extension default change#2432mnriem merged 1 commit intogithub:mainfrom
mnriem merged 1 commit intogithub:mainfrom
Conversation
…2165) Add a non-blocking Panel notice during `specify init` when the git extension auto-enables, informing users that starting in v0.10.0 this will require explicit opt-in via `specify extension add git`. - src/specify_cli/__init__.py: track successful git extension install and display yellow "Notice: Git Default Changing" panel - tests/integrations/test_cli.py: integration test validating notice content (v0.10.0 timeline, opt-in messaging, migration command) - docs/reference/core.md: user-facing NOTE about the upcoming change Closes github#2165
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a user-facing, non-blocking warning during specify init to inform users that the bundled git extension’s default auto-enable behavior will change in v0.10.0 (requiring explicit opt-in), with corresponding test coverage and docs.
Changes:
- Track successful bundled
gitextension installation duringspecify initand emit a yellow RichPanelnotice after init completes. - Add an integration test asserting the notice includes the v0.10.0 timeline and the opt-in/migration command.
- Document the upcoming default change in the core command reference.
Show a summary per file
| File | Description |
|---|---|
src/specify_cli/__init__.py |
Sets a flag when the bundled git extension installs successfully and prints a post-init notice panel. |
tests/integrations/test_cli.py |
Adds an integration test validating the notice text components in normalized CLI output. |
docs/reference/core.md |
Adds a NOTE admonition about the upcoming opt-in requirement and the post-init command to add git. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 3/3 changed files
- Comments generated: 0
9527dong
pushed a commit
to 9527dong/spec-kit
that referenced
this pull request
May 7, 2026
…2165) (github#2432) Add a non-blocking Panel notice during `specify init` when the git extension auto-enables, informing users that starting in v0.10.0 this will require explicit opt-in via `specify extension add git`. - src/specify_cli/__init__.py: track successful git extension install and display yellow "Notice: Git Default Changing" panel - tests/integrations/test_cli.py: integration test validating notice content (v0.10.0 timeline, opt-in messaging, migration command) - docs/reference/core.md: user-facing NOTE about the upcoming change Closes github#2165
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
Add a non-blocking Panel notice during
specify initwhen the git extension auto-enables, informing users that starting in v0.10.0 this will require explicit opt-in viaspecify extension add git.Changes
src/specify_cli/__init__.pytests/integrations/test_cli.pydocs/reference/core.mdUser-facing behavior
After
specify initcompletes (when the git extension auto-installs), users see:Related
--no-gitflag onspecify init(removal at 0.10.0) #2167 (deprecate--no-git, merged), Make git extension opt-in and remove--no-gitat 0.10.0 #2168 (removal at 0.10.0, open)