aboutsummaryrefslogtreecommitdiffstats
path: root/models/issues/pull_list.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-05-18 18:45:25 +0800
committerGitHub <noreply@github.com>2023-05-18 10:45:25 +0000
commit09ab64dfad6754d88c7e4da15789bf845b19c30f (patch)
treef70f2344f00b4ce4e0d700bfa2f04d5c37256eb0 /models/issues/pull_list.go
parent76138ca5a98f6f8b949eb6a5a53466a942ae4fae (diff)
downloadgitea-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.go2
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