feat(init): discover third-party version providers via entry points by bearomorphism · Pull Request #1971 · commitizen-tools/commitizen · GitHub
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 74 additions & 37 deletions commitizen/commands/init.py
4 changes: 4 additions & 0 deletions docs/config/version_provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ setup(
version_provider = "my-provider"
```

Once installed, the provider is also offered as a choice during `cz init`,
labelled `my-provider: third-party version provider`. Built-in providers
keep their curated descriptions and appear first in the picker.

### Provider Implementation Guidelines

When creating a custom provider, keep these guidelines in mind:
Expand Down
107 changes: 107 additions & 0 deletions tests/commands/test_init_command.py
Loading