mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-07-27 17:28:34 +00:00
[v11.0/forgejo] fix(api): document is_system_webhook
field (#7786)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/7784 - Document that `is_system_webhook` field is accepted for the `POST /admin/hooks` endpoint. Co-authored-by: Gusted <postmaster@gusted.xyz> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7786 Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org> Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
This commit is contained in:
parent
4a30f59e6e
commit
a4cb898335
2 changed files with 6 additions and 1 deletions
|
@ -53,7 +53,8 @@ type CreateHookOption struct {
|
|||
BranchFilter string `json:"branch_filter" binding:"GlobPattern"`
|
||||
AuthorizationHeader string `json:"authorization_header"`
|
||||
// default: false
|
||||
Active bool `json:"active"`
|
||||
Active bool `json:"active"`
|
||||
IsSystemWebhook bool `json:"is_system_webhook"`
|
||||
}
|
||||
|
||||
// EditHookOption options when modify one hook
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue