mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ad6d08d155
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. |
3 years ago | |
---|---|---|
.. | ||
convert.go | 3 years ago | |
git_commit.go | 3 years ago | |
git_commit_test.go | 3 years ago | |
issue.go | 3 years ago | |
issue_comment.go | 3 years ago | |
issue_test.go | 3 years ago | |
main_test.go | 3 years ago | |
notification.go | 3 years ago | |
package.go | 3 years ago | |
pull.go | 3 years ago | |
pull_review.go | 3 years ago | |
pull_test.go | 3 years ago | |
release.go | 3 years ago | |
repository.go | 3 years ago | |
status.go | 3 years ago | |
user.go | 3 years ago | |
user_test.go | 3 years ago | |
utils.go | 3 years ago | |
utils_test.go | 3 years ago | |
wiki.go | 3 years ago |