]> source.dussan.org Git - gitea.git/commit
Remove duplicated issues options and some more refactors (#24787)
authorLunny Xiao <xiaolunwen@gmail.com>
Thu, 18 May 2023 10:45:25 +0000 (18:45 +0800)
committerGitHub <noreply@github.com>
Thu, 18 May 2023 10:45:25 +0000 (10:45 +0000)
commit09ab64dfad6754d88c7e4da15789bf845b19c30f
treef70f2344f00b4ce4e0d700bfa2f04d5c37256eb0
parent76138ca5a98f6f8b949eb6a5a53466a942ae4fae
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
models/issues/issue.go
models/issues/issue_search.go [new file with mode: 0644]
models/issues/issue_test.go
models/issues/issue_update.go [new file with mode: 0644]
models/issues/pull_list.go
routers/web/repo/issue.go