Skip to content
Snippets Groups Projects
Unverified Commit 4dc33471 authored by Eric Chiang's avatar Eric Chiang Committed by GitHub
Browse files

Merge pull request #1279 from AnianZ/master

fix default baseURL for GitLab connector
parents 4caf82c1 5454a472
Branches
Tags
No related merge requests found
...@@ -20,8 +20,8 @@ connectors: ...@@ -20,8 +20,8 @@ connectors:
# Required field for connector name. # Required field for connector name.
name: GitLab name: GitLab
config: config:
# optional, default = https://www.gitlab.com # optional, default = https://gitlab.com
baseURL: https://www.gitlab.com baseURL: https://gitlab.com
# Credentials can be string literals or pulled from the environment. # Credentials can be string literals or pulled from the environment.
clientID: $GITLAB_APPLICATION_ID clientID: $GITLAB_APPLICATION_ID
clientSecret: $GITLAB_CLIENT_SECRET clientSecret: $GITLAB_CLIENT_SECRET
......
...@@ -53,7 +53,7 @@ type gitlabGroup struct { ...@@ -53,7 +53,7 @@ type gitlabGroup struct {
// Open returns a strategy for logging in through GitLab. // Open returns a strategy for logging in through GitLab.
func (c *Config) Open(id string, logger logrus.FieldLogger) (connector.Connector, error) { func (c *Config) Open(id string, logger logrus.FieldLogger) (connector.Connector, error) {
if c.BaseURL == "" { if c.BaseURL == "" {
c.BaseURL = "https://www.gitlab.com" c.BaseURL = "https://gitlab.com"
} }
return &gitlabConnector{ return &gitlabConnector{
baseURL: c.BaseURL, baseURL: c.BaseURL,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment