finga
c8505b27c5
All dependencies were updated. An example configuration file `config.yml` is added to show the configuration options. Following locations are checked: - `/etc/webhookey/config.yml` - `<config_dir>/webhookey/config.yml` - `./config.yml` Whereas `<config_dir>` is depending on the platform: - Linux: `$XDG_CONFIG_HOME` or `$HOME/.config` - macOS: `$HOME/Library/Application Support` - Windows: `{FOLDERID_RoamingAppData}` Each hook's action is executed if all of the specified filters match.
17 lines
372 B
YAML
17 lines
372 B
YAML
---
|
|
hooks:
|
|
hook1:
|
|
action: "echo hookaction1"
|
|
filters:
|
|
match_ref:
|
|
pointer: "/ref"
|
|
regex: "refs/heads/master"
|
|
hook2:
|
|
action: "echo hookaction2"
|
|
filters:
|
|
match_ref:
|
|
pointer: "/ref"
|
|
regex: "refs/heads/master"
|
|
match_after:
|
|
pointer: "/after"
|
|
regex: "f6e5fe4fe37df76629112d55cc210718b6a55e7e"
|