diff options
author | B. Watson <yalhcru@gmail.com> | 2022-03-14 03:34:35 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-03-14 03:34:35 -0400 |
commit | 82d8a21cb4a8e07ea1dcb595c58f37c5c8622ab2 (patch) | |
tree | 1c443f52eccaff8d4886adfb619983fe7e24f755 /network/webhook | |
parent | 7dfacb96a15d74d974bfb2763a558a5edf8772a1 (diff) |
network/webhook: Wrap README at 72 columns.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'network/webhook')
-rw-r--r-- | network/webhook/README | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/network/webhook/README b/network/webhook/README index cd7cfb6f5148..dc45c8216705 100644 --- a/network/webhook/README +++ b/network/webhook/README @@ -1,24 +1,26 @@ -webhook is a lightweight configurable tool written in Go, that allows you to -easily create HTTP endpoints (hooks) on your server, which you can use to -execute configured commands. You can also pass data from the HTTP request -(such as headers, payload or query variables) to your commands. webhook also -allows you to specify rules which have to be satisfied in order for the hook -to be triggered. +webhook is a lightweight configurable tool written in Go, that allows +you to easily create HTTP endpoints (hooks) on your server, which you +can use to execute configured commands. You can also pass data from +the HTTP request (such as headers, payload or query variables) to your +commands. webhook also allows you to specify rules which have to be +satisfied in order for the hook to be triggered. -For example, if you're using Github or Bitbucket, you can use webhook to set -up a hook that runs a redeploy script for your project on your staging server, -whenever you push changes to the master branch of your project. +For example, if you're using Github or Bitbucket, you can use webhook +to set up a hook that runs a redeploy script for your project on your +staging server, whenever you push changes to the master branch of your +project. If you use Mattermost or Slack, you can set up an "Outgoing webhook -integration" or "Slash command" to run various commands on your server, which -can then report back directly to you or your channels using the "Incoming -webhook integrations", or the appropriate response body. +integration" or "Slash command" to run various commands on your +server, which can then report back directly to you or your channels +using the "Incoming webhook integrations", or the appropriate response +body. webhook aims to do nothing more than it should do, and that is: 1. receive the request, 2. parse the headers, payload and query variables, 3. check if the specified rules for the hook are satisfied, -4. and finally, pass the specified arguments to the specified command via - command line arguments or via environment variables. +4. and finally, pass the specified arguments to the specified command + via command line arguments or via environment variables. Everything else is the responsibility of the command's author. |