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
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.
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.
```
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.
Things you can do:
- Set commit status
- Create a pull request
- Merge a pull request
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.
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.
```
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.
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.0.tar.gz
(2.6 kB
view details)
File details
Details for the file githubtools-0.2.0.tar.gz
.
File metadata
- Download URL: githubtools-0.2.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d49bdba79225a82428c4183c46f012288739b08ad4dc4276d196c6a57f12bfc |
|
MD5 | e68f2a02e093550eef169a9248a2c121 |
|
BLAKE2b-256 | 916fd5b64a6e4af51458ce4dae6c539bef15463c8c053cb14bcc36943be64f41 |