webhook: add fork event

This commit is contained in:
Unknwon
2017-02-25 03:35:26 -05:00
parent beea014343
commit b06f299748
19 changed files with 218 additions and 128 deletions

View File

@@ -23,7 +23,7 @@ import (
// \/ \/ \/ \/ \/ \/ \/
type CreateRepo struct {
Uid int64 `binding:"Required"`
UserID int64 `binding:"Required"`
RepoName string `binding:"Required;AlphaDashDot;MaxSize(100)"`
Private bool
Description string `binding:"MaxSize(255)"`
@@ -136,6 +136,7 @@ type Webhook struct {
Events string
Create bool
Delete bool
Fork bool
Push bool
PullRequest bool
Active bool