Skip to content

Commit b2caa10

Browse files
author
chhsia0
committed
Supported Repository.Link in Gitea.
1 parent 6853a77 commit b2caa10

17 files changed

+17
-16
lines changed

scm/driver/gitea/repo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ func convertRepository(src *repository) *scm.Repository {
189189
Private: src.Private,
190190
Clone: src.CloneURL,
191191
CloneSSH: src.SSHURL,
192+
Link: src.HTMLURL,
192193
}
193194
}
194195

scm/driver/gitea/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": "https://try.gitea.io/go-gitea/gitea.git",
1313
"CloneSSH": "[email protected]:go-gitea/gitea.git",
14-
"Link": "",
14+
"Link": "https://try.gitea.io/go-gitea/gitea",
1515
"Created": "0001-01-01T00:00:00Z",
1616
"Updated": "0001-01-01T00:00:00Z"
1717
}

scm/driver/gitea/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": "https://try.gitea.io/go-gitea/gitea.git",
1414
"CloneSSH": "[email protected]:go-gitea/gitea.git",
15-
"Link": "",
15+
"Link": "https://try.gitea.io/go-gitea/gitea",
1616
"Created": "0001-01-01T00:00:00Z",
1717
"Updated": "0001-01-01T00:00:00Z"
1818
}

scm/driver/gitea/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.gitea.io/gogits/hello-world.git",
1414
"CloneSSH": "git@localhost:gogits/hello-world.git",
15-
"Link": "",
15+
"Link": "http://try.gitea.io/gogits/hello-world",
1616
"Created": "0001-01-01T00:00:00Z",
1717
"Updated": "0001-01-01T00:00:00Z"
1818
},

scm/driver/gitea/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.gitea.io/gogits/hello-world.git",
1414
"CloneSSH": "git@localhost:gogits/hello-world.git",
15-
"Link": "",
15+
"Link": "http://try.gitea.io/gogits/hello-world",
1616
"Created": "0001-01-01T00:00:00Z",
1717
"Updated": "0001-01-01T00:00:00Z"
1818
},

scm/driver/gitea/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.gitea.io/gogits/hello-world.git",
1111
"CloneSSH": "git@localhost:gogits/hello-world.git",
12-
"Link": "",
12+
"Link": "http://try.gitea.io/gogits/hello-world",
1313
"Created": "0001-01-01T00:00:00Z",
1414
"Updated": "0001-01-01T00:00:00Z"
1515
},

scm/driver/gitea/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.gitea.io/gogits/hello-world.git",
1111
"CloneSSH": "git@localhost:gogits/hello-world.git",
12-
"Link": "",
12+
"Link": "http://try.gitea.io/gogits/hello-world",
1313
"Created": "0001-01-01T00:00:00Z",
1414
"Updated": "0001-01-01T00:00:00Z"
1515
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"Private": false,
1414
"Clone": "https://try.gitea.io/jcitizen/my-repo.git",
1515
"CloneSSH": "[email protected]:jcitizen/my-repo.git",
16-
"Link": "",
16+
"Link": "https://try.gitea.io/jcitizen/my-repo",
1717
"Created": "0001-01-01T00:00:00Z",
1818
"Updated": "0001-01-01T00:00:00Z"
1919
},

scm/driver/gitea/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.gitea.io/gogits/hello-world.git",
1111
"CloneSSH": "git@localhost:gogits/hello-world.git",
12-
"Link": "",
12+
"Link": "http://try.gitea.io/gogits/hello-world",
1313
"Created": "0001-01-01T00:00:00Z",
1414
"Updated": "0001-01-01T00:00:00Z"
1515
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"Private": false,
1414
"Clone": "https://try.gitea.io/jcitizen/my-repo.git",
1515
"CloneSSH": "[email protected]:jcitizen/my-repo.git",
16-
"Link": "",
16+
"Link": "https://try.gitea.io/jcitizen/my-repo",
1717
"Created": "0001-01-01T00:00:00Z",
1818
"Updated": "0001-01-01T00:00:00Z"
1919
},

0 commit comments

Comments
 (0)