Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/commitizen-tools/commitizen
/ functions
Functions
1,032 in github.com/commitizen-tools/commitizen
⨍
Functions
1,032
◇
Types & classes
134
↳
Endpoints
30
↓ 150 callers
Method
run_cli
Execute commitizen CLI with given args.
tests/utils.py:103
↓ 143 callers
Method
create_file_and_commit
Create a file and commit it.
tests/utils.py:47
↓ 40 callers
Method
create_tag
Create a git tag.
tests/utils.py:92
↓ 40 callers
Method
get
(self, document: Mapping[str, str])
commitizen/providers/base_provider.py:83
↓ 24 callers
Function
get_provider
Get the version provider as defined in the configuration :raises VersionProviderUnknown: if the provider named by `version_provider` is not
commitizen/providers/__init__.py:37
↓ 22 callers
Method
get_version
(self)
commitizen/providers/scm_provider.py:17
↓ 17 callers
Function
incremental_build
Takes the original lines and updates with new_content. The metadata governs how to remove the old unreleased section and where to place the n
commitizen/changelog.py:246
↓ 14 callers
Function
get_version_scheme
Get the version scheme as defined in the configuration or from an overridden `name`. :raises VersionSchemeUnknown: if the version sche
commitizen/version_schemes.py:397
↓ 14 callers
Method
set_version
(self, version: str)
commitizen/providers/uv_provider.py:24
↓ 13 callers
Method
update
(self, data: Settings)
commitizen/config/base_config.py:49
↓ 11 callers
Method
bump
Based on the given increment a proper semver will be generated. For now the rules and versioning scheme is based on python's PEP 0440
commitizen/version_schemes.py:232
↓ 10 callers
Method
_get_encoding
(self)
commitizen/providers/base_provider.py:54
↓ 10 callers
Function
_git_tag
(name: str)
tests/test_tags.py:7
↓ 10 callers
Method
mock_cmd
Mock cmd.run command.
tests/utils.py:120
↓ 10 callers
Method
unsafe_ask
(self)
tests/commands/test_init_command.py:27
↓ 9 callers
Method
find_tag_for
Find the first matching tag for a given version.
commitizen/tags.py:228
↓ 9 callers
Method
get_highest_by_messages
Compute the highest increment across many commit messages. An empty iterable yields ``NONE`` so callers can preserve the existing "no
commitizen/version_increment.py:132
↓ 9 callers
Method
get_metadata
(self, filepath: str)
commitizen/changelog_formats/base.py:38
↓ 9 callers
Function
smart_open
Open a file with the EOL style determined from Git.
commitizen/git.py:326
↓ 8 callers
Function
get_changelog_format
Get a format from its name :raises FormatUnknown: if a non-empty name is provided but cannot be found in the known formats
commitizen/changelog_formats/__init__.py:64
↓ 7 callers
Method
extract_version
Extract a version from the tag as defined in tag formats. Raises `InvalidVersion` if the tag does not match any format.
commitizen/tags.py:149
↓ 7 callers
Method
info
Information about the standardized commit message.
commitizen/cz/base.py:157
↓ 7 callers
Method
is_version_tag
True if a given tag is a legit version tag. if `warn` is `True`, it will print a warning message if the tag is not a version tag.
commitizen/tags.py:123
↓ 7 callers
Function
sample_file
(tmp_path: Path, data_dir: Path)
tests/test_bump_update_version_in_files.py:21
↓ 7 callers
Method
scheme
(self)
commitizen/version_schemes.py:157
↓ 5 callers
Method
_ask_tag_format
(self, latest_tag: str)
commitizen/commands/init.py:268
↓ 5 callers
Function
_build_fake_git_commits
(commit_msgs: list[str])
tests/commands/test_check_command.py:67
↓ 5 callers
Method
_write_text
Write `content` to `path` with the configured encoding. The file is opened with `smart_open`, so the line ending follows `git config
commitizen/providers/base_provider.py:57
↓ 5 callers
Method
from_str
(cls, value: str)
commitizen/exceptions.py:45
↓ 5 callers
Function
line
Wrapper in case I want to do something different later.
commitizen/out.py:17
↓ 5 callers
Method
parse_version_from_title
Extract the version from a title line if any
commitizen/changelog_formats/base.py:99
↓ 5 callers
Function
tmp_commitizen_project_initial
( tmp_git_project: Path, util: UtilFixture, monkeypatch: pytest.MonkeyPatch )
tests/conftest.py:99
↓ 4 callers
Function
check_cz_config
Check the content of commitizen config is as expected
tests/commands/test_init_command.py:156
↓ 4 callers
Function
check_pre_commit_config
Check the content of pre-commit config is as expected
tests/commands/test_init_command.py:169
↓ 4 callers
Function
discover_plugins
Discover commitizen plugins on the path Args: path (Path, optional): If provided, 'path' should be either None or a list of paths to look
commitizen/cz/__init__.py:16
↓ 4 callers
Method
filter_commits_before_bump
Select commits before calculating a version increment. This operation-specific hook delegates to `filter_commits` so custom rules can
commitizen/cz/base.py:95
↓ 4 callers
Method
from_settings
Extract tag rules from settings
commitizen/tags.py:263
↓ 4 callers
Function
get_backup_file_path
()
commitizen/cz/utils.py:26
↓ 4 callers
Method
get_version_tags
Filter in version tags and warn on unexpected tags
commitizen/tags.py:143
↓ 4 callers
Method
info
(self)
commitizen/cz/customize/customize.py:101
↓ 4 callers
Method
message
(self, answers: ConventionalCommitsAnswers)
commitizen/cz/conventional_commits/conventional_commits.py:157
↓ 4 callers
Method
normalize_tag
The tag and the software version might be different. That's why this function exists. Example: | tag | version (PEP
commitizen/tags.py:198
↓ 4 callers
Method
parse_title_level
Get the title level/type of a line if any
commitizen/changelog_formats/base.py:107
↓ 4 callers
Method
search_version
Search the first or last version tag occurrence in text. It searches for complete versions only (aka `major`, `minor` and `patch`)
commitizen/tags.py:174
↓ 4 callers
Method
tick
Advance time by 1 second.
tests/utils.py:115
↓ 3 callers
Function
_create_project_files
(files: dict[str, str | None])
tests/test_project_info.py:12
↓ 3 callers
Method
_get_commit_encoding
Return the encoding of the files that hold the commit message. `commit_encoding` falls back to `encoding` when it is not set.
commitizen/commands/commit.py:60
↓ 3 callers
Function
_guess_changelog_format
Try guessing the file format from the filename. Algorithm is basic, extension-based, and won't work for extension-less file names like `
commitizen/changelog_formats/__init__.py:83
↓ 3 callers
Function
_init_hook_answers
Stub the interactive init prompts and select hook installation.
tests/commands/test_init_command.py:261
↓ 3 callers
Function
_is_underlined_title
(first: str, second: str)
commitizen/changelog_formats/restructuredtext.py:83
↓ 3 callers
Function
_parse_subject
(text: str)
commitizen/cz/conventional_commits/conventional_commits.py:22
↓ 3 callers
Method
create_branch
Create a new branch.
tests/utils.py:66
↓ 3 callers
Method
filter_commits
Select commits shared by bump and changelog operations. Custom rules can override this method when both operations should use the sam
commitizen/cz/base.py:81
↓ 3 callers
Method
filter_commits_before_changelog
Select commits before generating a changelog. This operation-specific hook delegates to `filter_commits` so custom rules can share fi
commitizen/cz/base.py:111
↓ 3 callers
Method
from_message
Compute the highest increment contributed by one commit message. Commitizen historically evaluates each line of the full commit message
commitizen/version_increment.py:105
↓ 3 callers
Method
include_in_changelog
Check if a tag should be included in the changelog
commitizen/tags.py:166
↓ 3 callers
Method
is_ignored_tag
True if a given tag can be ignored
commitizen/tags.py:138
↓ 3 callers
Method
manual_edit
Open the message in the git editor and return the edited message. The temporary file uses `commit_encoding` (or `encoding`) instead of the
commitizen/commands/commit.py:141
↓ 3 callers
Method
message
(self, answers: Mapping[str, Any])
commitizen/cz/customize/customize.py:86
↓ 3 callers
Method
questions
(self)
commitizen/cz/customize/customize.py:83
↓ 3 callers
Method
set_key
(self, key: str, value: object)
commitizen/config/json_config.py:42
↓ 3 callers
Method
switch_branch
Switch to given branch.
tests/utils.py:72
↓ 2 callers
Method
_compile_pattern
Normalize a bump-pattern input into a compiled regular expression.
commitizen/version_increment.py:66
↓ 2 callers
Method
_construct_name_choices_from_registry
Construct questionary choices of cz names from registry.
commitizen/commands/init.py:217
↓ 2 callers
Function
_create_config_from_path
(path: Path)
commitizen/config/__init__.py:30
↓ 2 callers
Method
_extract_version
(self, match: re.Match[str])
commitizen/tags.py:273
↓ 2 callers
Method
_format_regex
Format a tag pattern into a regex pattern. If star is `True`, the `*` character will be considered as a wildcard.
commitizen/tags.py:107
↓ 2 callers
Method
_is_initial_tag
Check if reading the whole git tree up to HEAD is needed.
commitizen/commands/bump.py:131
↓ 2 callers
Function
_is_overlined_title
(first: str, second: str, third: str)
commitizen/changelog_formats/restructuredtext.py:74
↓ 2 callers
Function
_parse_scope
(text: str)
commitizen/cz/conventional_commits/conventional_commits.py:18
↓ 2 callers
Function
_popen
( cmd: str | Sequence[str], *, shell: bool, env: Mapping[str, str] | None = None, )
commitizen/cmd.py:39
↓ 2 callers
Function
_try_get_workspace
(document: TOMLDocument)
commitizen/providers/cargo_provider.py:102
↓ 2 callers
Method
_version_tag_error
Format the error message for an invalid version tag
commitizen/tags.py:119
↓ 2 callers
Method
contains_commitizen_section
(self)
commitizen/config/json_config.py:28
↓ 2 callers
Function
create_config
(*, data: bytes | str | None = None, path: Path)
commitizen/config/factory.py:15
↓ 2 callers
Method
decode
(self, encoding="utf-8", errors="strict")
tests/test_cmd.py:51
↓ 2 callers
Method
example
(self)
commitizen/cz/customize/customize.py:92
↓ 2 callers
Method
for_open
(cls)
commitizen/git.py:25
↓ 2 callers
Method
from_rev_and_commit
Create a GitCommit instance from a formatted commit string. This method parses a multi-line string containing commit information in the follo
commitizen/git.py:82
↓ 2 callers
Method
from_value
Convert external increment input into a known increment. This lenient path is used for inputs such as CLI arguments where an unknown
commitizen/version_increment.py:50
↓ 2 callers
Method
get_latest_full_release
(self, filepath: str)
commitizen/changelog_formats/base.py:75
↓ 2 callers
Method
init_empty_config_content
(self)
commitizen/config/json_config.py:36
↓ 2 callers
Method
init_empty_config_content
(self)
commitizen/config/toml_config.py:32
↓ 2 callers
Function
main
()
commitizen/cli.py:674
↓ 2 callers
Method
merge_branch
Merge given branch into current branch.
tests/utils.py:78
↓ 2 callers
Function
normalize_argparse_choice_quotes
(text: str)
tests/test_cli.py:25
↓ 2 callers
Method
patch_env
Patch environment variables to sync with FreezeGun time.
tests/utils.py:109
↓ 2 callers
Method
questions
(self)
commitizen/cz/conventional_commits/conventional_commits.py:50
↓ 2 callers
Method
schema
Schema definition of the commit message.
commitizen/cz/base.py:149
↓ 2 callers
Method
schema_pattern
(self)
commitizen/cz/customize/customize.py:95
↓ 2 callers
Method
set
(self, document: dict[str, Any], version: str)
commitizen/providers/base_provider.py:86
↓ 2 callers
Function
strip_local_version
(version: str)
commitizen/cz/utils.py:22
↓ 1 callers
Function
_add_entry
(test_str: str, args: list)
tests/test_bump_create_commit_message.py:118
↓ 1 callers
Method
_ask_config_path
(self)
commitizen/commands/init.py:199
↓ 1 callers
Method
_ask_hook_installer
Choose ``pre-commit`` or ``prek`` when installing Git hooks. Detection already accepts either tool, but install used to hard-code ``p
commitizen/commands/init.py:176
↓ 1 callers
Method
_ask_hook_types
Ask which pre-commit hook types to install. Skip the question when neither ``pre-commit`` nor ``prek`` is installed, so users who do
commitizen/commands/init.py:157
↓ 1 callers
Method
_ask_major_version_zero
Ask for setting: major_version_zero
commitizen/commands/init.py:305
↓ 1 callers
Method
_ask_name
(self)
commitizen/commands/init.py:208
↓ 1 callers
Method
_ask_tag
(self)
commitizen/commands/init.py:240
↓ 1 callers
Method
_ask_update_changelog_on_bump
Ask for setting: update_changelog_on_bump
commitizen/commands/init.py:316
next →
1–100 of 1,032, ranked by callers