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/issue_test.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/issue_test.go')
-rw-r--r-- | models/issues/issue_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issues/issue_test.go b/models/issues/issue_test.go index 3a83d8d2b7..5bf2f819be 100644 --- a/models/issues/issue_test.go +++ b/models/issues/issue_test.go @@ -494,7 +494,7 @@ func TestCorrectIssueStats(t *testing.T) { // Now we will call the GetIssueStats with these IDs and if working, // get the correct stats back. - issueStats, err := issues_model.GetIssueStats(&issues_model.IssueStatsOptions{ + issueStats, err := issues_model.GetIssueStats(&issues_model.IssuesOptions{ RepoID: 1, IssueIDs: ids, }) |