webhook: able to detect delete branch or tag (#2315)

This commit is contained in:
Unknwon
2017-02-24 15:35:20 -05:00
parent 7fe13e72d8
commit f0086e66ae
13 changed files with 207 additions and 87 deletions

View File

@@ -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