mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-08 07:49:50 +02:00
Add sort option recentclose for issues and pulls (#34525)
closes #34171 Adds a new sort option `recentclose` for issues and pull requests which will return items in a descending order of when they were closed
This commit is contained in:
1 parent
11ee7ff3bf
commit
50d9565088
5 files changed
+48
-2
No files matched your search
@@ -152,7 +152,8 @@ func PullRequests(ctx context.Context, baseRepoID int64, opts *PullRequestsOptio
|
||||
applySorts(findSession, opts.SortType, 0)
|
||||
findSession = db.SetSessionPagination(findSession, opts)
|
||||
prs := make([]*PullRequest, 0, opts.PageSize)
|
||||
return prs, maxResults, findSession.Find(&prs)
|
||||
found := findSession.Find(&prs)
|
||||
return prs, maxResults, found
|
||||
}
|
||||
|
||||
// PullRequestList defines a list of pull requests
|
||||
|
||||
Reference in new issue
Block a user