Fix missing branch in release bug (#3108) (#3117)

This commit is contained in:
Ethan Koenig 2017-12-08 00:01:46 -08:00 committed by Lunny Xiao
parent 84352316a9
commit 8f7054a864

View File

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