Skip to content

Commit 320e342

Browse files
committed
add IncludeDrafts and IncludeTags options
1 parent 57ecb99 commit 320e342

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

models/repo/release.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,9 @@ func GetTagNamesByRepoID(ctx context.Context, repoID int64) ([]string, error) {
259259
ListAll: true,
260260
}
261261
opts := FindReleasesOptions{
262-
ListOptions: listOptions,
262+
ListOptions: listOptions,
263+
IncludeDrafts: true,
264+
IncludeTags: true,
263265
}
264266

265267
tags := make([]string, 0)

0 commit comments

Comments
 (0)