Skip to content

Commit 697804f

Browse files
Add RoleName field to User struct (#2386)
1 parent 74c4599 commit 697804f

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

Diff for: github/github-accessors.go

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: github/github-accessors_test.go

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: github/github-stringify_test.go

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: github/users.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ type User struct {
6666
// See: search.go and https://docs.github.com/en/rest/search/#text-match-metadata
6767
TextMatches []*TextMatch `json:"text_matches,omitempty"`
6868

69-
// Permissions identifies the permissions that a user has on a given
70-
// repository. This is only populated when calling Repositories.ListCollaborators.
69+
// Permissions and RoleName identify the permissions and role that a user has on a given
70+
// repository. These are only populated when calling Repositories.ListCollaborators.
7171
Permissions map[string]bool `json:"permissions,omitempty"`
72+
RoleName *string `json:"role_name,omitempty"`
7273
}
7374

7475
func (u User) String() string {

0 commit comments

Comments
 (0)