Skip to content

Commit b3962ed

Browse files
authored
Add permissions to teams (#1864)
Fixes: #1863.
1 parent b1b5e4e commit b3962ed

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
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/teams.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ type Team struct {
3232
// Permission specifies the default permission for repositories owned by the team.
3333
Permission *string `json:"permission,omitempty"`
3434

35+
// Permissions identifies the permissions that a team has on a given
36+
// repository. This is only populated when calling Repositories.ListTeams.
37+
Permissions *map[string]bool `json:"permissions,omitempty"`
38+
3539
// Privacy identifies the level of privacy this team should have.
3640
// Possible values are:
3741
// secret - only visible to organization owners and members of this team

0 commit comments

Comments
 (0)