aboutsummaryrefslogtreecommitdiffstats
path: root/modules/structs/repo_collaborator.go
Commit message (Collapse)AuthorAgeFilesLines
* Add permission description for API to add repo collaborator (#31744)Jason Song2024-08-011-0/+1
| | | Fix #31552.
* Implement FSFE REUSE for golang files (#21840)flynnnnnnnnnn2022-11-271-2/+1
| | | | | | | | | Change all license headers to comply with REUSE specification. Fix #16132 Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
* Add API to query collaborators permission for a repository (#18761)Florin Hillebrand2022-04-291-0/+7
| | | | | | | | | | | | | | | | | | | | | 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.
* Move sdk structs to modules/structs (#6905)Lunny Xiao2019-05-111-0/+10
* move sdk structs to moduels/structs * fix tests * fix fmt * fix swagger * fix vendor