Feature: Multiple PR templates that auto-display based off the upstream branch name #140567
Replies: 2 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
This needs to happen in some form. I would take it a step further and allow specifying a template in the applicable Ruleset. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Product Feedback
Body
Simple Feature Request
The PR template to show is based off the upstream branch (which you wish to merge your PR into). If there is no file named after the upstream branch, then it defaults to the current logic of using
pull_request_template.mdDetails/Discussion
The current process is that GH does offer limit functionality for multiple PR's. This is NOT AUTOMATIC though - it's via a silly 'query string hack'. As far as I'm aware no one will ever manually update their PR url to include the querystring options. I would assume that most people just create a normal pull request and all the existing tools don't set the template querystring.
INSTEAD we can make this really easy, for teams and organisations.
Similar to the existing documentation, we can have multiple markdown files in the
PULL_REQUEST_TEMPLATEfolder. Each file (minus the '.md' extension) is the name of the branch you wish to PR your code into. If there's no file which matches the branch GH then falls back to the current rules which is to use the PULL_REQUEST_TEMPLATE.md file if that exists.For example:
origin/fancy-pants-featureupstream/devSo yeah - hope GH, you might consider this feature please.
Beta Was this translation helpful? Give feedback.
All reactions