tenseleyflow/shithub / 01eb2fb

Browse files

changelog: note S50 §10 collaborators REST

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
01eb2fbc45691058d8a1d03780a546eea2ae27a0
Parents
7971416
Tree
dc6f5cf

1 changed file

StatusFile+-
M CHANGELOG.md 13 0
CHANGELOG.mdmodified
@@ -150,6 +150,19 @@ between minor releases.
150150
   `GET /api/v1/repos/{o}/{r}/tags` (paginated). Scope: `repo:read`.
151151
   Empty / uninitialised repos return `[]` rather than `404`.
152152
 - **Capabilities:** `branches`, `tags` added to `/api/v1/meta`.
153
+- **REST: repo collaborators (S50 §10).**
154
+  `GET /api/v1/repos/{o}/{r}/collaborators` (list),
155
+  `GET .../collaborators/{username}` (204 membership probe),
156
+  `GET .../collaborators/{username}/permission` (permission
157
+  level — `"none"` when not a collaborator),
158
+  `PUT .../collaborators/{username}` (add / upgrade, body
159
+  `{"role": "..."}` accepting both shithub names and gh-style
160
+  aliases `pull`/`push`),
161
+  `DELETE .../collaborators/{username}` (remove). Scope:
162
+  `repo:read` on GETs, `repo:write` on mutations; mutations
163
+  layer `ActionRepoAdmin` on top. Refuses (422) to enrol the
164
+  repo owner.
165
+- **Capability:** `collaborators` added to `/api/v1/meta`.
153166
 
154167
 ### Added (internal)
155168