Skip to content

Commit a8a3177

Browse files
authored
feat!: Change User.InheritedFrom to a slice (#3460)
BREAKING CHANGE: `User.InheritedFrom` is changed from a `*Team` to a `[]*Team`.
1 parent d392e2c commit a8a3177

File tree

4 files changed

+2
-19
lines changed

4 files changed

+2
-19
lines changed

github/github-accessors.go

Lines changed: 0 additions & 8 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: 0 additions & 8 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: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ type User struct {
7777
Assignment *string `json:"assignment,omitempty"`
7878
// InheritedFrom identifies the team that a user inherited their organization role
7979
// from. This is only populated when calling the ListUsersAssignedToOrgRole method.
80-
InheritedFrom *Team `json:"inherited_from,omitempty"`
80+
InheritedFrom []*Team `json:"inherited_from,omitempty"`
8181
}
8282

8383
func (u User) String() string {

0 commit comments

Comments
 (0)