@@ -28,45 +28,46 @@ type Event string
28
28
29
29
// GitHub hook types
30
30
const (
31
- CheckRunEvent Event = "check_run"
32
- CheckSuiteEvent Event = "check_suite"
33
- CommitCommentEvent Event = "commit_comment"
34
- CreateEvent Event = "create"
35
- DeleteEvent Event = "delete"
36
- DeploymentEvent Event = "deployment"
37
- DeploymentStatusEvent Event = "deployment_status"
38
- ForkEvent Event = "fork"
39
- GollumEvent Event = "gollum"
40
- InstallationEvent Event = "installation"
41
- InstallationRepositoriesEvent Event = "installation_repositories"
42
- IntegrationInstallationEvent Event = "integration_installation"
43
- IssueCommentEvent Event = "issue_comment"
44
- IssuesEvent Event = "issues"
45
- LabelEvent Event = "label"
46
- MemberEvent Event = "member"
47
- MembershipEvent Event = "membership"
48
- MilestoneEvent Event = "milestone"
49
- MetaEvent Event = "meta"
50
- OrganizationEvent Event = "organization"
51
- OrgBlockEvent Event = "org_block"
52
- PageBuildEvent Event = "page_build"
53
- PingEvent Event = "ping"
54
- ProjectCardEvent Event = "project_card"
55
- ProjectColumnEvent Event = "project_column"
56
- ProjectEvent Event = "project"
57
- PublicEvent Event = "public"
58
- PullRequestEvent Event = "pull_request"
59
- PullRequestReviewEvent Event = "pull_request_review"
60
- PullRequestReviewCommentEvent Event = "pull_request_review_comment"
61
- PushEvent Event = "push"
62
- ReleaseEvent Event = "release"
63
- RepositoryEvent Event = "repository"
64
- RepositoryVulnerabilityAlertEvent Event = "repository_vulnerability_alert"
65
- SecurityAdvisoryEvent Event = "security_advisory"
66
- StatusEvent Event = "status"
67
- TeamEvent Event = "team"
68
- TeamAddEvent Event = "team_add"
69
- WatchEvent Event = "watch"
31
+ CheckRunEvent Event = "check_run"
32
+ CheckSuiteEvent Event = "check_suite"
33
+ CommitCommentEvent Event = "commit_comment"
34
+ CreateEvent Event = "create"
35
+ DeleteEvent Event = "delete"
36
+ DeploymentEvent Event = "deployment"
37
+ DeploymentStatusEvent Event = "deployment_status"
38
+ ForkEvent Event = "fork"
39
+ GollumEvent Event = "gollum"
40
+ InstallationEvent Event = "installation"
41
+ InstallationRepositoriesEvent Event = "installation_repositories"
42
+ IntegrationInstallationEvent Event = "integration_installation"
43
+ IntegrationInstallationRepositoriesEvent Event = "integration_installation_repositories"
44
+ IssueCommentEvent Event = "issue_comment"
45
+ IssuesEvent Event = "issues"
46
+ LabelEvent Event = "label"
47
+ MemberEvent Event = "member"
48
+ MembershipEvent Event = "membership"
49
+ MilestoneEvent Event = "milestone"
50
+ MetaEvent Event = "meta"
51
+ OrganizationEvent Event = "organization"
52
+ OrgBlockEvent Event = "org_block"
53
+ PageBuildEvent Event = "page_build"
54
+ PingEvent Event = "ping"
55
+ ProjectCardEvent Event = "project_card"
56
+ ProjectColumnEvent Event = "project_column"
57
+ ProjectEvent Event = "project"
58
+ PublicEvent Event = "public"
59
+ PullRequestEvent Event = "pull_request"
60
+ PullRequestReviewEvent Event = "pull_request_review"
61
+ PullRequestReviewCommentEvent Event = "pull_request_review_comment"
62
+ PushEvent Event = "push"
63
+ ReleaseEvent Event = "release"
64
+ RepositoryEvent Event = "repository"
65
+ RepositoryVulnerabilityAlertEvent Event = "repository_vulnerability_alert"
66
+ SecurityAdvisoryEvent Event = "security_advisory"
67
+ StatusEvent Event = "status"
68
+ TeamEvent Event = "team"
69
+ TeamAddEvent Event = "team_add"
70
+ WatchEvent Event = "watch"
70
71
)
71
72
72
73
// EventSubtype defines a GitHub Hook Event subtype
@@ -207,7 +208,7 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
207
208
var pl InstallationPayload
208
209
err = json .Unmarshal ([]byte (payload ), & pl )
209
210
return pl , err
210
- case InstallationRepositoriesEvent :
211
+ case InstallationRepositoriesEvent , IntegrationInstallationRepositoriesEvent :
211
212
var pl InstallationRepositoriesPayload
212
213
err = json .Unmarshal ([]byte (payload ), & pl )
213
214
return pl , err
0 commit comments