GitHubRepository#

class gafaelfawr.models.github.GitHubRepository(full_name, id, owner_id)#

Bases: object

Metadata about a repository gathered from the GitHub API.

Used to pin the numeric GitHub IDs of a repository and its owner when registering a GitHub project, since those IDs never change or get reused whereas names can be renamed, transferred, or re-registered.

Parameters:

Attributes Summary

full_name

Full name of the repository as owner/name, as GitHub reports it.

id

Numeric GitHub ID of the repository.

owner_id

Numeric GitHub ID of the owner of the repository.

Attributes Documentation

full_name: str = <dataclasses._MISSING_TYPE object>#

Full name of the repository as owner/name, as GitHub reports it.

id: int = <dataclasses._MISSING_TYPE object>#

Numeric GitHub ID of the repository.

owner_id: int = <dataclasses._MISSING_TYPE object>#

Numeric GitHub ID of the owner of the repository.