Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uphub pull-request should show organization-wide template #2367
Comments
|
Thank you for reporting this! We do not yet have support for per-organization issue nor pull request templates. I'm going to re-label this as "feature", but I can also see how you can perceive it as a bug. |
|
Thanks for replying so quickly. I am considering trying to do a PR on this, how would you start? |
|
Here is where the Lines 302 to 305 in ec93940 You would need to add a condition that, in case a template isn't found in this repo, fetches the templates from the I have doubts about this functionality. Fetching per-org repo templates will add an additional overhead for every repo that doesn't have its own templates, slowing down the time since You may take a stab implementing this, but keep in mind all these considerations and that the feature won't necessarily make it into a release considering the trade-offs. |
Command attempted:
Ran
hub pull-requestto create a new PR in a repository belonging to a specific organization.What happened:
Did not fetch the organization-wide
PULL_REQUEST_TEMPLATE.mdfrom repo named.githubrepo and use as pull request description. Instead used a blank description.More info:
Steps to reproduce:
.github.githubrepo, checkout a new branch, change some stuff, make a commit and push the branch to github.hub pull-request