Skip to content

Commit

Permalink
Update permission levels for repositories owned by an organization (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavsanap authored May 4, 2020
1 parent b14be9f commit bac7f5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions github/repos_collaborators.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ type RepositoryAddCollaboratorOptions struct {
// pull - team members can pull, but not push to or administer this repository
// push - team members can pull and push, but not administer this repository
// admin - team members can pull, push and administer this repository
// maintain - team members can manage the repository without access to sensitive or destructive actions.
// triage - team members can proactively manage issues and pull requests without write access.
//
// Default value is "push". This option is only valid for organization-owned repositories.
Permission string `json:"permission,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions github/teams.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,8 @@ type TeamAddTeamRepoOptions struct {
// pull - team members can pull, but not push to or administer this repository
// push - team members can pull and push, but not administer this repository
// admin - team members can pull, push and administer this repository
// maintain - team members can manage the repository without access to sensitive or destructive actions.
// triage - team members can proactively manage issues and pull requests without write access.
//
// If not specified, the team's permission attribute will be used.
Permission string `json:"permission,omitempty"`
Expand Down

0 comments on commit bac7f5e

Please sign in to comment.