Skip to content

Commit bcd05dc

Browse files
lunnyyp05327
andauthored
Apply suggestions from code review
Co-authored-by: yp05327 <[email protected]>
1 parent 93bdf56 commit bcd05dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/actions/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const (
2525
githubEventPullRequestComment = "pull_request_comment"
2626
)
2727

28-
func converFromGithubEvent(evt *jobparser.Event) string {
28+
func convertFromGithubEvent(evt *jobparser.Event) string {
2929
switch evt.Name {
3030
case githubEventPullRequest, githubEventPullRequestTarget, githubEventPullRequestReview,
3131
githubEventPullRequestReviewComment:

modules/actions/workflows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func DetectWorkflows(commit *git.Commit, triggedEvent webhook_module.HookEventTy
8383
}
8484

8585
func detectMatched(commit *git.Commit, triggedEvent webhook_module.HookEventType, payload api.Payloader, evt *jobparser.Event) bool {
86-
if converFromGithubEvent(evt) != triggedEvent.Event() {
86+
if convertFromGithubEvent(evt) != triggedEvent.Event() {
8787
return false
8888
}
8989

0 commit comments

Comments
 (0)