Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/notbobthebuilder/hooktrigger
Run scripts when (e.g. github) webhooks are fired
https://github.com/notbobthebuilder/hooktrigger
Last synced: 7 days ago
JSON representation
Run scripts when (e.g. github) webhooks are fired
- Host: GitHub
- URL: https://github.com/notbobthebuilder/hooktrigger
- Owner: NotBobTheBuilder
- Created: 2015-04-07T17:56:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-16T20:20:28.000Z (about 9 years ago)
- Last Synced: 2024-04-14T18:06:03.700Z (7 months ago)
- Language: Python
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
HookTrigger
===========Run scripts when (e.g. GitHub) webhooks fire.
To install
----------$ pip3 install hooktrigger
(you need to make sure pip is running in Python 3, if you can run pip3 this is probably the case).
With defaults
-------------$ hooktrigger
Listen on all addresses on port 8000, and run `git pull origin master` when hook triggered
With all flags
--------------$ hooktrigger -k -t github -H 127.0.0.1 -p 1234 -d /path/to/dir echo hello
- Generate and print a new secret
- Listen for github webhooks
- Bind to 127.0.0.1:1234
- When webhook caught and validated, run `echo hello` in the /path/to/dir directory.See `hooktrigger -h` for more details
Use with GitHub
---------------Add a webhook with the Payload URL set to be the host and port where HookTrigger is listening.
Make sure you paste the generated secret into the GitHub Secret field.