github webhooks
Project description
Installation
$ [sudo] pip install github-webhooks
Config
bash | python |
---|---|
export GITHUB_TOKEN="your_github_token" |
os.environ["GITHUB_TOKEN"]="your_github_token" |
Functions
function | __doc__ |
---|---|
github_webhooks.exists(fullname, webhook) |
return True if webhook exists |
github_webhooks.api.delete(fullname, hook_id) |
delete repo webhook |
github_webhooks.api.get(fullname) |
return a list of repo webhooks data |
github_webhooks.api.request(method, url, data=None, **kwargs) |
make request and return response |
CLI
usage | __doc__ |
---|---|
python -m github_webhooks.add events url |
add repo webhook(s) |
python -m github_webhooks.delete webhook ... |
delete all repo webhooks |
python -m github_webhooks.init section ... |
init webhook from init file sections |
python -m github_webhooks.names |
print repo webhooks names |
python -m github_webhooks.urls |
print repo webhooks urls |
Examples
$ cd path/to/repo
$ python -m github_webhooks.create "push" https://xxx.execute-api.us-east-1.amazonaws.com/run
$ python -m github_webhooks.names
web
$ python -m github_webhooks.urls
https://xxx.execute-api.us-east-1.amazonaws.com/run
$ python -m github_webhooks.delete "web"
~/.github-webhooks.ini
[name]
url = https://xxx.execute-api.us-east-1.amazonaws.com/run
events = push
$ python -m github_webhooks.init "name"
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for github-webhooks-2019.3.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bc4c1220c99c536a1b5f8588729a14d4bb1e8f1a52c451e1dd6fc47f7a61b8c |
|
MD5 | 550f0ac92a8277968250432b3d73c858 |
|
BLAKE2b-256 | 7c80389c99d3644d5d88fc1c6b0791681f7f01ce4f740865901278d9ca4fe21c |
Close
Hashes for github_webhooks-2019.3.22-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7ba488ec3e694a44d55e744997153f8b79066a6ee2aa68c6ccaae2b14c19eee |
|
MD5 | ed659e2762601848e4c18f0740b10e23 |
|
BLAKE2b-256 | 230026439cf520e29985f94c82a086a523a694093d6a9d7bd707b25c8d052330 |