Skip to content

Commit 2c92b65

Browse files
author
Dean Karn
authored
Merge pull request #82 from hatstand/add-installation-id
Add installation ID to pull request payloads
2 parents 0c10330 + 905cac7 commit 2c92b65

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

github/payload.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4342,6 +4342,9 @@ type PullRequestReviewPayload struct {
43424342
Type string `json:"type"`
43434343
SiteAdmin bool `json:"site_admin"`
43444344
} `json:"sender"`
4345+
Installation struct {
4346+
ID int64 `json:"id"`
4347+
} `json:"installation"`
43454348
}
43464349

43474350
// PullRequestReviewCommentPayload contains the information for GitHub's pull_request_review_comments hook event
@@ -4806,6 +4809,9 @@ type PullRequestReviewCommentPayload struct {
48064809
Type string `json:"type"`
48074810
SiteAdmin bool `json:"site_admin"`
48084811
} `json:"sender"`
4812+
Installation struct {
4813+
ID int64 `json:"id"`
4814+
} `json:"installation"`
48094815
}
48104816

48114817
// PushPayload contains the information for GitHub's push hook event

0 commit comments

Comments
 (0)