Add webhook name field to improve webhook identification (#37025) (#37040)

Add an optional Name field to webhooks so users can give them
human-readable labels instead of relying only on URLs. The webhook
overview page now displays names when available, or falls back to the
URL for unnamed webhooks.

Fixes #37025

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Nicolas
2026-04-01 03:56:20 +02:00
committed by GitHub
parent 0df3213766
commit 35b654c9d6
13 changed files with 110 additions and 1 deletions

View File

@@ -23463,6 +23463,11 @@
},
"x-go-name": "Events"
},
"name": {
"description": "Optional human-readable name for the webhook",
"type": "string",
"x-go-name": "Name"
},
"type": {
"type": "string",
"enum": [
@@ -24729,6 +24734,11 @@
"type": "string"
},
"x-go-name": "Events"
},
"name": {
"description": "Optional human-readable name",
"type": "string",
"x-go-name": "Name"
}
},
"x-go-package": "code.gitea.io/gitea/modules/structs"
@@ -26149,6 +26159,11 @@
"format": "int64",
"x-go-name": "ID"
},
"name": {
"description": "Optional human-readable name for the webhook",
"type": "string",
"x-go-name": "Name"
},
"type": {
"description": "The type of the webhook (e.g., gitea, slack, discord)",
"type": "string",