mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	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
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user