Skip to content

Commit 0b5813f

Browse files
Include RoleName field in Repository struct (#2379)
Fixes: #2378
1 parent 4ca1d67 commit 0b5813f

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

github/github-accessors.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-stringify_test.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/repos.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ type Repository struct {
140140
// overrides the field parameter when both are used.
141141
// Can be one of public, private or internal.
142142
Visibility *string `json:"visibility,omitempty"`
143+
144+
// RoleName is only returned by the API 'check team permissions for a repository'.
145+
// See: teams.go (IsTeamRepoByID) https://docs.github.com/en/rest/teams/teams#check-team-permissions-for-a-repository
146+
RoleName *string `json:"role_name,omitempty"`
143147
}
144148

145149
func (r Repository) String() string {

0 commit comments

Comments
 (0)