diff options
author | Yarden Shoham <git@yardenshoham.com> | 2023-08-21 14:43:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-21 11:43:52 +0000 |
commit | 16dee4f1b251eec933a6c32520dc0e285a3d6f42 (patch) | |
tree | 940bcd14ee2892b6e45fe6c0f601c6ab5c82336f /modules/structs/hook.go | |
parent | facdaee47b49f163e6927cc021eace18940ad441 (diff) | |
download | gitea-16dee4f1b251eec933a6c32520dc0e285a3d6f42.tar.gz gitea-16dee4f1b251eec933a6c32520dc0e285a3d6f42.zip |
Add `branch_filter` to hooks API endpoints (#26599)
We now include the branch filler in the response.
- Closes #26591
# Before

# After

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'modules/structs/hook.go')
-rw-r--r-- | modules/structs/hook.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/structs/hook.go b/modules/structs/hook.go index cd91d4bc46..0babe84410 100644 --- a/modules/structs/hook.go +++ b/modules/structs/hook.go @@ -19,6 +19,7 @@ var ErrInvalidReceiveHook = errors.New("Invalid JSON payload received over webho type Hook struct { ID int64 `json:"id"` Type string `json:"type"` + BranchFilter string `json:"branch_filter"` URL string `json:"-"` Config map[string]string `json:"config"` Events []string `json:"events"` |