mirror of
https://github.com/gogs/gogs.git
synced 2026-06-17 01:41:53 +02:00
repo: clean up webhook and hook_task when delete repository (#5239)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user