diff options
author | John Olheiser <john.olheiser@gmail.com> | 2023-09-21 17:55:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 17:55:09 -0500 |
commit | 7520cd678c3ef037db702296192d8664b6f02a54 (patch) | |
tree | 2107f266844529d3a24c055a4f5a5f0db775c687 /services/webhook/dingtalk_test.go | |
parent | 1f026bcb7eecad0b98d65089bb7fe5986b337d7d (diff) | |
download | gitea-7520cd678c3ef037db702296192d8664b6f02a54.tar.gz gitea-7520cd678c3ef037db702296192d8664b6f02a54.zip |
Fix release URL in webhooks (#27182)
Diffstat (limited to 'services/webhook/dingtalk_test.go')
-rw-r--r-- | services/webhook/dingtalk_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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)) }) } |