Fix missing branch in release bug (#3108)

This commit is contained in:
Ethan Koenig 2017-12-07 21:22:02 -08:00 committed by Lunny Xiao
parent 68179dc676
commit 596308f213
3 changed files with 72 additions and 0 deletions

View file

@ -191,6 +191,7 @@ func NewReleasePost(ctx *context.Context, form auth.NewReleaseForm) {
rel.Title = form.Title
rel.Note = form.Content
rel.Target = form.Target
rel.IsDraft = len(form.Draft) > 0
rel.IsPrerelease = form.Prerelease
rel.PublisherID = ctx.User.ID