Skip to content

Commit 8b78ce7

Browse files
committed
Fix api to return only releases
1 parent 7a4e467 commit 8b78ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/release.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ func (opts *FindReleasesOptions) toConds(repoID int64) builder.Cond {
249249
cond = cond.And(builder.Eq{"is_draft": false})
250250
}
251251
if !opts.IncludeTags {
252-
cond = cond.And(builder.Eq{"is_release": false})
252+
cond = cond.And(builder.Eq{"is_tag": false})
253253
}
254254
if len(opts.TagNames) > 0 {
255255
cond = cond.And(builder.In("tag_name", opts.TagNames))

0 commit comments

Comments
 (0)