pull/34537/merge
endo0911engineer 2025-06-16 13:28:16 +09:00 committed by GitHub
commit a3388064f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 15 additions and 0 deletions

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)