aboutsummaryrefslogtreecommitdiff
path: root/modules/form/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-24 15:35:20 -0500
committerUnknwon <u@gogs.io>2017-02-27 22:47:21 -0500
commitf0086e66aef31573c7f00e0c3cd7725fb6d65f5c (patch)
tree865fd5787c6f714add7be9da1e8cf19d4bc887cc /modules/form/repo.go
parent7fe13e72d8f8c0e61abbc4068ecb965347fe0331 (diff)
webhook: able to detect delete branch or tag (#2315)
Diffstat (limited to 'modules/form/repo.go')
-rw-r--r--modules/form/repo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/form/repo.go b/modules/form/repo.go
index 0f3e83ce..df5ca49a 100644
--- a/modules/form/repo.go
+++ b/modules/form/repo.go
@@ -135,6 +135,7 @@ func (f *ProtectBranch) Validate(ctx *macaron.Context, errs binding.Errors) bind
type Webhook struct {
Events string
Create bool
+ Delete bool
Push bool
PullRequest bool
Active bool