diff options
author | Drew DeVault <sir@cmpwn.com> | 2020-07-16 11:04:23 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-07-16 11:04:23 -0400 |
commit | 1458933d4cef5aa3d243704dad93cf47ac32f965 (patch) | |
tree | a4d13bf4aa26cd2a7f2767ed0a5b66d73a51e21b /lists.sr.ht | |
parent | 388b9a6fa0f187c18a8d55e1d0df7042ed8f18c7 (diff) | |
download | sr.ht-docs-1458933d4cef5aa3d243704dad93cf47ac32f965.tar.gz |
lists.sr.ht: document patchset tools API
Diffstat (limited to 'lists.sr.ht')
-rw-r--r-- | lists.sr.ht/api.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lists.sr.ht/api.md b/lists.sr.ht/api.md index fe3cd26..e443047 100644 --- a/lists.sr.ht/api.md +++ b/lists.sr.ht/api.md @@ -313,6 +313,37 @@ implies the authenticated user. **OAuth scope**: `patches:read` +### PUT /api/user/:username/lists/:list-name/patchsets/:id/tools + +Sets the status of a "tool" which is processing this patch, used for example to +indicate the status of continous integration for a change. + +**Request body** + +```json +{ + "icon": "icon status enum", + "details": "user-friendly details, markdown", + "key": "arbitrary string" +} +``` + +"icon" shall be one of the following strings: + +- pending: the task is scheduled +- waiting: the task is running and we are awaiting its status +- success: the task completed successfully +- failed: the task failed +- cancelled: the task was cancelled + +"details" supports a subset of Markdown, including only bold and italic styles, +inline code, and links. It must be no more than one line of text. + +"key" is an arbitrary string used to uniquely identify this tool. You may update +the status of your tool later by providing the same key in a new PUT request. + +**OAuth scope**: `patches:write` + ### GET /api/user/:username/lists/:list-name/patchsets/:id/patches List of [email resources](#email-resource) making up the set of patches included |