From 48ccd325a1b81a58ac6d1d5d94fc4e90974599ea Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 16 Nov 2021 21:30:11 +0800 Subject: Move some functions into services/repository (#17660) --- integrations/pull_update_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'integrations') diff --git a/integrations/pull_update_test.go b/integrations/pull_update_test.go index d9112a4b9f..43cfe7debf 100644 --- a/integrations/pull_update_test.go +++ b/integrations/pull_update_test.go @@ -13,7 +13,6 @@ import ( "code.gitea.io/gitea/models" "code.gitea.io/gitea/models/unittest" "code.gitea.io/gitea/modules/repofiles" - repo_module "code.gitea.io/gitea/modules/repository" pull_service "code.gitea.io/gitea/services/pull" repo_service "code.gitea.io/gitea/services/repository" @@ -89,7 +88,7 @@ func createOutdatedPR(t *testing.T, actor, forkOrg *models.User) *models.PullReq assert.NoError(t, err) assert.NotEmpty(t, baseRepo) - headRepo, err := repo_module.ForkRepository(actor, forkOrg, models.ForkRepoOptions{ + headRepo, err := repo_service.ForkRepository(actor, forkOrg, models.ForkRepoOptions{ BaseRepo: baseRepo, Name: "repo-pr-update", Description: "desc", -- cgit v1.2.3