Merge pull request #1243 from AliabbasMerchant/fix1219

Fix pr create not using .github/pull_request_template.md
This commit is contained in:
Mislav Marohnić 2020-06-18 17:12:06 +02:00 committed by GitHub
commit caa9b20eaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}