1
0
Fork 0
forked from forgejo/forgejo

Add support for invalidating comments

Signed-off-by: Jonas Franz <info@jonasfranz.software>
This commit is contained in:
Jonas Franz 2018-05-13 13:24:19 +02:00
parent 066086c390
commit 7986d6ed22
No known key found for this signature in database
GPG key ID: 506AEEBE80BEDECD
7 changed files with 154 additions and 28 deletions

View file

@ -358,12 +358,11 @@ func (f *MergePullRequestForm) Validate(ctx *macaron.Context, errs binding.Error
// CodeCommentForm form for adding code comments for PRs
type CodeCommentForm struct {
Content string `binding:"Required"`
Side string `binding:"Required;In(previous,proposed)"`
Line int64
TreePath string `form:"path" binding:"Required"`
CommitSHA string `form:"commit_id" binding:"Required"`
IsReview bool `form:"is_review"`
Content string `binding:"Required"`
Side string `binding:"Required;In(previous,proposed)"`
Line int64
TreePath string `form:"path" binding:"Required"`
IsReview bool `form:"is_review"`
}
// Validate validates the fields