Skip to content

feat: emit init-time notice for git extension default change#2432

Merged
mnriem merged 1 commit intogithub:mainfrom
mnriem:feature/2165-git-default-notice
May 1, 2026
Merged

feat: emit init-time notice for git extension default change#2432
mnriem merged 1 commit intogithub:mainfrom
mnriem:feature/2165-git-default-notice

Conversation

@mnriem
Copy link
Copy Markdown
Collaborator

@mnriem mnriem commented May 1, 2026

Summary

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.

Changes

File Change
src/specify_cli/__init__.py Track successful git extension install; display yellow "Notice: Git Default Changing" panel after init completes
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 default change

User-facing behavior

After specify init completes (when the git extension auto-installs), users see:

╭──────────────────────── Notice: Git Default Changing ────────────────────────╮
│                                                                              │
│  The git extension is currently enabled by default during specify init.      │
│  Starting in v0.10.0, this will require explicit opt-in.                     │
│  Use specify extension add git after init when needed.                       │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

Related

…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
Copilot AI review requested due to automatic review settings May 1, 2026 17:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 git extension installation during specify init and emit a yellow Rich Panel notice 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

@mnriem mnriem merged commit 822a0e5 into github:main May 1, 2026
15 checks passed
@mnriem mnriem deleted the feature/2165-git-default-notice branch May 1, 2026 18:06
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
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.

Add notice that git extension will no longer be enabled by default at 0.10.0

2 participants