Pull Request Template per Organization

Hi Team,

As per my understanding, GitHub supports Pull request templates and I tried it for one of our repo and it works great and flawless. Kudos to the team…

However, we have 2 different orgs and each org has about 300 repo. I am wondering if GitHub supports the following feature

Is it possible to maintain org level template instead of repo level
If org level PR template is defined, can repo level template take precedence?
I believe its possible to maintain multiple templates per repo. However, is it possible to maintain different templates per organization

36 Likes

Hi @thunderbirdgit,

Thanks for this feedback! We’re always working to improve GitHub, and though these things aren’t currently possible, we consider every suggestion we receive. I’ve logged your feature request in our internal feature request list. Though I can’t guarantee anything or share a timeline for this, I can tell you that it’s been shared with the appropriate teams for consideration.

Please let me know if you have any other questions.

Cheers!

3 Likes

Thanks @nadiajoyce for creating a feature request. Looking forward to have that feature implemented. 

2 Likes

Hi @nadiajoyce, are you able to share any more information about this now that it’s been a few months? This would be really useful for my organization, too.

2 Likes

Hi @tyler-murphy,

I’m unable to provide any guarantees or timeline for this, but I can confirm it’s been shared with the appropriate teams. To keep an eye out and hear about new features and updates as quickly as possible, I’d recommend following our changelog on the blog. That’s where you’ll hear the most up-to-date information on new GitHub features.

Cheers!

1 Like

I’d love to have this at the organization level as well.  As an current solution, here’s a quick script to place or update a file in each repository for an organization.

https://gist.github.com/bchecketts/36e12f4747dd2d428c591214dbb856ac

3 Likes

Thanks, @bchecketts for providing this! 

1 Like

> You can create default community health files, such as CONTRIBUTING and CODE_OF_CONDUCT. Default files will be used for any public repository owned by the account that does not contain its own file of that type.

https://help.github.com/en/github/building-a-strong-community/creating-a-default-community-health-file

> You can add CONTRIBUTING, SUPPORT, CODE_OF_CONDUCT, ISSUE_TEMPLATE(S), or PULL_REQUEST_TEMPLATE(S) files to a public, organization-owned .github repository, and if a given community health file doesn’t exist for a repository, the organization-wide default will be used.

https://github.blog/changelog/2019-02-21-organization-wide-community-health-files

2 Likes