Skip to content

Slipstream deploy record

POST
/webhooks/slipstream/deploy
curl --request POST \
--url https://example.com/api/webhooks/slipstream/deploy \
--header 'Content-Type: application/json' \
--data '{ "repo": "example", "sha": "example", "run_id": "example", "environment": "production", "status": "success" }'

Called by the record-deploy stage of the Slipstream deploy recipe (HO-15721) once the promoted commit is live. Stamps deployed_at (status success) or deploy_failed_at (status failed) on tickets whose merge_sha is sha, in the projects wired to repo, saves that repo reported a deploy (HO-16279: the hourly sweep keeps its merged tickets waiting for their deploy), then closes the closing-line tickets parked on that sha. Only environment: production stamps; any other environment is acknowledged and ignored. Idempotent: a repeat stamps nothing and re-runs the close. Protected by CRON_SECRET via the x-cron-secret header.

Media type application/json
object
repo
required

GitHub owner/name

string
sha
required

Promoted commit, 40 hex characters

string
run_id
One of:
string
environment
required
string
Example
production
status
required
string
Allowed values: success failed

Recorded, or acknowledged and ignored (unknown repo, non-production environment)

Media type application/json
object
stamped
integer
closed
integer
ignored
boolean
reason
string

Body is not JSON or fails validation

Missing or invalid CRON_SECRET

Body too large

The stamp, the deploy report (report_failed) or the close failed; send the call again