Skip to content

Pull request template is not used when creating a pull request in an organization with health files #838

@localheinz

Description

@localheinz

Describe the bug

Configured editor is not populated with contents of pull request template when running

$ gh pr create

to create a pull request in a repository that does not have a pull request template defined in .github, but has a pull request template defined in a .github repository within the same organization (as laid out here.

Running

$ gh --version

yields

gh version 0.7.0 (2020-04-22)
https://github.com/cli/cli/releases/tag/v0.7.0

Steps to reproduce the behavior

  1. Run

    $ git clone git@github.com:ergebnis/composer-normalize.git
    

    to clone ergebnis/composer-normalize, a repository that does not define its own pull request template, but has a pull request template defined in ergebnis/.github.

  2. Run

    $ git checkout -b fix/foo
    $ touch foo
    $ git add foo
    $ git commit -m "Foo"
    

    to create a new branch, create a new file, and commit it.

  3. Run

    $ gh pr create
    

    to create a new pull request.

  4. Press enter to use suggested title

  5. Press e to launch configured editor

Expected behavior

Editor is populated with content of pull request template defined in .github repository for corresponding organization

Actual behaviour

Editor is not populated with content of pull request template defined in .github repository for corresponding organization.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingp2Affects more than a few users but doesn't prevent core functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions