diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-05-18 18:45:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-18 10:45:25 +0000 |
commit | 09ab64dfad6754d88c7e4da15789bf845b19c30f (patch) | |
tree | f70f2344f00b4ce4e0d700bfa2f04d5c37256eb0 /models/issues/pull_list.go | |
parent | 76138ca5a98f6f8b949eb6a5a53466a942ae4fae (diff) | |
download | gitea-09ab64dfad6754d88c7e4da15789bf845b19c30f.tar.gz gitea-09ab64dfad6754d88c7e4da15789bf845b19c30f.zip |
Remove duplicated issues options and some more refactors (#24787)
This PR
- [x] Move some code from `issue.go` to `issue_search.go` and
`issue_update.go`
- [x] Use `IssuesOptions` instead of `IssueStatsOptions` becuase they
are too similiar.
- [x] Rename some functions
Diffstat (limited to 'models/issues/pull_list.go')
-rw-r--r-- | models/issues/pull_list.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issues/pull_list.go b/models/issues/pull_list.go index f2adac0701..c443928344 100644 --- a/models/issues/pull_list.go +++ b/models/issues/pull_list.go @@ -141,7 +141,7 @@ func PullRequests(baseRepoID int64, opts *PullRequestsOptions) ([]*PullRequest, } findSession, err := listPullRequestStatement(baseRepoID, opts) - sortIssuesSession(findSession, opts.SortType, 0) + applySorts(findSession, opts.SortType, 0) if err != nil { log.Error("listPullRequestStatement: %v", err) return nil, maxResults, err |