Describe the bug
We use Pull request templates in many of our repos. When creating a Pull request using the GH CLI, if after entering the Title and Body (either pressing E and closing the editor window, or pressing enter to skip entirely) you select Submit to create the PR automatically, the PR template is not used.
However, if on the last step you select Preview in browser, it will use the PR Template to auto populate the body of your pull request.
Steps to reproduce the behavior
- Clone a Repository with a
PULL_REQUEST_TEMPLATE.md in it
- Make some branch, and commit some change
- create the PR using the command
gh pr create
- For Title put in something aka
Test Pr
- For Body press enter to skip
- For What's next, select Submit and view the PR
The PR WILL NOT have a body built using the PULL_REQUEST_TEMPLATE.md file.
Repeating steps 1-5 and instead
6. For What's Next, select Preview in browser
The PR WILL have a body built using the PULL_REQUEST_TEMPLATE.md file
Expected vs actual behavior
Expected: The file PULL_REQUEST_TEMPLATE.md will be used during the creation of any PR's from the GHCLI, unless the body is specifically overloaded during creation
Actual: The file PULL_REQUEST_TEMPLATE.md is not used during the creation of a PR without a specific body overload if the Submit option is used.
Logs
Not applicable, error does not exist in logs.
Describe the bug
We use Pull request templates in many of our repos. When creating a Pull request using the GH CLI, if after entering the Title and Body (either pressing E and closing the editor window, or pressing enter to skip entirely) you select Submit to create the PR automatically, the PR template is not used.
However, if on the last step you select Preview in browser, it will use the PR Template to auto populate the body of your pull request.
Steps to reproduce the behavior
PULL_REQUEST_TEMPLATE.mdin itgh pr createTest PrThe PR WILL NOT have a body built using the
PULL_REQUEST_TEMPLATE.mdfile.Repeating steps 1-5 and instead
6. For What's Next, select Preview in browser
The PR WILL have a body built using the
PULL_REQUEST_TEMPLATE.mdfileExpected vs actual behavior
Expected: The file
PULL_REQUEST_TEMPLATE.mdwill be used during the creation of any PR's from the GHCLI, unless the body is specifically overloaded during creationActual: The file
PULL_REQUEST_TEMPLATE.mdis not used during the creation of a PR without a specific body overload if theSubmitoption is used.Logs
Not applicable, error does not exist in logs.