Browse Source

repo: clean up webhook and hook_task when delete repository (#5239)

pull/5293/head
奶爸 7 years ago committed by 无闻
parent
commit
806754b512
  1. 2
      models/repo.go

2
models/repo.go

@ -1452,6 +1452,8 @@ func DeleteRepository(uid, repoID int64) error {
&PullRequest{BaseRepoID: repoID}, &PullRequest{BaseRepoID: repoID},
&ProtectBranch{RepoID: repoID}, &ProtectBranch{RepoID: repoID},
&ProtectBranchWhitelist{RepoID: repoID}, &ProtectBranchWhitelist{RepoID: repoID},
&Webhook{RepoID: repoID},
&HookTask{RepoID: repoID},
); err != nil { ); err != nil {
return fmt.Errorf("deleteBeans: %v", err) return fmt.Errorf("deleteBeans: %v", err)
} }

Loading…
Cancel
Save