ghcontribs.GitHubContrib

class ghcontribs.GitHubContrib(owner: str, repo: str, number: int, contrib_type: 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: 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_shortname

string used in GitHub to refer to this contributions

url

URL for this contribution

owner

repo

number

contrib_type