mass_driver.sources.github_source

Github repository search as Source

Module Contents

Classes

GithubBaseSource

Base for github source

GithubPersonalSource

Github API wrapper for personal user token use, capable of searching repos

GithubAppSource

Search repos on Github as a Github App, not user

API

class mass_driver.sources.github_source.GithubBaseSource[source]

Bases: mass_driver.models.repository.Source

Base for github source

_github_api: github.Github = None
search_query: str = None

The github repo search query

discover() mass_driver.models.repository.IndexedRepos[source]

Discover a list of repositories

class mass_driver.sources.github_source.GithubPersonalSource(**data)[source]

Bases: mass_driver.sources.github_source.GithubBaseSource

Github API wrapper for personal user token use, capable of searching repos

Reliance on pygithub means only able to deliver personal user token PRs, no Github app authentication.

Initialization

Log in to Github first

token: pydantic.SecretStr = None

Github personal access token

class mass_driver.sources.github_source.GithubAppSource(**data)[source]

Bases: mass_driver.sources.github_source.GithubBaseSource

Search repos on Github as a Github App, not user

Initialization

Log in to Github first

app_id: pydantic.SecretStr = None
app_private_key: pydantic.SecretStr = None
app_installation_id: int = None