ghcontribs.contrib.ContribTypeInfo¶
- class ghcontribs.contrib.ContribTypeInfo(name: str, url_name: str, node_name: str, contrib_name: str, by_repo_name: str)¶
Used as the value for the ContribType enum.
- Parameters
name (str) – name of this contribution type; note related to the GitHub API
url_name (str) – addition to URL for this contribution type (‘pull’ or ‘issue’)
node_name (str) – label for this kind of node in the JSON output
contrib_name (str) –
by_repo_name (str) – label for this type of contribution when loading contributions by repository
- __init__()¶
Methods
__init__()count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
by_repo_nameAlias for field number 4
contrib_nameAlias for field number 3
nameAlias for field number 0
node_nameAlias for field number 2
url_nameAlias for field number 1