Adds a webhook to a private GitHub or Bitbucket Cloud repository so that watches on its pull requests are poked at
once instead of waiting for the next poll. The background is in Faster notices with webhooks.
Creates a hook at the Control Plane, then installs it at the repository with your own connection. A refused install deletes the Control Plane hook again
list
Prints your hooks: id, source, repository, creation time
rm
Deletes the webhook at the repository, then the hook at the Control Plane
The secret is never shown. The Control Plane returns it once; it goes to the repository’s webhook settings and nowhere else
Admin rights are required on the repository. When the token lacks them, add exits 1 with what to grant, and no hook is left at the Control Plane
Idempotent.add for a repository that already has a hook changes nothing and prints the existing id
rm always retires the Control Plane hook, even when the repository step fails (no token, no admin rights). It then prints a warning with the URL of the webhook to delete by hand; that webhook no longer verifies, so it is harmless until you do