From 7520cd678c3ef037db702296192d8664b6f02a54 Mon Sep 17 00:00:00 2001 From: John Olheiser Date: Thu, 21 Sep 2023 17:55:09 -0500 Subject: Fix release URL in webhooks (#27182) --- services/webhook/dingtalk_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/webhook/dingtalk_test.go') diff --git a/services/webhook/dingtalk_test.go b/services/webhook/dingtalk_test.go index e3122d2f36..7289c751f3 100644 --- a/services/webhook/dingtalk_test.go +++ b/services/webhook/dingtalk_test.go @@ -238,7 +238,7 @@ func TestDingTalkPayload(t *testing.T) { assert.Equal(t, "[test/repo] Release created: v1.0 by user1", pl.(*DingtalkPayload).ActionCard.Text) assert.Equal(t, "[test/repo] Release created: v1.0 by user1", pl.(*DingtalkPayload).ActionCard.Title) assert.Equal(t, "view release", pl.(*DingtalkPayload).ActionCard.SingleTitle) - assert.Equal(t, "http://localhost:3000/api/v1/repos/test/repo/releases/2", parseRealSingleURL(pl.(*DingtalkPayload).ActionCard.SingleURL)) + assert.Equal(t, "http://localhost:3000/test/repo/releases/tag/v1.0", parseRealSingleURL(pl.(*DingtalkPayload).ActionCard.SingleURL)) }) } -- cgit v1.2.3