Skip to content

Commit bd5fdc5

Browse files
author
chhsia0
committed
Supported Repository.Link in Gogs.
1 parent b2caa10 commit bd5fdc5

15 files changed

+15
-14
lines changed

scm/driver/gogs/repo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ func convertRepository(src *repository) *scm.Repository {
150150
Private: src.Private,
151151
Clone: src.CloneURL,
152152
CloneSSH: src.SSHURL,
153+
Link: src.HTMLURL,
153154
}
154155
}
155156

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"Private": true,
1212
"Clone": "http://gogs.io/drone/cover.git",
1313
"CloneSSH": "git@localhost:drone/cover.git",
14-
"Link": "",
14+
"Link": "http://gogs.io/drone/cover",
1515
"Created": "0001-01-01T00:00:00Z",
1616
"Updated": "0001-01-01T00:00:00Z"
1717
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"Private": true,
1313
"Clone": "http://gogs.io/drone/cover.git",
1414
"CloneSSH": "git@localhost:drone/cover.git",
15-
"Link": "",
15+
"Link": "http://gogs.io/drone/cover",
1616
"Created": "0001-01-01T00:00:00Z",
1717
"Updated": "0001-01-01T00:00:00Z"
1818
}

scm/driver/gogs/testdata/webhooks/branch_create.json.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"Private": true,
1313
"Clone": "http://try.gogs.io/gogits/hello-world.git",
1414
"CloneSSH": "git@localhost:gogits/hello-world.git",
15-
"Link": "",
15+
"Link": "http://try.gogs.io/gogits/hello-world",
1616
"Created": "0001-01-01T00:00:00Z",
1717
"Updated": "0001-01-01T00:00:00Z"
1818
},

scm/driver/gogs/testdata/webhooks/branch_delete.json.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"Private": true,
1313
"Clone": "http://try.gogs.io/gogits/hello-world.git",
1414
"CloneSSH": "git@localhost:gogits/hello-world.git",
15-
"Link": "",
15+
"Link": "http://try.gogs.io/gogits/hello-world",
1616
"Created": "0001-01-01T00:00:00Z",
1717
"Updated": "0001-01-01T00:00:00Z"
1818
},

scm/driver/gogs/testdata/webhooks/issue_comment_created.json.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"Private": true,
1010
"Clone": "http://try.gogs.io/gogits/hello-world.git",
1111
"CloneSSH": "git@localhost:gogits/hello-world.git",
12-
"Link": "",
12+
"Link": "http://try.gogs.io/gogits/hello-world",
1313
"Created": "0001-01-01T00:00:00Z",
1414
"Updated": "0001-01-01T00:00:00Z"
1515
},

scm/driver/gogs/testdata/webhooks/issues_opened.json.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"Private": true,
1010
"Clone": "http://try.gogs.io/gogits/hello-world.git",
1111
"CloneSSH": "git@localhost:gogits/hello-world.git",
12-
"Link": "",
12+
"Link": "http://try.gogs.io/gogits/hello-world",
1313
"Created": "0001-01-01T00:00:00Z",
1414
"Updated": "0001-01-01T00:00:00Z"
1515
},

scm/driver/gogs/testdata/webhooks/pull_request_closed.json.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"Private": true,
1010
"Clone": "http://try.gogs.io/gogits/hello-world.git",
1111
"CloneSSH": "git@localhost:gogits/hello-world.git",
12-
"Link": "",
12+
"Link": "http://try.gogs.io/gogits/hello-world",
1313
"Created": "0001-01-01T00:00:00Z",
1414
"Updated": "0001-01-01T00:00:00Z"
1515
},

scm/driver/gogs/testdata/webhooks/pull_request_comment_created.json.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"Private": true,
1010
"Clone": "http://try.gogs.io/gogits/hello-world.git",
1111
"CloneSSH": "git@localhost:gogits/hello-world.git",
12-
"Link": "",
12+
"Link": "http://try.gogs.io/gogits/hello-world",
1313
"Created": "0001-01-01T00:00:00Z",
1414
"Updated": "0001-01-01T00:00:00Z"
1515
},

scm/driver/gogs/testdata/webhooks/pull_request_edited.json.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"Private": true,
1010
"Clone": "http://try.gogs.io/gogits/hello-world.git",
1111
"CloneSSH": "git@localhost:gogits/hello-world.git",
12-
"Link": "",
12+
"Link": "http://try.gogs.io/gogits/hello-world",
1313
"Created": "0001-01-01T00:00:00Z",
1414
"Updated": "0001-01-01T00:00:00Z"
1515
},

0 commit comments

Comments
 (0)