fj hook
Manage repository webhooks
fj hook [OPTIONS] <COMMAND>Every command also accepts the global flags:
--host,--debug,--no-pager,--json-fields.
fj hook list
List webhooks configured on a repo
fj hook list [OPTIONS]Options
-R, --repo <REPO>— Target repository as<owner>/<name>. Inferred from the git remote when omitted--json— Emit JSON instead of a table
fj hook create
Create a new webhook pointing at a URL
fj hook create [OPTIONS] <URL>Arguments
<URL>— Webhook URL
Options
-R, --repo <REPO>— Target repository as<owner>/<name>. Inferred from the git remote when omitted--type <TYPE>— Hook type. Defaults togitea(Gitea-compatible JSON payload) [default: gitea]--events <EVENTS>— Events to subscribe to (comma-separated). Defaults topush[default: push]--content-type <CONTENT_TYPE>— Set Content-Type for the request [default: json]--secret <SECRET>— HMAC secret used to sign webhook deliveries
fj hook delete
Delete a webhook by id
fj hook delete [OPTIONS] <ID>Arguments
<ID>— Webhook id
Options
-R, --repo <REPO>— Target repository as<owner>/<name>. Inferred from the git remote when omitted--yes— Skip the confirmation prompt
fj hook test
Send a test delivery to an existing webhook
fj hook test [OPTIONS] <ID>Arguments
<ID>— Webhook id
Options
-R, --repo <REPO>— Target repository as<owner>/<name>. Inferred from the git remote when omitted
Contributors
- Stephen Way