Skip to main content

Some simple commandline tools for interacting with github: status, merge, pull, etc.

Project description

Some commandline tools for interacting with github.
=====================

Things you can do:
- Set commit status
- Create a pull request
- Merge a pull request

Set Status on a commit:

Usage:
github-commit-status -c <commit-hash> -s <status> -u <github-username> -p <github-password> -r <github_repo> --url <URL> --context <context> -d "<description>"
github-commit-status -c <commit-hash> -s <status> -t <github-token> -r <github_repo> --url <URL> --context <context> -d "<description>"

Options:
-c <commit-hash>, --commit-hash <commit-hash> Github commit hash
-s <status>, --status <status> Status to set [pending, success, error, or failure]
-u <username>, --username <username> github username
-p <password>, --password <password> github password
-t <token>, --token <token> github access token
-r <repository>, --repo <repository> github repository
-d <description> --description <description> description of the status
--url <url> URL to refer back to
--context <context> The context of the status. Typically the name of the service creating the status.


Create a pull request:

Usage:
github-create-pull-request -h <head> -b <base> -t <token> -r <repo> [-d "<description>" --title <title>]

Options:
-h <head>, --head <head> Head: the branch you're pulling from.
-b <base>, --base <base> Base: the branch you're pulling to.
-t <token>, --token <token> github access token
-r <repository>, --repo <repository> github repository
-d <description> --description <description> The pull request description.
--title <title> The pull request title.

Merge a pull request:

Usage:
github-merge-pull-request (-h <head> -b <base> | -p <pull-number>) -t <token> -r <repo>

Options:
-h <head>, --head <head> Head: the branch you're pulling from.
-b <base>, --base <base> Base: the branch you're pulling to.
-t <token>, --token <token> github access token
-r <repository>, --repo <repository> github repository
-p <pull-number> --pull-number <pull-number> The pull request ID number.

See https://github.com/nricklin/githubtools

Project details


Download files

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

Source Distribution

githubtools-0.2.4.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file githubtools-0.2.4.tar.gz.

File metadata

File hashes

Hashes for githubtools-0.2.4.tar.gz
Algorithm Hash digest
SHA256 592cd90784a92ed892c65112c30c15f2532586ff67208250b8c9ecf35dc54e12
MD5 f8e6613b3cb8d8ce3fca7211377a700f
BLAKE2b-256 7b7f61c492e1a771ab8e6fd60cf50cd7a00be764676b215930b8e704b2f09e7e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page