API Docs¶
Script to generate the version, changelog and releasenotes from the git repository.
Given a repo and optionally a base revision to start from, will return the list of authors.
Parameters: Returns: lexicographically sorted list of authors of the repo.
Return type: list
-
autosemver.api.
get_changelog
(*args, **kwargs)¶ Given a repo path and an option commit/tag/refspec to start from, will get the rpm compatible changelog
Parameters: Returns: Rpm compatible changelog
Return type:
-
autosemver.api.
get_current_version
(*args, **kwargs)¶ Given a repo will return the version string, according to semantic versioning, counting as non-backwards compatible commit any one with a message header that matches (case insensitive):
sem-ver: .*break.*
And as features any commit with a header matching:
sem-ver: feature
And counting any other as a bugfix
Parameters: repo_path (str) – path to the git repository to get the version for. Returns: Version string for that repository. Return type: str
-
autosemver.api.
get_releasenotes
(*args, **kwargs)¶ Given a repo and optionally a base revision to start from, will return a text suitable for the relase notes announcement, grouping the bugs, the features and the api-breaking changes.
Parameters: Returns: Release notes text.
Return type: