Remove all CommitStatus when a repo is deleted (#5941)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
parent
dfad569e40
commit
022634aa75
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Reference in a new issue