summaryrefslogtreecommitdiffstats
path: root/integrations/api_repo_file_helpers.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/api_repo_file_helpers.go')
-rw-r--r--integrations/api_repo_file_helpers.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/integrations/api_repo_file_helpers.go b/integrations/api_repo_file_helpers.go
index 1dba136de9..ef3b8c610b 100644
--- a/integrations/api_repo_file_helpers.go
+++ b/integrations/api_repo_file_helpers.go
@@ -6,12 +6,12 @@ package integrations
import (
"code.gitea.io/gitea/models"
- "code.gitea.io/gitea/modules/repofiles"
api "code.gitea.io/gitea/modules/structs"
+ files_service "code.gitea.io/gitea/services/repository/files"
)
func createFileInBranch(user *models.User, repo *models.Repository, treePath, branchName, content string) (*api.FileResponse, error) {
- opts := &repofiles.UpdateRepoFileOptions{
+ opts := &files_service.UpdateRepoFileOptions{
OldBranch: branchName,
TreePath: treePath,
Content: content,
@@ -19,7 +19,7 @@ func createFileInBranch(user *models.User, repo *models.Repository, treePath, br
Author: nil,
Committer: nil,
}
- return repofiles.CreateOrUpdateRepoFile(repo, user, opts)
+ return files_service.CreateOrUpdateRepoFile(repo, user, opts)
}
func createFile(user *models.User, repo *models.Repository, treePath string) (*api.FileResponse, error) {