mirror of
1
Fork 0

Fix invalid link of the commit status when ref is tag (#29752) (#29908) (step 2)

UpdateRepositoryUnits was moved to repo_service by a refactor that was
not cherry-picked. (Fix schedule tasks bugs (#28691) (#28780))
This commit is contained in:
Earl Warren 2024-03-21 17:27:02 +01:00
parent 2051763969
commit df98757424
No known key found for this signature in database
GPG Key ID: 0579CB2928A78A00
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ func TestCreateDeleteRefEvent(t *testing.T) {
assert.NotEmpty(t, repo)
// enable actions
err = repo_service.UpdateRepositoryUnits(db.DefaultContext, repo, []repo_model.RepoUnit{{
err = repo_model.UpdateRepositoryUnits(repo, []repo_model.RepoUnit{{
RepoID: repo.ID,
Type: unit_model.TypeActions,
}}, nil)