diff options
author | Unknwon <u@gogs.io> | 2017-02-25 03:35:26 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-27 22:48:18 -0500 |
commit | b06f2997489d58cc5a4375044e378c0565ea09d4 (patch) | |
tree | fd02710adc4ed574fe28aa173b2f02ac68bd6568 /modules/form/repo.go | |
parent | beea014343251fc9f379f996553c0b8030723464 (diff) |
webhook: add fork event
Diffstat (limited to 'modules/form/repo.go')
-rw-r--r-- | modules/form/repo.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/form/repo.go b/modules/form/repo.go index df5ca49a..72acbaf8 100644 --- a/modules/form/repo.go +++ b/modules/form/repo.go @@ -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 |