mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-07 01:27:22 +02:00
Backport #20032 In DeleteIssue the PR git head reference should be `/refs/pull/xxx/head` not `/refs/pull/xxx` Fix #19655 Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
1 parent
8733f4b25a
commit
a4b1967ea3
2 files changed
+6
-1
No files matched your search
@@ -878,6 +878,11 @@ func DeleteIssue(ctx *context.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if issue.IsPull {
|
||||
ctx.Redirect(fmt.Sprintf("%s/pulls", ctx.Repo.Repository.HTMLURL()), http.StatusSeeOther)
|
||||
return
|
||||
}
|
||||
|
||||
ctx.Redirect(fmt.Sprintf("%s/issues", ctx.Repo.Repository.HTMLURL()), http.StatusSeeOther)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user