This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/modules
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
..
activitypub
analyze
appstate Use a struct as test options (#19393) 2022-04-14 21:58:21 +08:00
auth RSS/Atom support for Repos (#19055) 2022-03-13 17:40:47 +01:00
avatar
base Update JS dependencies (#19281) 2022-04-01 02:15:46 +02:00
cache Remove legacy unknwon/com package (#19298) 2022-04-02 00:34:57 +08:00
charset Don't treat BOM escape sequence as hidden character. (#18909) 2022-02-26 16:48:23 +00:00
container Move reaction to models/issues/ (#19264) 2022-03-31 17:20:39 +08:00
context Add "Allow edits from maintainer" feature (#18002) 2022-04-28 17:45:33 +02:00
convert Add API to query collaborators permission for a repository (#18761) 2022-04-29 14:24:38 +02:00
csv
doctor [doctor] authorized-keys: fix displayed check name (#19464) 2022-04-24 20:06:33 +02:00
emoji
eventsource Improve Stopwatch behavior (#18930) 2022-04-25 22:45:22 +02:00
generate
git Prevent intermittent race in attribute reader close (#19537) 2022-04-28 11:19:33 +08:00
gitgraph Remove git.Command.Run and git.Command.RunInDir* (#19280) 2022-04-01 10:55:30 +08:00
graceful Add Goroutine stack inspector to admin/monitor (#19207) 2022-03-31 19:01:43 +02:00
hcaptcha
highlight
hostmatcher Support hostname:port to pass host matcher's check #19543 (#19543) 2022-04-29 01:39:50 +08:00
httpcache
httplib
indexer Prevent dangling archiver goroutine (#19516) 2022-04-26 19:22:26 -04:00
json Refactor legacy unknwon/com package, improve golangci lint (#19284) 2022-04-01 16:47:50 +08:00
lfs Update HTTP status codes to modern codes (#18063) 2022-03-23 12:54:07 +08:00
log Add Goroutine stack inspector to admin/monitor (#19207) 2022-03-31 19:01:43 +02:00
markup Remove legacy unmaintained packages, refactor to support change default locale (#19308) 2022-04-03 17:46:48 +08:00
metrics
migration Store the foreign ID of issues during migration (#18446) 2022-03-17 18:08:35 +01:00
nosql Remove legacy unknwon/com package (#19298) 2022-04-02 00:34:57 +08:00
notification more context for models (#19511) 2022-04-28 13:48:48 +02:00
options
packages Add Helm Chart registry (#19406) 2022-04-19 12:55:35 -04:00
paginator Remove legacy unmaintained packages, refactor to support change default locale (#19308) 2022-04-03 17:46:48 +08:00
password
pprof
private Add Goroutine stack inspector to admin/monitor (#19207) 2022-03-31 19:01:43 +02:00
process Add Goroutine stack inspector to admin/monitor (#19207) 2022-03-31 19:01:43 +02:00
proxy
public
queue Fix 64-bit atomic operations on 32-bit machines (#19531) 2022-04-27 10:32:04 -05:00
recaptcha
references
repository Use a struct as test options (#19393) 2022-04-14 21:58:21 +08:00
secret
session
setting Fixed registry host value. (#19363) 2022-04-10 19:57:36 +08:00
ssh Add Goroutine stack inspector to admin/monitor (#19207) 2022-03-31 19:01:43 +02:00
storage Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
structs Add API to query collaborators permission for a repository (#18761) 2022-04-29 14:24:38 +02:00
svg
sync Use queue instead of memory queue in webhook send service (#19390) 2022-04-25 20:03:01 +02:00
templates Refactor legacy unknwon/com package, improve golangci lint (#19284) 2022-04-01 16:47:50 +08:00
test more context for models (#19511) 2022-04-28 13:48:48 +02:00
timeutil Remove legacy unmaintained packages, refactor to support change default locale (#19308) 2022-04-03 17:46:48 +08:00
translation Remove legacy unmaintained packages, refactor to support change default locale (#19308) 2022-04-03 17:46:48 +08:00
typesniffer
updatechecker
upload
uri
user
util Remove legacy unknwon/com package (#19298) 2022-04-02 00:34:57 +08:00
validation use IsLoopback (#19477) 2022-04-25 13:55:12 +08:00
web Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 2022-04-08 13:21:05 +08:00