PullRequester¶
- class neophile.pr.PullRequester(path: Path, config: Configuration, session: ClientSession)¶
Bases:
object
Create GitHub pull requests.
- Parameters
path (
pathlib.Path
) – Path to the Git repository.config (
neophile.config.Configuration
) – neophile configuration.session (
aiohttp.ClientSession
) – The client session to use for requests.
Methods Summary
make_pull_request
(changes)Create or update a pull request for a list of changes.
Methods Documentation
- async make_pull_request(changes: Sequence[Update]) None ¶
Create or update a pull request for a list of changes.
- Parameters
changes (Sequence[
neophile.update.base.Update
]) – The changes.- Raises
neophile.exceptions.PushError – Pushing the branch to GitHub failed.