Paginate releases page & set default page size to 10 (#16857)

* Add release default page and set it to 10

* use limit

Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
Lunny Xiao
2021-08-30 00:25:16 +08:00
committed by GitHub
parent f5b0e2c9d2
commit d985d4bc2f
5 changed files with 21 additions and 5 deletions

View File

@ -87,7 +87,8 @@ var (
} `ini:"repository.issue"`
Release struct {
AllowedTypes string
AllowedTypes string
DefaultPagingNum int
} `ini:"repository.release"`
Signing struct {
@ -223,9 +224,11 @@ var (
},
Release: struct {
AllowedTypes string
AllowedTypes string
DefaultPagingNum int
}{
AllowedTypes: "",
AllowedTypes: "",
DefaultPagingNum: 10,
},
// Signing settings