Register a hook (owners)
web: a signed JSON POST to url (see webhooks below).
buildkite: Pando calls Buildkite's create-build API,
POST https://api.buildkite.com/v2/organizations/{organization}/pipelines/{pipeline}/builds,
with the Worker secret BUILDKITE_API_TOKEN, for push events (by
default) on branches that are not deleted. The build gets commit,
branch, message, and env: PANDO_CLONE_URL, PANDO_READ_TOKEN
(read only, this repo, at least 24 hours: Buildkite's Retry reruns a
job with this env), PANDO_STATUS_URL, PANDO_STATUS_TOKEN (posts
checks on this commit for 24 hours, stamped buildkite; see
createStatus; pando status <state> uses it), PANDO_MONOREPO,
PANDO_REPO, PANDO_BRANCH, PANDO_HEAD, PANDO_DELIVERY,
PANDO_SEQ. Its meta_data has pando_delivery, pando_monorepo
(the id) and pando_repo, which Pando's Buildkite webhook uses to map
the build back (the ci tag).
https://app.gitpando.com/v1/monorepos/{owner}/{monorepo}/repos/{repo}/hooksAuthorisation
Path parameters
Request bodyJSONrequired
Returns
201
Created