Skip to content

Commit 022634a

Browse files
jolheisertechknowlogick
authored andcommitted
Remove all CommitStatus when a repo is deleted (#5941)
Signed-off-by: jolheiser <[email protected]>
1 parent dfad569 commit 022634a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/repo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,6 +1774,7 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
17741774
&Webhook{RepoID: repoID},
17751775
&HookTask{RepoID: repoID},
17761776
&Notification{RepoID: repoID},
1777+
&CommitStatus{RepoID: repoID},
17771778
); err != nil {
17781779
return fmt.Errorf("deleteBeans: %v", err)
17791780
}

0 commit comments

Comments
 (0)