| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Posts a comment on the deployment request, authored as the user that owns the OAuth client.
Send only body for a top-level comment. Add path and a line to post an inline comment on a line of the deployment's diff. Inline comments start a thread that can be replied to and resolved.
Which line fields to send
An inline comment can only be anchored to a line that is part of the diff: a changed line, or one of the unchanged context lines shown around a change. Which field to send depends on the kind of line, the same rules the diff view in the app follows:
| Line | Send |
|---|---|
| Added line | newLine only |
| Removed line | oldLine only |
| Unchanged (context) line | both oldLine and newLine |
A position that does not follow these rules, or a line outside the diff, returns 400 with the reason in error.
baseSha and headSha pin an inline comment to a specific diff. If omitted they default to the deployment's targetCommit and mergeCommit (see Get a deployment by number). Both are null until the deployment has been built, in which case the request returns 409.
The merge request behind a deployment is created asynchronously, and never for drafts, so posting right after creating a deployment can return 409. Retry shortly.
