From 8bfc935860b8fdc3b77e7e727d40167b5f6ddebb Mon Sep 17 00:00:00 2001 From: AliabbasMerchant Date: Sat, 23 May 2020 01:05:27 +0530 Subject: [PATCH] Fix Incorrect Template Type --- command/pr_create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/pr_create.go b/command/pr_create.go index 3eea8ec71..5ec69dec4 100644 --- a/command/pr_create.go +++ b/command/pr_create.go @@ -219,7 +219,7 @@ func prCreate(cmd *cobra.Command, _ []string) error { if rootDir, err := git.ToplevelDir(); err == nil { // TODO: figure out how to stub this in tests nonLegacyTemplateFiles = githubtemplate.FindNonLegacy(rootDir, "PULL_REQUEST_TEMPLATE") - legacyTemplateFile = githubtemplate.FindLegacy(rootDir, "ISSUE_TEMPLATE") + legacyTemplateFile = githubtemplate.FindLegacy(rootDir, "PULL_REQUEST_TEMPLATE") } err := titleBodySurvey(cmd, &tb, client, baseRepo, title, body, defs, nonLegacyTemplateFiles, legacyTemplateFile, true, baseRepo.ViewerCanTriage()) if err != nil {