API reference / Tasks and projects
Open a task's pull request
Pushes the task's code branch (troopy/<key>-<title>, never forced) to GitHub and opens a pull request from it into the repo's default branch, or returns the one already open. It works only after the repo's tests passed on the branch's last commit, and only when no code session works on it (see code in GET /tasks/{key}). The task moves to In review. When a person merges the pull request on GitHub, the task is done. An engineering ticket moves on by its steps instead, and a person releases it. Teammates never merge.
/api/v1/tasks/{key}/pull-requestOther ways to call it
troopy tasks pull-requesttroopy_open_pull_requestIdempotency-Key header. A retry with the same key gets the first answer back, and the operation runs one time.Path parameters
key*stringA task's key (VIR-12), its number (12) or its id
At least 1 characters · At most 40 characters
Body
application/jsontitle*stringWhat the change does, as a reviewer reads it
At least 3 characters · At most 200 characters
body*stringMarkdown: what changed and why, and how it was checked
At least 1 characters · At most 8000 characters
Response
200 · application/jsondata*object5 properties
number*integerurl*stringstate*enum<string>openclosedmerged
repo*stringbranch*string