Skip to content

Commit

Permalink
Fix api to return only releases
Browse files Browse the repository at this point in the history
  • Loading branch information
lafriks committed Sep 16, 2017
1 parent 7a4e467 commit 8b78ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8b78ce7

Please sign in to comment.