Staging instance, all changes can be removed at any time

Skip to content

cli: Add command to create or update an event type

Add "swh webhooks event-type add NAME DESCRIPTION SCHEMA_FILE" command to create or update an event type.

$ swh webhooks -C ~/.config/swh/webhooks.yml event-type add -h
Usage: swh webhooks event-type add [OPTIONS] NAME DESCRIPTION SCHEMA_FILE

  Create or update a webhook event type.

  NAME must be a string in the form '<group>.<event>'.

  DESCRIPTION is a string giving info about the event type.

  SCHEMA_FILE is a path to a JSON schema file describing event payload.

Options:
  -h, --help  Show this message and exit.

Depends on !6 (merged).

Related to #6.

Edited by Antoine Lambert

Merge request reports

Loading