0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-06-05 03:36:50 +02:00

Merge 79a0303516e35e3012cb03792f69f9407cf15f5c into 0cec4b84e2e2385d33cd19351f8a9e098a29ecc2

This commit is contained in:
endo0911engineer 2025-05-28 16:19:17 -04:00 committed by GitHub
commit 6b1062a33e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -804,6 +804,21 @@ func CompareDiff(ctx *context.Context) {
if ctx.Written() {
return
}
title := ctx.FormString("title")
body := ctx.FormString("body")
expandNewPRForm := ctx.FormBool("quick_pull")
if title != "" {
ctx.Data["TitleQuery"] = title
}
if body != "" {
ctx.Data["BodyQuery"] = body
}
if expandNewPRForm || title != "" || body != "" {
ctx.Data["ExpandNewPrForm"] = true
}
_, templateErrs := setTemplateIfExists(ctx, pullRequestTemplateKey, pullRequestTemplateCandidates, pageMetaData)
if len(templateErrs) > 0 {
ctx.Flash.Warning(renderErrorOfTemplates(ctx, templateErrs), true)