Skip to content

Commit

Permalink
chore: fix typo of gitlab error message (#1498)
Browse files Browse the repository at this point in the history
Co-authored-by: zhujian <zhujian@caicloud.io>
  • Loading branch information
caicloud-bot and zhujian7 committed Sep 17, 2020
1 parent f3a802b commit 606ac27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/biz/scm/gitlab/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 606ac27

Please sign in to comment.