Webhook: How to configure hooks.json with two hooks

Created on 15 Apr 2020  路  3Comments  路  Source: adnanh/webhook

I am trying to define 2 hooks in the hooks.json file.
What is the correct syntax for this? I can't get it to work and the examples don't mention two hook id's in a single file.

I am trying to do something like this in my hooks.json file:

[
  {
    "id": "webhook",
    "execute-command": "/var/scripts/webhook.sh",
    "command-working-directory": "/var/webhook",
  }
 {
    "id": "webhook2",
    "execute-command": "/var/scripts/webhook2.sh",
    "command-working-directory": "/var/webhook"
  }
]
question

Most helpful comment

Could have known it! Anyways, thank you very much! It solved my issues :-)
This webhook utility is great!

All 3 comments

You are missing a comma , in between the objects [ {...}, {...} ] :-)

Could have known it! Anyways, thank you very much! It solved my issues :-)
This webhook utility is great!

You're welcome :-) Glad you found it useful!

Was this page helpful?
0 / 5 - 0 ratings