Merging upstream version 4.8.2.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-24 07:07:32 +02:00
parent 2197604488
commit f37765f523
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
14 changed files with 201 additions and 170 deletions

View file

@ -3,7 +3,7 @@ usage: cz changelog [-h] [--dry-run] [--file-name FILE_NAME]
[--start-rev START_REV] [--merge-prerelease]
[--version-scheme {pep440,semver,semver2}]
[--export-template EXPORT_TEMPLATE] [--template TEMPLATE]
[--extra EXTRA]
[--extra EXTRA] [--tag-format TAG_FORMAT]
[rev_range]
generate changelog (note that it will overwrite existing file)
@ -37,3 +37,5 @@ options:
changelog template file name (relative to the current
working directory)
--extra, -e EXTRA a changelog extra variable (in the form 'key=value')
--tag-format TAG_FORMAT
The format of the tag, wrap around simple quotes

View file

@ -556,8 +556,8 @@ TAGS = [
@pytest.fixture
def gitcommits() -> list:
commits = [
def gitcommits() -> list[git.GitCommit]:
return [
git.GitCommit(
commit["rev"],
commit["title"],
@ -568,13 +568,11 @@ def gitcommits() -> list:
)
for commit in COMMITS_DATA
]
return commits
@pytest.fixture
def tags() -> list:
tags = [git.GitTag(*tag) for tag in TAGS]
return tags
def tags() -> list[git.GitTag]:
return [git.GitTag(*tag) for tag in TAGS]
@pytest.fixture