semantic_release.gitproject module

Module for git related operations.

class semantic_release.gitproject.GitProject(directory: Path | str = '.', commit_author: Actor | None = None, credential_masker: MaskingFilter | None = None)[source]

Bases: object

git_add(paths: Sequence[Path | str], force: bool = False, strict: bool = False, noop: bool = False) None[source]
git_commit(message: str, date: int | None = None, commit_all: bool = False, no_verify: bool = False, noop: bool = False) None[source]
git_push_branch(remote_url: str, branch: str, noop: bool = False) None[source]
git_push_tag(remote_url: str, tag: str, noop: bool = False) None[source]
git_tag(tag_name: str, message: str, noop: bool = False) None[source]
is_dirty() bool[source]
property logger: Logger
property project_root: Path