From 606ac27d624f5d73adf75b851dd42f0b60e0544c Mon Sep 17 00:00:00 2001 From: caicloud-bot Date: Thu, 17 Sep 2020 17:43:07 +0800 Subject: [PATCH] chore: fix typo of gitlab error message (#1498) Co-authored-by: zhujian --- pkg/server/biz/scm/gitlab/gitlab.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/biz/scm/gitlab/gitlab.go b/pkg/server/biz/scm/gitlab/gitlab.go index 0523ed44a..7f4b1d566 100644 --- a/pkg/server/biz/scm/gitlab/gitlab.go +++ b/pkg/server/biz/scm/gitlab/gitlab.go @@ -237,7 +237,7 @@ func detectAPIVersion(scmCfg *v1alpha1.SCMSource) (string, error) { func getOauthToken(scm *v1alpha1.SCMSource) (string, error) { if len(scm.User) == 0 || len(scm.Password) == 0 { - return "", fmt.Errorf("GitHub username or password is missing") + return "", fmt.Errorf("GitLab username or password is missing") } bodyData := struct {