Skip to content

Commit ffabfcf

Browse files
author
chhsia0
committed
Supported Repository.Link in GitLab.
1 parent ee0770c commit ffabfcf

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

scm/driver/gitlab/repo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ func convertRepository(from *repository) *scm.Repository {
179179
Private: convertPrivate(from.Visibility),
180180
Clone: from.HTTPURL,
181181
CloneSSH: from.SSHURL,
182+
Link: from.WebURL,
182183
Perm: &scm.Perm{
183184
Pull: true,
184185
Push: canPush(from),

scm/driver/gitlab/testdata/repo.json.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"Private": false,
1212
"Clone": "https://gitlab.com/diaspora/diaspora.git",
1313
"CloneSSH": "[email protected]:diaspora/diaspora.git",
14-
"Link": "",
14+
"Link": "https://gitlab.com/diaspora/diaspora",
1515
"Created": "0001-01-01T00:00:00Z",
1616
"Updated": "0001-01-01T00:00:00Z"
1717
}

scm/driver/gitlab/testdata/repos.json.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"Private": false,
1313
"Clone": "https://gitlab.com/diaspora/diaspora.git",
1414
"CloneSSH": "[email protected]:diaspora/diaspora.git",
15-
"Link": "",
15+
"Link": "https://gitlab.com/diaspora/diaspora",
1616
"Created": "0001-01-01T00:00:00Z",
1717
"Updated": "0001-01-01T00:00:00Z"
1818
}

scm/driver/gitlab/testdata/subgroup.json.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"Private": false,
1212
"Clone": "https://gitlab.com/gitlab-org/gitter/gitter-demo-app.git",
1313
"CloneSSH": "[email protected]:gitlab-org/gitter/gitter-demo-app.git",
14-
"Link": "",
14+
"Link": "https://gitlab.com/gitlab-org/gitter/gitter-demo-app",
1515
"Created": "0001-01-01T00:00:00Z",
1616
"Updated": "0001-01-01T00:00:00Z"
1717
}

0 commit comments

Comments
 (0)