mirror of
https://codeberg.org/crowci/crow.git
synced 2025-09-12 01:51:01 +03:00
Clean up models (#3228)
This commit is contained in:
@@ -212,7 +212,6 @@ func Test_helper(t *testing.T) {
|
||||
g.Assert(pipeline.Branch).Equal(*from.PullRequest.Base.Ref)
|
||||
g.Assert(pipeline.Ref).Equal("refs/pull/42/merge")
|
||||
g.Assert(pipeline.Refspec).Equal("changes:main")
|
||||
g.Assert(pipeline.CloneURL).Equal("https://github.com/octocat/hello-world-fork")
|
||||
g.Assert(pipeline.Commit).Equal(*from.PullRequest.Head.SHA)
|
||||
g.Assert(pipeline.Message).Equal(*from.PullRequest.Title)
|
||||
g.Assert(pipeline.Title).Equal(*from.PullRequest.Title)
|
||||
@@ -264,7 +263,6 @@ func Test_helper(t *testing.T) {
|
||||
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)
|
||||
g.Assert(pipeline.CloneURL).Equal(*from.Repo.CloneURL)
|
||||
})
|
||||
|
||||
g.It("should convert a tag from webhook", func() {
|
||||
|
Reference in New Issue
Block a user