webhook: add missing `%s` URL value for webhook description (#6478)

Co-authored-by: Joe Chen <jc@unknwon.io>
pull/6893/head
Renzo Toma 2022-04-04 11:40:34 +02:00 committed by GitHub
parent 5c4db08968
commit efa572162f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ func Webhooks(c *context.Context, orCtx *orgRepoContext) {
var err error
var ws []*db.Webhook
if orCtx.RepoID > 0 {
c.Data["Description"] = c.Tr("repo.settings.hooks_desc")
c.Data["Description"] = c.Tr("repo.settings.hooks_desc", "https://gogs.io/docs/features/webhook.html")
ws, err = db.GetWebhooksByRepoID(orCtx.RepoID)
} else {
c.Data["Description"] = c.Tr("org.settings.hooks_desc")