You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-11-23 21:44:44 +02:00
Rename link to url (#2812)
As of https://woodpecker-ci.org/docs/next/usage/terminiology#conventions
This commit is contained in:
@@ -118,7 +118,7 @@ func Test_helper(t *testing.T) {
|
||||
g.Assert(string(to.SCMKind)).Equal("git")
|
||||
g.Assert(to.IsSCMPrivate).IsTrue()
|
||||
g.Assert(to.Clone).Equal("https://github.com/octocat/hello-world.git")
|
||||
g.Assert(to.Link).Equal("https://github.com/octocat/hello-world")
|
||||
g.Assert(to.ForgeURL).Equal("https://github.com/octocat/hello-world")
|
||||
})
|
||||
|
||||
g.It("should convert repository permissions", func() {
|
||||
@@ -174,7 +174,7 @@ func Test_helper(t *testing.T) {
|
||||
g.Assert(repo.Name).Equal(*from.Name)
|
||||
g.Assert(repo.FullName).Equal(*from.FullName)
|
||||
g.Assert(repo.IsSCMPrivate).Equal(*from.Private)
|
||||
g.Assert(repo.Link).Equal(*from.HTMLURL)
|
||||
g.Assert(repo.ForgeURL).Equal(*from.HTMLURL)
|
||||
g.Assert(repo.Clone).Equal(*from.CloneURL)
|
||||
g.Assert(repo.Branch).Equal(*from.DefaultBranch)
|
||||
})
|
||||
@@ -239,7 +239,7 @@ func Test_helper(t *testing.T) {
|
||||
g.Assert(pipeline.Ref).Equal("refs/heads/main")
|
||||
g.Assert(pipeline.Commit).Equal(*from.Deployment.SHA)
|
||||
g.Assert(pipeline.Message).Equal(*from.Deployment.Description)
|
||||
g.Assert(pipeline.Link).Equal(*from.Deployment.URL)
|
||||
g.Assert(pipeline.ForgeURL).Equal(*from.Deployment.URL)
|
||||
g.Assert(pipeline.Author).Equal(*from.Sender.Login)
|
||||
g.Assert(pipeline.Avatar).Equal(*from.Sender.AvatarURL)
|
||||
})
|
||||
@@ -262,7 +262,7 @@ func Test_helper(t *testing.T) {
|
||||
g.Assert(pipeline.Ref).Equal("refs/heads/main")
|
||||
g.Assert(pipeline.Commit).Equal(*from.HeadCommit.ID)
|
||||
g.Assert(pipeline.Message).Equal(*from.HeadCommit.Message)
|
||||
g.Assert(pipeline.Link).Equal(*from.HeadCommit.URL)
|
||||
g.Assert(pipeline.ForgeURL).Equal(*from.HeadCommit.URL)
|
||||
g.Assert(pipeline.Author).Equal(*from.Sender.Login)
|
||||
g.Assert(pipeline.Avatar).Equal(*from.Sender.AvatarURL)
|
||||
g.Assert(pipeline.Email).Equal(*from.HeadCommit.Author.Email)
|
||||
|
||||
Reference in New Issue
Block a user