From ae695e98ceea9774ca8b99fdf80e0f0288919b63 Mon Sep 17 00:00:00 2001 From: AliabbasMerchant Date: Thu, 18 Jun 2020 09:00:56 +0530 Subject: [PATCH] Fix pr create not using .github/pull_request_template.md --- command/title_body_survey.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/command/title_body_survey.go b/command/title_body_survey.go index 1dcf3c668..53de6cf2b 100644 --- a/command/title_body_survey.go +++ b/command/title_body_survey.go @@ -164,7 +164,8 @@ func titleBodySurvey(cmd *cobra.Command, issueState *issueMetadataState, apiClie } issueState.Body = templateContents } else if legacyTemplatePath != nil { - issueState.Body = string(githubtemplate.ExtractContents(*legacyTemplatePath)) + templateContents = string(githubtemplate.ExtractContents(*legacyTemplatePath)) + issueState.Body = templateContents } else { issueState.Body = defs.Body }