Skip to content

Commit

Permalink
Remove deprecated query condition in ListReleases (go-gitea#28339)
Browse files Browse the repository at this point in the history
  • Loading branch information
lng2020 authored and silverwind committed Feb 20, 2024
1 parent d0d82d6 commit 1c5b739
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
8 changes: 0 additions & 8 deletions routers/api/v1/repo/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,6 @@ func ListReleases(ctx *context.APIContext) {
// in: query
// description: filter (exclude / include) pre-releases
// type: boolean
// - name: per_page
// in: query
// description: page size of results, deprecated - use limit
// type: integer
// deprecated: true
// - name: page
// in: query
// description: page number of results to return (1-based)
Expand All @@ -152,9 +147,6 @@ func ListReleases(ctx *context.APIContext) {
// "404":
// "$ref": "#/responses/notFound"
listOptions := utils.GetListOptions(ctx)
if listOptions.PageSize == 0 && ctx.FormInt("per_page") != 0 {
listOptions.PageSize = ctx.FormInt("per_page")
}

opts := repo_model.FindReleasesOptions{
ListOptions: listOptions,
Expand Down
6 changes: 0 additions & 6 deletions templates/swagger/v1_json.tmpl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1c5b739

Please sign in to comment.