/shook

Run commands on Gitlab webhook events

Primary LanguageRustApache License 2.0Apache-2.0

release status

Shook

Trivial server to listen to Gitlab webhooks and execute a set of commands.

Install

curl -s https://api.github.com/repos/geoffjay/shook/releases/latest \
    | jq '.assets[] | select(.name|test("^shook.*linux-musl.zip$")) | .browser_download_url' \
    | tr -d \" \
    | wget -qi -
unzip $(find . -iname "shook_*.zip")
sudo mv shook /usr/local/bin/

Check the setup documentation for any remaining steps.

Develop

Build

cargo build

Execute

cargo run

To see all arguments that are available execute the command cargo run -- --help.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.