Skip to content

Commit a356607

Browse files
committed
change actor to user
1 parent 697e423 commit a356607

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

github/event_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ type EditOwner struct {
369369
// OwnerInfo represents the account info of the owner of the repo (could be User or Organization but both are User structs).
370370
type OwnerInfo struct {
371371
User *User `json:"user,omitempty"`
372-
Org *User `json:"organization,omitempty"`
372+
Org *User `json:"organization,omitempty"`
373373
}
374374

375375
// RepoName represents a change of repository name.

github/event_types_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func TestEditChange_Marshal_TransferFromUser(t *testing.T) {
110110
u := &EditChange{
111111
Owner: &EditOwner{
112112
OwnerInfo: &OwnerInfo{
113-
Actor: &User{
113+
User: &User{
114114
Login: String("l"),
115115
ID: Int64(1),
116116
NodeID: String("n"),

github/github-accessors.go

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

0 commit comments

Comments
 (0)