Skip to content

Commit 0aab2d3

Browse files

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

routers/api/v1/repo/release.go

-8
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,6 @@ func ListReleases(ctx *context.APIContext) {
133133
// in: query
134134
// description: filter (exclude / include) pre-releases
135135
// type: boolean
136-
// - name: per_page
137-
// in: query
138-
// description: page size of results, deprecated - use limit
139-
// type: integer
140-
// deprecated: true
141136
// - name: page
142137
// in: query
143138
// description: page number of results to return (1-based)
@@ -152,9 +147,6 @@ func ListReleases(ctx *context.APIContext) {
152147
// "404":
153148
// "$ref": "#/responses/notFound"
154149
listOptions := utils.GetListOptions(ctx)
155-
if listOptions.PageSize == 0 && ctx.FormInt("per_page") != 0 {
156-
listOptions.PageSize = ctx.FormInt("per_page")
157-
}
158150

159151
opts := repo_model.FindReleasesOptions{
160152
ListOptions: listOptions,

templates/swagger/v1_json.tmpl

-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)