Skip to content

Commit cca9755

Browse files
authored
feat: Add AccessSource to Team (#4344)
1 parent a209c66 commit cca9755

4 files changed

Lines changed: 26 additions & 1 deletion

File tree

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: 11 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/teams.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ type Team struct {
6464
// Type identifies the ownership type of the team
6565
// Possible values are: "organization", "enterprise".
6666
Type *string `json:"type,omitempty"`
67+
68+
// AccessSource identifies the source of the team's access to a specific
69+
// repository. Possible values are: "direct", "organization" or "enterprise".
70+
// This is only populated when calling [RepositoriesService.ListTeams].
71+
AccessSource *string `json:"access_source,omitempty"`
6772
}
6873

6974
func (t Team) String() string {

0 commit comments

Comments
 (0)