mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 06:34:36 -04:00
fix: improve discord webhook api conformance
This commit corrects some cases in the discord webhook payload that do not align with the discord documentation
This commit is contained in:
parent
cf3ebab4ba
commit
6ea6f224b8
5 changed files with 76 additions and 13 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