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

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
John Olheiser 2019-02-02 23:55:33 -06:00 committed by techknowlogick
parent dfad569e40
commit 022634aa75

View file

@ -1774,6 +1774,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)
}