Expand description
Pull request endpoints.
Verified against the GitFox API v1.3.0 OpenAPI document:
| Operation | Endpoint |
|---|---|
| list | GET /api/v1/repos/{repo_ref}/pullreq |
| view | GET /api/v1/repos/{repo_ref}/pullreq/{pullreq_number} |
| create | POST /api/v1/repos/{repo_ref}/pullreq |
| edit | PATCH …/pullreq/{pullreq_number} (title and description only) |
| merge | POST …/pullreq/{pullreq_number}/merge |
| delete branch | DELETE …/pullreq/{pullreq_number}/branch |
| close/reopen | POST …/pullreq/{pullreq_number}/state |
| draft/ready | POST …/pullreq/{pullreq_number}/state with is_draft |
| diff | GET …/pullreq/{pullreq_number}/diff |
| checks | GET …/pullreq/{pullreq_number}/checks |
| commits | GET …/pullreq/{pullreq_number}/commits |
| timeline | GET …/pullreq/{pullreq_number}/activities |
| comment | POST …/pullreq/{pullreq_number}/comments |
| edit comment | PATCH …/comments/{pullreq_comment_id} |
| delete comment | DELETE …/comments/{pullreq_comment_id} |
| review | POST …/pullreq/{pullreq_number}/reviews |
| reviewers | GET / PUT …/reviewers, DELETE …/reviewers/{id} |
| labels | GET / PUT …/labels, DELETE …/labels/{label_id} |
The space-wide listing (GET /spaces/{space_ref}/pullreq) is in the
document too, but answers 500 on the instances this was checked against, so
nothing here depends on it.
The diff endpoint content-negotiates: application/json yields per-file
entries, text/plain a raw unified diff. gf pr diff picks by output mode.