Skip to content

Commit

Permalink
Include RoleName field in Repository struct (#2379)
Browse files Browse the repository at this point in the history
Fixes: #2378
  • Loading branch information
joshua-hancox committed Jun 7, 2022
1 parent 4ca1d67 commit 0b5813f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
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.

3 changes: 2 additions & 1 deletion github/github-stringify_test.go

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

4 changes: 4 additions & 0 deletions github/repos.go
Expand Up @@ -140,6 +140,10 @@ type Repository struct {
// overrides the field parameter when both are used.
// Can be one of public, private or internal.
Visibility *string `json:"visibility,omitempty"`

// RoleName is only returned by the API 'check team permissions for a repository'.
// See: teams.go (IsTeamRepoByID) https://docs.github.com/en/rest/teams/teams#check-team-permissions-for-a-repository
RoleName *string `json:"role_name,omitempty"`
}

func (r Repository) String() string {
Expand Down

0 comments on commit 0b5813f

Please sign in to comment.