Skip to main content

Create Pull Requests, using GitHub API and a list of repositories

Project description

Create Pull Requests

Create pull requests programmatically using the GitHub API.


$ githubpullrequests -h
usage: githubpullrequests [-h] [-f FILE] [-t TOKEN] [-mr MAXIMUM_REPOSITORIES]
                          [-c] [-s]

Create Pull Requests, using GitHub API and a list of repositories

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  The file with the repositories informations
  -t TOKEN, --token TOKEN
                        GitHub token with `public_repos` access, or the path
                        to a file with the Github token in plain text. The
                        only contents the file can have is the token,
                        optionally with a tralling new line.
                        The maximum count of repositories/requests to process
                        per file.
  -c, --cancel-operation
                        If there is some batch operation running, cancel it as
                        soons as possible.
  -s, --synced-repositories
                        Reports which repositories not Synchronized with Pull
                        Requests. This also resets/skips any last session
                        saved due old throw/raised exceptions, because to
                        compute correctly the repositories list, it is
                        required to know all available repositories.

For example:

$ githubpullrequests -f repositories_list.txt

Example of repositories_list.txt:

[Anything Unique like evandrocoan/SublimePackageDefault]
    url =
    upstream =
    branches = upstream_branch_name->fork_branch_name,

You need to define the environment variable GITHUBPULLREQUESTS_TOKEN with the GitHub access token with public_repos permission, or pass the command line argument -t token to githubpullrequests.



See the file LICENSE.txt

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for githubpullrequests, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size githubpullrequests-0.1.0.tar.gz (19.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page