GitContext
Local repository information.
commits
class-attribute
instance-attribute
¶
List of last commits (Commit objects from GitPython).
current_author
class-attribute
instance-attribute
¶
Author email for last commit.
current_committer
class-attribute
instance-attribute
¶
Committer name for last commit.
current_date_authored
class-attribute
instance-attribute
¶
Date authored for last commit.
current_date_committed
class-attribute
instance-attribute
¶
Date committed for last commit.
edit_uri
class-attribute
instance-attribute
¶
Edit uri (depends on code hoster).
last_version
class-attribute
instance-attribute
¶
Name of last commit tag.
main_branch
class-attribute
instance-attribute
¶
Name of the main branch of the repo (master / main).
repo_hoster
class-attribute
instance-attribute
¶
Name of the code hoster (for example GitHub)
__init__
¶
__init__(
main_branch: str = "",
repo_name: str = "",
commits: list[Any] = list(),
repo_hoster: str = "",
edit_uri: str | None = None,
current_sha: str = "",
current_committer: str = "",
current_date_committed: datetime | None = None,
current_author: str = "",
current_date_authored: datetime | None = None,
last_version: str | None = None,
) -> None