Move commit repo action from models to repofiles package (#7645)

* move commit repo action from models to repofiles package

* fix unit tests
This commit is contained in:
Lunny Xiao authored and GitHub committed 2019-07-30 09:59:10 +08:00
1 parent 4d643a59db
commit e7d4895732
6 files changed
+348 -310

No files matched your search

+1 -1
View File
@@ -497,7 +497,7 @@ func PushUpdate(repo *models.Repository, branch string, opts models.PushUpdateOp
commits = models.ListToPushCommits(l)
}
if err := models.CommitRepoAction(models.CommitRepoActionOptions{
if err := CommitRepoAction(CommitRepoActionOptions{
PusherName: opts.PusherName,
RepoOwnerID: repo.OwnerID,
RepoName: repo.Name,