diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-05-19 22:17:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-19 22:17:48 +0800 |
commit | 38cf43d0606c13c38f459659f38e26cf31dceccb (patch) | |
tree | 53cae445e91b7448ae37a00a7ae398aa082f958d /services/migrations | |
parent | c757765a9e5c2d4f73b1a7c3debe3548c735bd54 (diff) | |
download | gitea-38cf43d0606c13c38f459659f38e26cf31dceccb.tar.gz gitea-38cf43d0606c13c38f459659f38e26cf31dceccb.zip |
Some refactors for issues stats (#24793)
This PR
- [x] Move some functions from `issues.go` to `issue_stats.go` and
`issue_label.go`
- [x] Remove duplicated issue options `UserIssueStatsOption` to keep
only one `IssuesOptions`
Diffstat (limited to 'services/migrations')
-rw-r--r-- | services/migrations/gitea_uploader_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/migrations/gitea_uploader_test.go b/services/migrations/gitea_uploader_test.go index b59ccb7c44..878b6d6b84 100644 --- a/services/migrations/gitea_uploader_test.go +++ b/services/migrations/gitea_uploader_test.go @@ -104,7 +104,7 @@ func TestGiteaUploadRepo(t *testing.T) { assert.Len(t, releases, 1) issues, err := issues_model.Issues(db.DefaultContext, &issues_model.IssuesOptions{ - RepoID: repo.ID, + RepoIDs: []int64{repo.ID}, IsPull: util.OptionalBoolFalse, SortType: "oldest", }) |