Remove all CommitStatus when a repo is deleted (#5940)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
tokarchuk/v1.17
John Olheiser 6 years ago committed by techknowlogick
parent ecefa9e724
commit f81c6cc2a9
  1. 1
      models/repo.go

@ -1787,6 +1787,7 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
&Webhook{RepoID: repoID},
&HookTask{RepoID: repoID},
&Notification{RepoID: repoID},
&CommitStatus{RepoID: repoID},
); err != nil {
return fmt.Errorf("deleteBeans: %v", err)
}

Loading…
Cancel
Save