mirror of https://github.com/gogs/gogs.git
repo: clean up webhook and hook_task when delete repository (#5239)
parent
4d18df204a
commit
806754b512
|
@ -1452,6 +1452,8 @@ func DeleteRepository(uid, repoID int64) error {
|
|||
&PullRequest{BaseRepoID: repoID},
|
||||
&ProtectBranch{RepoID: repoID},
|
||||
&ProtectBranchWhitelist{RepoID: repoID},
|
||||
&Webhook{RepoID: repoID},
|
||||
&HookTask{RepoID: repoID},
|
||||
); err != nil {
|
||||
return fmt.Errorf("deleteBeans: %v", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue