Skip to content

pr create uses legacy template even when instructed to use blank template #7419

@grimreaper

Description

@grimreaper

Describe the bug

gh pr create ignores user instruction to not use the template

Steps to reproduce the behavior

On a repo with .github/pull_request_template.md

  1. ∴vim README.md
  2. ∴git commit -am "a useful log message"
  3. ∴gh repo create
  4. select these options:
? Title [gcp_compute_fake] require valid healthcheck name
? Choose a template  [Use arrows to move, type to filter]
  pull_request_template.md
> Open a blank pull request```
5. press 'e' at '? Body [(e) to launch nvim, enter to skip]

Expected vs actual behavior

expected behavior is observing the git commit log message ("a useful log message")

actual behavior is seeing the contents of the git log message as well as the contents of .github/pull_request_template.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions