Hookit
WebHooks management and monitoring tool.
Install / Use
/learn @MateusZitelli/HookitREADME
Hookit automatically creates and listens to GitHub WebHooks, running a specified command after push events.
- Simple usage - see the example.
- Signated WebHooks by default.
- No dependencies.
Setup
Download and make Hookit Python script available for usage:
$ curl https://raw.githubusercontent.com/MateusZitelli/hookit/master/hookit > /usr/local/bin/hookit; chmod +x /usr/local/bin/hookit
Usage
1. Create GitHub Access Token
Create an access token here with the write:repo_hook scope.
<img width=800 src="https://cdn.rawgit.com/MateusZitelli/hookit/master/assets/access-token-info.png" ></img>
2. Create a configuration file
With the GitHub access token in hands create a configuration file named .env:
GITHUB_ACCESS_TOKEN=<The created Access Token>
REPOSITORY_NAME=Username/Repository
CALLBACK_URL=http://HOST:PORT
HOOK_SECRET=<A hash to be used for validation>
ON_PUSH_CALL=echo "Such a push"
3. Execute Hookit
And then execute Hookit on the folder with the .env file:
$ hookit
Now every push to the repository Username/Repository will trigger the script echo "Such a push".
Licence
Related Skills
tmux
350.8kRemote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
diffs
350.8kUse the diffs tool to produce real, shareable diffs (viewer URL, file artifact, or both) instead of manual edit summaries.
terraform-provider-genesyscloud
Terraform Provider Genesyscloud
blogwatcher
350.8kMonitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

