Skip to content

Commit

Permalink
Add role name to RepositoryPermissionLevel (#3188)
Browse files Browse the repository at this point in the history
Fixes: #3189.
  • Loading branch information
asultania-sc committed Jun 12, 2024
1 parent 0e99a54 commit a2b2fc8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions github/repos_collaborators.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ type RepositoryPermissionLevel struct {
Permission *string `json:"permission,omitempty"`

User *User `json:"user,omitempty"`

RoleName *string `json:"role_name,omitempty"`
}

// GetPermissionLevel retrieves the specific permission level a collaborator has for a given repository.
Expand Down

0 comments on commit a2b2fc8

Please sign in to comment.