Skip to content

Commit 919f287

Browse files
mjuragaaiharos
authored andcommitted
BUG/MINOR: check-commit: fix typo
1 parent 2496665 commit 919f287

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

check-commit/check.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ func getGithubCommitSubjects() ([]string, error) {
302302
}
303303
}
304304

305-
func gitGitlabCommitSubjects() ([]string, error) {
305+
func getGitlabCommitSubjects() ([]string, error) {
306306
gitlab_url := os.Getenv("CI_API_V4_URL")
307307
token := os.Getenv("API_TOKEN")
308308
mri := os.Getenv("CI_MERGE_REQUEST_IID")
@@ -342,7 +342,7 @@ func getCommitSubjects(repoEnv string) ([]string, error) {
342342
if repoEnv == GITHUB {
343343
return getGithubCommitSubjects()
344344
} else if repoEnv == GITLAB {
345-
return gitGitlabCommitSubjects()
345+
return getGitlabCommitSubjects()
346346
}
347347
return nil, fmt.Errorf("unrecognized git environment %s", repoEnv)
348348
}

0 commit comments

Comments
 (0)