Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
dex
Commits
5454a472
Commit
5454a472
authored
Aug 28, 2018
by
Anian Z
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix default baseURL for gitlab connector
parent
036e5d05
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
gitlab.md
Documentation/connectors/gitlab.md
+2
-2
gitlab.go
connector/gitlab/gitlab.go
+1
-1
No files found.
Documentation/connectors/gitlab.md
View file @
5454a472
...
...
@@ -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
...
...
connector/gitlab/gitlab.go
View file @
5454a472
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment