aboutsummaryrefslogtreecommitdiffstats
path: root/services/webhook/slack_test.go
diff options
context:
space:
mode:
authorYehonatan Ezron <37303618+jonatan5524@users.noreply.github.com>2022-05-28 23:44:51 +0300
committerGitHub <noreply@github.com>2022-05-28 16:44:51 -0400
commitf2439b7e4c47de018e1678ceaa434e4b3d734a83 (patch)
tree6188e2814a7131b407d1f3efb2e3bde97c70a149 /services/webhook/slack_test.go
parent65e0688a5c9dacad50e71024b7529fdf0e3c2e9c (diff)
downloadgitea-f2439b7e4c47de018e1678ceaa434e4b3d734a83.tar.gz
gitea-f2439b7e4c47de018e1678ceaa434e4b3d734a83.zip
fix(telegram): fix link bot to release tag (#19830)
* fix(telegram): fix link bot to release tag * test(webhook): fix matrixPayload Release * test(webhook): fix TestTelegramPayload Release
Diffstat (limited to 'services/webhook/slack_test.go')
-rw-r--r--services/webhook/slack_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/webhook/slack_test.go b/services/webhook/slack_test.go
index 1fa7777328..8278afb69a 100644
--- a/services/webhook/slack_test.go
+++ b/services/webhook/slack_test.go
@@ -154,7 +154,7 @@ func TestSlackPayload(t *testing.T) {
require.NotNil(t, pl)
require.IsType(t, &SlackPayload{}, pl)
- assert.Equal(t, "[<http://localhost:3000/test/repo|test/repo>] Release created: <http://localhost:3000/test/repo/src/v1.0|v1.0> by <https://try.gitea.io/user1|user1>", pl.(*SlackPayload).Text)
+ assert.Equal(t, "[<http://localhost:3000/test/repo|test/repo>] Release created: <http://localhost:3000/test/repo/releases/tag/v1.0|v1.0> by <https://try.gitea.io/user1|user1>", pl.(*SlackPayload).Text)
})
}