]> source.dussan.org Git - gitea.git/commit
Load GitRepo in API before deleting issue (#21720) (#21795)
authorJason Song <i@wolfogre.com>
Sun, 13 Nov 2022 04:13:31 +0000 (12:13 +0800)
committerGitHub <noreply@github.com>
Sun, 13 Nov 2022 04:13:31 +0000 (22:13 -0600)
commit795913e3c7f37c55a81e64517c740f0402b6230d
treee690bd6fccffeaca24643657ee6dd2d3dc1d38b2
parente609ef9585565986ebc2c0dfb4c896c111886233
Load GitRepo in API before deleting issue (#21720) (#21795)

Backport #21720.

Fix #20921.

The `ctx.Repo.GitRepo` has been used in deleting issues when the issue
is a PR.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
routers/api/v1/api.go