GitHubContext¶
class GitHubContext
Information about the GitHub repo / user.
avatar_url¶
avatar_url: str | None = None
The url of the GitHub avatar.
bio¶
bio: str | None = None
The user biography.
blog¶
blog: str | None = None
The user blog URL.
company¶
company: str | None = None
The company associated with the user.
default_branch¶
default_branch: str = ''
The default branch of the repository.
email¶
email: str | None = None
The user email address.
followers¶
followers: int | None = None
The follower count of the user.
gravatar_id¶
gravatar_id: str | None = None
The gravatar id associated with the user.
hireable¶
hireable: bool | None = None
Whether the user is hireable.
location¶
location: str | None = None
The user location, as set on GitHub.
name¶
name: str | None = None
The GitHub username.
repo_name¶
repo_name: str = ''
The repository name.
twitter_username¶
twitter_username: str | None = None
The twitter username.
workflows¶
workflows: list[githarbor.Workflow] = dataclasses.field(default_factory=list)
A list of configured workflows.
__init__¶
def __init__(default_branch: str = '', repo_name: str = '', workflows: list[githarbor.Workflow] = list(), avatar_url: str | None = None, bio: str | None = None, blog: str | None = None, company: str | None = None, email: str | None = None, followers: int | None = None, gravatar_id: str | None = None, hireable: bool | None = None, location: str | None = None, name: str | None = None, twitter_username: str | None = None) -> None
__repr__¶
def __repr__() -> str
from_url¶
def from_url(url: str) -> GitHubContext
Create GitHubContext from a GitHubRepository instance.
Parameters:
Name |
Type |
Description |
Default |
|---|---|---|---|
|
|
URL to the repository. |
Returns:
Type |
Description |
|---|---|
|
Populated context instance. |
Page info
Resources
Resources(css=[],
markdown_extensions={},
plugins=[],
js=[],
assets=[],
packages=[])
Metadata
created:
source_filename: /home/runner/work/mknodes/mknodes/src/mknodes/manual/templating_section.py
source_function: _
source_line_no: 42
title: GitHubContext