From f81c6cc2a90fa4d92e0fc00834ddee66b37f44b7 Mon Sep 17 00:00:00 2001 From: John Olheiser <42128690+jolheiser@users.noreply.github.com> Date: Sat, 2 Feb 2019 22:03:45 -0600 Subject: [PATCH] Remove all CommitStatus when a repo is deleted (#5940) Signed-off-by: jolheiser --- models/repo.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/repo.go b/models/repo.go index 08908c8b0..894698a7c 100644 --- a/models/repo.go +++ b/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) }