From 5454a4729fc7a1eec9c1b67f21d006fc0038aea4 Mon Sep 17 00:00:00 2001 From: Anian Z Date: Tue, 28 Aug 2018 19:05:30 +0200 Subject: [PATCH] fix default baseURL for gitlab connector --- Documentation/connectors/gitlab.md | 4 ++-- connector/gitlab/gitlab.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/connectors/gitlab.md b/Documentation/connectors/gitlab.md index fc797e9f..1ca93d50 100644 --- a/Documentation/connectors/gitlab.md +++ b/Documentation/connectors/gitlab.md @@ -20,8 +20,8 @@ connectors: # Required field for connector name. name: GitLab config: - # optional, default = https://www.gitlab.com - baseURL: https://www.gitlab.com + # optional, default = https://gitlab.com + baseURL: https://gitlab.com # Credentials can be string literals or pulled from the environment. clientID: $GITLAB_APPLICATION_ID clientSecret: $GITLAB_CLIENT_SECRET diff --git a/connector/gitlab/gitlab.go b/connector/gitlab/gitlab.go index f6cbbf09..66b17495 100644 --- a/connector/gitlab/gitlab.go +++ b/connector/gitlab/gitlab.go @@ -53,7 +53,7 @@ type gitlabGroup struct { // Open returns a strategy for logging in through GitLab. func (c *Config) Open(id string, logger logrus.FieldLogger) (connector.Connector, error) { if c.BaseURL == "" { - c.BaseURL = "https://www.gitlab.com" + c.BaseURL = "https://gitlab.com" } return &gitlabConnector{ baseURL: c.BaseURL,