GitHubStorage#
- class mobu.storage.github.GitHubStorage(client, repo_owner, repo_name, ref, pull_number)#
Bases:
object
Tools to interact with the GitHub API.
All interactions are scoped to a paricular repo and ref.
- Parameters:
Methods Summary
create
(factory, installation_id, repo_owner, ...)Create an auth'd GitHub client and construct an instance.
create_check_run
(name, summary[, details])Create a check run and return an object to manage it.
Get a list of all changed or added files in the pull request.
Methods Documentation
- async classmethod create(factory, installation_id, repo_owner, repo_name, ref, pull_number)#
Create an auth’d GitHub client and construct an instance.
- Parameters:
- Return type:
Self
- async create_check_run(name, summary, details=None)#
Create a check run and return an object to manage it.
- async get_pr_files()#
Get a list of all changed or added files in the pull request.
- Returns:
List of paths relative to the repo root.
- Return type: