Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 1.27 KB

svc-hooks.md

File metadata and controls

34 lines (20 loc) · 1.27 KB

Webhooks/Service hooks (svc-hooks)

View some webhooks

svc-hooks get but this is pretty verbose. Use --verbose for even more verbosity.

Create some webhooks

  1. svc-hooks create-init
  2. Fill in the required fields in the generated YAML file.
  3. svc-hooks create <file>

Edit some existing webhooks

  1. svc-hooks edit-init
  2. Edit fields in the generated YAML file.
  3. Remove any webhook entries you don't want to change. This is recommended to avoid unexpected errors.
  4. svc-hooks edit <file>

FAQ

I keep getting an error about null keys and/or missing data in file.

Do not leave any null or undefined values. You can force null with '' empty string, but may have some unexpected behavior. For example, a git.push webhook with branch: '' will trigger on any branch.

What are the supported event types?

See EventTypes.ts for the list of currently supported event types.

See full list of event types and their required parameters here.

I don't understand the parameters.

See full list of event types and their required parameters here.