From 8b78ce7259e423e0d65b5c37f07967fba7ca94c7 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Fri, 8 Sep 2017 08:38:58 +0300 Subject: [PATCH] Fix api to return only releases --- models/release.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/release.go b/models/release.go index aae1f5a64ec35..39c86d54bf441 100644 --- a/models/release.go +++ b/models/release.go @@ -249,7 +249,7 @@ func (opts *FindReleasesOptions) toConds(repoID int64) builder.Cond { cond = cond.And(builder.Eq{"is_draft": false}) } if !opts.IncludeTags { - cond = cond.And(builder.Eq{"is_release": false}) + cond = cond.And(builder.Eq{"is_tag": false}) } if len(opts.TagNames) > 0 { cond = cond.And(builder.In("tag_name", opts.TagNames))