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