@@ -208,14 +208,14 @@ func detectMatched(gitRepo *git.Repository, commit *git.Commit, triggedEvent web
208208		webhook_module .HookEventIssueAssign ,
209209		webhook_module .HookEventIssueLabel ,
210210		webhook_module .HookEventIssueMilestone :
211- 		return  matchIssuesEvent (commit ,  payload .(* api.IssuePayload ), evt )
211+ 		return  matchIssuesEvent (payload .(* api.IssuePayload ), evt )
212212
213213	case  // issue_comment 
214214		webhook_module .HookEventIssueComment ,
215215		// `pull_request_comment` is same as `issue_comment` 
216216		// See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_comment-use-issue_comment 
217217		webhook_module .HookEventPullRequestComment :
218- 		return  matchIssueCommentEvent (commit ,  payload .(* api.IssueCommentPayload ), evt )
218+ 		return  matchIssueCommentEvent (payload .(* api.IssueCommentPayload ), evt )
219219
220220	case  // pull_request 
221221		webhook_module .HookEventPullRequest ,
@@ -229,19 +229,19 @@ func detectMatched(gitRepo *git.Repository, commit *git.Commit, triggedEvent web
229229	case  // pull_request_review 
230230		webhook_module .HookEventPullRequestReviewApproved ,
231231		webhook_module .HookEventPullRequestReviewRejected :
232- 		return  matchPullRequestReviewEvent (commit ,  payload .(* api.PullRequestPayload ), evt )
232+ 		return  matchPullRequestReviewEvent (payload .(* api.PullRequestPayload ), evt )
233233
234234	case  // pull_request_review_comment 
235235		webhook_module .HookEventPullRequestReviewComment :
236- 		return  matchPullRequestReviewCommentEvent (commit ,  payload .(* api.PullRequestPayload ), evt )
236+ 		return  matchPullRequestReviewCommentEvent (payload .(* api.PullRequestPayload ), evt )
237237
238238	case  // release 
239239		webhook_module .HookEventRelease :
240- 		return  matchReleaseEvent (commit ,  payload .(* api.ReleasePayload ), evt )
240+ 		return  matchReleaseEvent (payload .(* api.ReleasePayload ), evt )
241241
242242	case  // registry_package 
243243		webhook_module .HookEventPackage :
244- 		return  matchPackageEvent (commit ,  payload .(* api.PackagePayload ), evt )
244+ 		return  matchPackageEvent (payload .(* api.PackagePayload ), evt )
245245
246246	default :
247247		log .Warn ("unsupported event %q" , triggedEvent )
@@ -347,7 +347,7 @@ func matchPushEvent(commit *git.Commit, pushPayload *api.PushPayload, evt *jobpa
347347	return  matchTimes  ==  len (evt .Acts ())
348348}
349349
350- func  matchIssuesEvent (commit   * git. Commit ,  issuePayload  * api.IssuePayload , evt  * jobparser.Event ) bool  {
350+ func  matchIssuesEvent (issuePayload  * api.IssuePayload , evt  * jobparser.Event ) bool  {
351351	// with no special filter parameters 
352352	if  len (evt .Acts ()) ==  0  {
353353		return  true 
@@ -495,7 +495,7 @@ func matchPullRequestEvent(gitRepo *git.Repository, commit *git.Commit, prPayloa
495495	return  activityTypeMatched  &&  matchTimes  ==  len (evt .Acts ())
496496}
497497
498- func  matchIssueCommentEvent (commit   * git. Commit ,  issueCommentPayload  * api.IssueCommentPayload , evt  * jobparser.Event ) bool  {
498+ func  matchIssueCommentEvent (issueCommentPayload  * api.IssueCommentPayload , evt  * jobparser.Event ) bool  {
499499	// with no special filter parameters 
500500	if  len (evt .Acts ()) ==  0  {
501501		return  true 
@@ -527,7 +527,7 @@ func matchIssueCommentEvent(commit *git.Commit, issueCommentPayload *api.IssueCo
527527	return  matchTimes  ==  len (evt .Acts ())
528528}
529529
530- func  matchPullRequestReviewEvent (commit   * git. Commit ,  prPayload  * api.PullRequestPayload , evt  * jobparser.Event ) bool  {
530+ func  matchPullRequestReviewEvent (prPayload  * api.PullRequestPayload , evt  * jobparser.Event ) bool  {
531531	// with no special filter parameters 
532532	if  len (evt .Acts ()) ==  0  {
533533		return  true 
@@ -576,7 +576,7 @@ func matchPullRequestReviewEvent(commit *git.Commit, prPayload *api.PullRequestP
576576	return  matchTimes  ==  len (evt .Acts ())
577577}
578578
579- func  matchPullRequestReviewCommentEvent (commit   * git. Commit ,  prPayload  * api.PullRequestPayload , evt  * jobparser.Event ) bool  {
579+ func  matchPullRequestReviewCommentEvent (prPayload  * api.PullRequestPayload , evt  * jobparser.Event ) bool  {
580580	// with no special filter parameters 
581581	if  len (evt .Acts ()) ==  0  {
582582		return  true 
@@ -625,7 +625,7 @@ func matchPullRequestReviewCommentEvent(commit *git.Commit, prPayload *api.PullR
625625	return  matchTimes  ==  len (evt .Acts ())
626626}
627627
628- func  matchReleaseEvent (commit   * git. Commit ,  payload  * api.ReleasePayload , evt  * jobparser.Event ) bool  {
628+ func  matchReleaseEvent (payload  * api.ReleasePayload , evt  * jobparser.Event ) bool  {
629629	// with no special filter parameters 
630630	if  len (evt .Acts ()) ==  0  {
631631		return  true 
@@ -662,7 +662,7 @@ func matchReleaseEvent(commit *git.Commit, payload *api.ReleasePayload, evt *job
662662	return  matchTimes  ==  len (evt .Acts ())
663663}
664664
665- func  matchPackageEvent (commit   * git. Commit ,  payload  * api.PackagePayload , evt  * jobparser.Event ) bool  {
665+ func  matchPackageEvent (payload  * api.PackagePayload , evt  * jobparser.Event ) bool  {
666666	// with no special filter parameters 
667667	if  len (evt .Acts ()) ==  0  {
668668		return  true 
0 commit comments