Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance pipeline message and pr title #3421

Closed
wants to merge 37 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
9b85108
Update pipeline list UI
anbraten Jan 30, 2024
79df566
Merge remote-tracking branch 'upstream/main' into update-pipeline-list
anbraten Feb 10, 2024
9bfd2f3
gitea parse email too
6543 Feb 21, 2024
d07b161
example how tests should be
6543 Feb 21, 2024
fb627db
fix similar bugs
6543 Feb 22, 2024
0cf1fb6
tests tests tests
6543 Feb 22, 2024
9a9231b
Merge branch 'main' into gitea-parse-mail-too
6543 Feb 22, 2024
55441bf
move old tests to new tests
6543 Feb 22, 2024
2b4e136
tags dont have branch info
6543 Feb 22, 2024
7165ef5
extend tests and finish migration
6543 Feb 22, 2024
c691b31
fix
6543 Feb 22, 2024
7db9650
actually differ between title and message and use it propperly
6543 Feb 22, 2024
d1f49c0
refactor
6543 Feb 22, 2024
7f23b07
update tests etc...
6543 Feb 22, 2024
f25b7b0
fix test
6543 Feb 22, 2024
ada1819
dont forget the gitlab
6543 Feb 22, 2024
3812c62
bitbucket
6543 Feb 22, 2024
b0d5168
Merge branch 'main' into actually-use-title
6543 Feb 22, 2024
114ba6a
Merge branch 'main' into actually-use-title
6543 Feb 22, 2024
59086fe
Merge branch 'main' into actually-use-title
6543 Feb 23, 2024
9df94d8
Merge branch 'main' into actually-use-title2
6543 Jun 3, 2024
7344a90
Merge remote-tracking branch 'upstream/main' into update-pipeline-list
anbraten Jun 24, 2024
36cf5af
adjust pipeline item
anbraten Jun 25, 2024
a0960bb
Merge branch 'update-pipeline-list' into pr/6543/3421-1
anbraten Jun 25, 2024
f89f4e8
Merge branch 'main' into actually-use-title
anbraten Jun 25, 2024
ba83f48
Merge branch 'main' into actually-use-title
6543 Jun 26, 2024
acc52fc
Merge remote-tracking branch 'upstream/main' into pr/6543/3421
anbraten Jul 2, 2024
756f9ea
Merge branch 'actually-use-title' of github.com:6543-forks/woodpecker…
anbraten Jul 2, 2024
39d5350
adjust pipeline message and title
anbraten Jul 2, 2024
87946fa
adjust ui text
anbraten Jul 2, 2024
651663c
adjust to proper values
anbraten Jul 2, 2024
fbc586e
Merge branch 'main' into actually-use-title
6543 Jul 2, 2024
020aa18
Merge remote-tracking branch 'upstream/main' into pr/6543/3421
anbraten Jul 13, 2024
6c12da1
Merge branch 'actually-use-title' of github.com:6543-forks/woodpecker…
anbraten Jul 13, 2024
168b1eb
Merge remote-tracking branch 'upstream/main' into pr/6543/3421
anbraten Jul 13, 2024
5f9c57c
Merge branch 'main' into actually-use-title
qwerty287 Jul 15, 2024
c6a8677
Merge branch 'main' into actually-use-title
6543 Nov 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix test
6543 committed Feb 22, 2024
commit f25b7b0c7e97f36221986837129b5f60f8fd1bb4
7 changes: 4 additions & 3 deletions server/forge/gitea/helper_test.go
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ import (
"go.woodpecker-ci.org/woodpecker/v2/shared/utils"
)

func Test_parse(t *testing.T) {
func TestGiteaHelper(t *testing.T) {
g := goblin.Goblin(t)
g.Describe("Gitea", func() {
g.It("Should parse push hook payload", func() {
@@ -126,7 +126,7 @@ func Test_parse(t *testing.T) {
g.Assert(pipeline.Ref).Equal("refs/tags/v1.0.0")
g.Assert(pipeline.Branch).Equal("")
g.Assert(pipeline.ForgeURL).Equal("http://gitea.golang.org/gordon/hello-world/src/tag/v1.0.0")
g.Assert(pipeline.Message).Equal("created tag v1.0.0")
g.Assert(pipeline.Title).Equal("created tag v1.0.0")
})

g.It("Should return a Pipeline struct from a pull_request hook", func() {
@@ -139,7 +139,8 @@ func Test_parse(t *testing.T) {
g.Assert(pipeline.ForgeURL).Equal("http://gitea.golang.org/gordon/hello-world/pull/1")
g.Assert(pipeline.Branch).Equal("main")
g.Assert(pipeline.Refspec).Equal("feature/changes:main")
g.Assert(pipeline.Message).Equal(hook.PullRequest.Title)
g.Assert(pipeline.Title).Equal("Update the README with new information")
g.Assert(pipeline.Message).Equal("please merge")
g.Assert(pipeline.Avatar).Equal("http://1.gravatar.com/avatar/8c58a0be77ee441bb8f8595b7f1b4e87")
g.Assert(pipeline.Author).Equal(hook.PullRequest.Poster.UserName)
})