Merge pull request 'fix: correct Discord webhook JSON for issue events' (#5492) from kidsan/forgejo:discord-api-conformance into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5492 Reviewed-by: Otto <otto@codeberg.org>
This commit is contained in:
commit
ca2c850122
6 changed files with 98 additions and 15 deletions
|
@ -172,6 +172,7 @@ func TestWebhookForms(t *testing.T) {
|
|||
}))
|
||||
|
||||
t.Run("discord/required", testWebhookForms("discord", session, map[string]string{
|
||||
"username": "john",
|
||||
"payload_url": "https://discord.example.com",
|
||||
}))
|
||||
t.Run("discord/optional", testWebhookForms("discord", session, map[string]string{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue