githaven/routers
Florin Hillebrand ad6d08d155
Add API to query collaborators permission for a repository (#18761)
Targeting #14936, #15332

Adds a collaborator permissions API endpoint according to GitHub API: https://docs.github.com/en/rest/collaborators/collaborators#get-repository-permissions-for-a-user to retrieve a collaborators permissions for a specific repository.

### Checks the repository permissions of a collaborator. 

`GET` `/repos/{owner}/{repo}/collaborators/{collaborator}/permission`

Possible `permission` values are `admin`, `write`, `read`, `owner`, `none`.

```json
{
  "permission": "admin",
  "role_name": "admin",
  "user": {}
}
```

Where `permission` and `role_name` hold the same `permission` value and `user` is filled with the user API object. Only admins are allowed to use this API endpoint.
2022-04-29 14:24:38 +02:00
..
api Add API to query collaborators permission for a repository (#18761) 2022-04-29 14:24:38 +02:00
common Add Goroutine stack inspector to admin/monitor (#19207) 2022-03-31 19:01:43 +02:00
install Skip frontend ROOT_URL check on installation page, remove unnecessary global var (#19291) 2022-04-01 16:00:26 +08:00
private Add "Allow edits from maintainer" feature (#18002) 2022-04-28 17:45:33 +02:00
utils A better go code formatter, and now make fmt can run in Windows (#17684) 2021-11-17 20:34:35 +08:00
web Add "Allow edits from maintainer" feature (#18002) 2022-04-28 17:45:33 +02:00
init.go Use queue instead of memory queue in webhook send service (#19390) 2022-04-25 20:03:01 +02:00