Skip to content

Commit d7570ff

Browse files
author
Dean Karn
authored
Merge pull request #52 from pieterlexis/add-assignees-to-issues
Add Assignees struct to IssuesPayload as well
2 parents dfc330f + 2dbe987 commit d7570ff

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

github/payload.go

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,15 +1109,16 @@ type IssueCommentPayload struct {
11091109
Name string `json:"name"`
11101110
Color string `json:"color"`
11111111
} `json:"labels"`
1112-
State string `json:"state"`
1113-
Locked bool `json:"locked"`
1114-
Assignee *Assignee `json:"assignee"`
1115-
Milestone *Milestone `json:"milestone"`
1116-
Comments int64 `json:"comments"`
1117-
CreatedAt time.Time `json:"created_at"`
1118-
UpdatedAt time.Time `json:"updated_at"`
1119-
ClosedAt *time.Time `json:"closed_at"`
1120-
Body string `json:"body"`
1112+
State string `json:"state"`
1113+
Locked bool `json:"locked"`
1114+
Assignee *Assignee `json:"assignee"`
1115+
Assignees []*Assignee `json:"assignees"`
1116+
Milestone *Milestone `json:"milestone"`
1117+
Comments int64 `json:"comments"`
1118+
CreatedAt time.Time `json:"created_at"`
1119+
UpdatedAt time.Time `json:"updated_at"`
1120+
ClosedAt *time.Time `json:"closed_at"`
1121+
Body string `json:"body"`
11211122
} `json:"issue"`
11221123
Comment struct {
11231124
URL string `json:"url"`
@@ -1294,15 +1295,16 @@ type IssuesPayload struct {
12941295
Color string `json:"color"`
12951296
Default bool `json:"default"`
12961297
} `json:"labels"`
1297-
State string `json:"state"`
1298-
Locked bool `json:"locked"`
1299-
Assignee *Assignee `json:"assignee"`
1300-
Milestone *Milestone `json:"milestone"`
1301-
Comments int64 `json:"comments"`
1302-
CreatedAt time.Time `json:"created_at"`
1303-
UpdatedAt time.Time `json:"updated_at"`
1304-
ClosedAt *time.Time `json:"closed_at"`
1305-
Body string `json:"body"`
1298+
State string `json:"state"`
1299+
Locked bool `json:"locked"`
1300+
Assignee *Assignee `json:"assignee"`
1301+
Assignees []*Assignee `json:"assignees"`
1302+
Milestone *Milestone `json:"milestone"`
1303+
Comments int64 `json:"comments"`
1304+
CreatedAt time.Time `json:"created_at"`
1305+
UpdatedAt time.Time `json:"updated_at"`
1306+
ClosedAt *time.Time `json:"closed_at"`
1307+
Body string `json:"body"`
13061308
} `json:"issue"`
13071309
Repository struct {
13081310
ID int64 `json:"id"`
@@ -1410,6 +1412,7 @@ type IssuesPayload struct {
14101412
Type string `json:"type"`
14111413
SiteAdmin bool `json:"site_admin"`
14121414
} `json:"sender"`
1415+
Assignee *Assignee `json:"assignee"`
14131416
}
14141417

14151418
// LabelPayload contains the information for GitHub's label hook event
@@ -3169,6 +3172,7 @@ type PullRequestPayload struct {
31693172
Type string `json:"type"`
31703173
SiteAdmin bool `json:"site_admin"`
31713174
} `json:"sender"`
3175+
Assignee *Assignee `json:"assignee"`
31723176
Installation struct {
31733177
ID int64 `json:"id"`
31743178
} `json:"installation"`

0 commit comments

Comments
 (0)