@@ -208,14 +208,14 @@ func detectMatched(gitRepo *git.Repository, commit *git.Commit, triggedEvent web
208
208
webhook_module .HookEventIssueAssign ,
209
209
webhook_module .HookEventIssueLabel ,
210
210
webhook_module .HookEventIssueMilestone :
211
- return matchIssuesEvent (commit , payload .(* api.IssuePayload ), evt )
211
+ return matchIssuesEvent (payload .(* api.IssuePayload ), evt )
212
212
213
213
case // issue_comment
214
214
webhook_module .HookEventIssueComment ,
215
215
// `pull_request_comment` is same as `issue_comment`
216
216
// See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_comment-use-issue_comment
217
217
webhook_module .HookEventPullRequestComment :
218
- return matchIssueCommentEvent (commit , payload .(* api.IssueCommentPayload ), evt )
218
+ return matchIssueCommentEvent (payload .(* api.IssueCommentPayload ), evt )
219
219
220
220
case // pull_request
221
221
webhook_module .HookEventPullRequest ,
@@ -229,19 +229,19 @@ func detectMatched(gitRepo *git.Repository, commit *git.Commit, triggedEvent web
229
229
case // pull_request_review
230
230
webhook_module .HookEventPullRequestReviewApproved ,
231
231
webhook_module .HookEventPullRequestReviewRejected :
232
- return matchPullRequestReviewEvent (commit , payload .(* api.PullRequestPayload ), evt )
232
+ return matchPullRequestReviewEvent (payload .(* api.PullRequestPayload ), evt )
233
233
234
234
case // pull_request_review_comment
235
235
webhook_module .HookEventPullRequestReviewComment :
236
- return matchPullRequestReviewCommentEvent (commit , payload .(* api.PullRequestPayload ), evt )
236
+ return matchPullRequestReviewCommentEvent (payload .(* api.PullRequestPayload ), evt )
237
237
238
238
case // release
239
239
webhook_module .HookEventRelease :
240
- return matchReleaseEvent (commit , payload .(* api.ReleasePayload ), evt )
240
+ return matchReleaseEvent (payload .(* api.ReleasePayload ), evt )
241
241
242
242
case // registry_package
243
243
webhook_module .HookEventPackage :
244
- return matchPackageEvent (commit , payload .(* api.PackagePayload ), evt )
244
+ return matchPackageEvent (payload .(* api.PackagePayload ), evt )
245
245
246
246
default :
247
247
log .Warn ("unsupported event %q" , triggedEvent )
@@ -347,7 +347,7 @@ func matchPushEvent(commit *git.Commit, pushPayload *api.PushPayload, evt *jobpa
347
347
return matchTimes == len (evt .Acts ())
348
348
}
349
349
350
- func matchIssuesEvent (commit * git. Commit , issuePayload * api.IssuePayload , evt * jobparser.Event ) bool {
350
+ func matchIssuesEvent (issuePayload * api.IssuePayload , evt * jobparser.Event ) bool {
351
351
// with no special filter parameters
352
352
if len (evt .Acts ()) == 0 {
353
353
return true
@@ -495,7 +495,7 @@ func matchPullRequestEvent(gitRepo *git.Repository, commit *git.Commit, prPayloa
495
495
return activityTypeMatched && matchTimes == len (evt .Acts ())
496
496
}
497
497
498
- func matchIssueCommentEvent (commit * git. Commit , issueCommentPayload * api.IssueCommentPayload , evt * jobparser.Event ) bool {
498
+ func matchIssueCommentEvent (issueCommentPayload * api.IssueCommentPayload , evt * jobparser.Event ) bool {
499
499
// with no special filter parameters
500
500
if len (evt .Acts ()) == 0 {
501
501
return true
@@ -527,7 +527,7 @@ func matchIssueCommentEvent(commit *git.Commit, issueCommentPayload *api.IssueCo
527
527
return matchTimes == len (evt .Acts ())
528
528
}
529
529
530
- func matchPullRequestReviewEvent (commit * git. Commit , prPayload * api.PullRequestPayload , evt * jobparser.Event ) bool {
530
+ func matchPullRequestReviewEvent (prPayload * api.PullRequestPayload , evt * jobparser.Event ) bool {
531
531
// with no special filter parameters
532
532
if len (evt .Acts ()) == 0 {
533
533
return true
@@ -576,7 +576,7 @@ func matchPullRequestReviewEvent(commit *git.Commit, prPayload *api.PullRequestP
576
576
return matchTimes == len (evt .Acts ())
577
577
}
578
578
579
- func matchPullRequestReviewCommentEvent (commit * git. Commit , prPayload * api.PullRequestPayload , evt * jobparser.Event ) bool {
579
+ func matchPullRequestReviewCommentEvent (prPayload * api.PullRequestPayload , evt * jobparser.Event ) bool {
580
580
// with no special filter parameters
581
581
if len (evt .Acts ()) == 0 {
582
582
return true
@@ -625,7 +625,7 @@ func matchPullRequestReviewCommentEvent(commit *git.Commit, prPayload *api.PullR
625
625
return matchTimes == len (evt .Acts ())
626
626
}
627
627
628
- func matchReleaseEvent (commit * git. Commit , payload * api.ReleasePayload , evt * jobparser.Event ) bool {
628
+ func matchReleaseEvent (payload * api.ReleasePayload , evt * jobparser.Event ) bool {
629
629
// with no special filter parameters
630
630
if len (evt .Acts ()) == 0 {
631
631
return true
@@ -662,7 +662,7 @@ func matchReleaseEvent(commit *git.Commit, payload *api.ReleasePayload, evt *job
662
662
return matchTimes == len (evt .Acts ())
663
663
}
664
664
665
- func matchPackageEvent (commit * git. Commit , payload * api.PackagePayload , evt * jobparser.Event ) bool {
665
+ func matchPackageEvent (payload * api.PackagePayload , evt * jobparser.Event ) bool {
666
666
// with no special filter parameters
667
667
if len (evt .Acts ()) == 0 {
668
668
return true
0 commit comments