Skip to content
Webhook server for Gitlab, Github and Gitea to run arbitrary commands
Crystal Shell HTML Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
scripts
spec
src
.editorconfig
.gitignore
.travis.yml
LICENSE
Makefile
README.md
TODO
shard.yml

README.md

gachette

Webhook server for Gitlab, Github and Gitea to run arbitrary commands.

Installation

You need to create the binary like this:

shards install
make

As a result, the executable bin/gachette will appear.

Usage

Launch the bin/gachette binary:

KEMAL_ENV=production gachette -p 3030 -k github -n blankoworld/gachette -c "ls /"

Which means:

  • you run in production mode
  • port: 3030
  • you accept webhooks formed as github one
  • user namespace is blankoworld/gachette
  • each time you receive the well-formed request you launch a command: ls /

That's all!

Development

Webhooks documentation

Tests

Pretty testing can be launched via these commands:

shards install
KEMAL_ENV=test crystal spec

OR:

shards install
make test

Documentation

As for Crystal language, just generate the documentation like this:

crystal docs

OR:

make doc

Contributing

  1. Fork it (https://github.com/blankoworld/gachette/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

You can’t perform that action at this time.