semantic_release.hvcs.gitlab module¶
Helper code for interacting with a Gitlab remote VCS
- class semantic_release.hvcs.gitlab.Gitlab(remote_url: str, *, hvcs_domain: str | None = None, token: str | None = None, allow_insecure: bool = False, **kwargs: Any)[source]¶
Bases:
RemoteHvcsBase
Gitlab HVCS interface for interacting with Gitlab repositories
- DEFAULT_DOMAIN = 'gitlab.com'¶
- DEFAULT_ENV_TOKEN_NAME = 'GITLAB_TOKEN'¶
- create_or_update_release(tag: str, release_notes: str, prerelease: bool = False) str [source]¶
Create or update a release for the given tag in a remote VCS, attaching the given changelog, if supported
- create_release(tag: str, release_notes: str, prerelease: bool = False, assets: list[str] | None = None) str [source]¶
Post release changelog :param tag: Tag to create release for :param release_notes: The release notes for this version :param prerelease: This parameter has no effect :return: The tag of the release
- get_changelog_context_filters() tuple[Callable[..., Any], ...] [source]¶
Return a list of functions that can be used as filters in a Jinja2 template
ex. filters to convert text to URLs for issues and commits