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

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)