mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-19 15:40:50 +00:00
fix(api): document is_system_webhook
field (#7784)
- Document that `is_system_webhook` field is accepted for the `POST /admin/hooks` endpoint. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7784 Reviewed-by: Beowulf <beowulf@beocode.eu> Co-authored-by: Gusted <postmaster@gusted.xyz> Co-committed-by: Gusted <postmaster@gusted.xyz>
This commit is contained in:
parent
2a568f3b82
commit
ed9693f236
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