ghcontribs.GitHubContrib¶
- class ghcontribs.GitHubContrib(owner: str, repo: str, number: int, contrib_type: ghcontribs.contrib.ContribType)¶
Representation of a single contribution on GitHub.
- Parameters
owner (str) – the organization or username owner of the repository
repo (str) – the name of the repository
number (int) – the issue or PR number associated with the contribution
contrib_type (
ContribType) – the type of contribution
- __init__(owner: str, repo: str, number: int, contrib_type: ghcontribs.contrib.ContribType) None¶
Methods
__init__(owner, repo, number, contrib_type)from_dict(dct)Create instance from a dict representation.
to_dict()Convert this to a dict suitable for JSON serialization
Attributes
github_shortnamestring used in GitHub to refer to this contributions
urlURL for this contribution
ownerreponumbercontrib_type