Add Pull request Template chooser similar to Issue Template chooser #4620
Replies: 19 comments 6 replies
-
I've edited my original post and added an additional idea for why the template chooser would be a beneficial idea. |
Beta Was this translation helpful? Give feedback.
-
A template chooser would also be really beneficial in monorepos where different components may have different considerations to think about when making a change (how would we deploy this? reliability?, etc.) |
Beta Was this translation helpful? Give feedback.
-
It would also be nice if the template chosen for the PR could be determined by a chosen label (e.g. choose Documentation label upon PR creation -> populate description with Documentation PR Template). "Feed two birds with one seed" |
Beta Was this translation helpful? Give feedback.
-
It would be very beneficial in the case of the Arcane Algorithm Archive, where we have two major ways to contribute: chapters and code. Chapters are complex PRs that require time and effort to manage, while code PRs can range from fixing bugs, improving readability to converting to new languages not yet present in the book. Being able to have templates for either (and possibly for more cases) would be helpful in instructing how to proceed in each case, but would also be beneficial for people not accustomed to contributing to give them the right pointers. There are a lot of useful possibilites with this features! |
Beta Was this translation helpful? Give feedback.
-
FYI, this is my workaround. It's somewhat better than manually changing the URL parameter. simplescreenrecorder-2022-08-12_20.21.45.mp4I remember I posted this to some thread on https://github.community/, but it seems not to be transferred. So, I re-posted it here. I really want the PR template chooser feature officially. |
Beta Was this translation helpful? Give feedback.
-
I don't usually do this, but 2023 bump. Suggestion to use template query parameters means developers have to start manually fiddling with browser location bar every day? My brain doesn't want to believe a product team has considered this a realistic solution (even if temporary), so I must be missing something about available UX options? |
Beta Was this translation helpful? Give feedback.
-
I told ChatGPT to create me a chrome extension that injects a dropdown into pull request page that has the templates. You can use it from here -> https://github.com/userashad/github-template-picker-chrome-extension |
Beta Was this translation helpful? Give feedback.
-
The ability to do this already exists in the backend, since pull request templates can be specified via query parameters and the GitHub CLI through |
Beta Was this translation helpful? Give feedback.
-
It's pretty frustrating that this is still not available (851 days after OP made this!). Seems like a small change as @bmitc said considering this already exists for issues and choosing a template already works (inconveniently) with query parameters. |
Beta Was this translation helpful? Give feedback.
-
Bumping this one as the amount of work involved should be minimal compared to the value given to the customers (us, the developers). |
Beta Was this translation helpful? Give feedback.
-
I would really apreciate if you guys stoped posting a stupid "bump" message. It won't get this worked on faster, nor gain the attention of GitHub Staff faster. If that continues will I request a locking of this discussion by the repository admins. So take this as your only warning. |
Beta Was this translation helpful? Give feedback.
-
What if ChatGPT just picked the template for you? I think I’d prefer a lack of choice now that technology and AI have advanced. not a bump, as this is a genuine addition to the enhancement request. That said, I wouldn’t mind an admin taking a look at this post if it meant a little attention. “No press is bad press”, as they say…Unless I get banned, which would stink. Please don’t ban me…😅 |
Beta Was this translation helpful? Give feedback.
-
I don't think any of you need this but I've build the grease monkey equivalent of the things written by @rashadksh it's more stupid but get the job done. (you just configure it by typing your template names in an array) https://github.com/DangerBlack/greasemonkey-scripts/tree/master/github-template-picker |
Beta Was this translation helpful? Give feedback.
-
This functionality would be tremendously helpful for us. |
Beta Was this translation helpful? Give feedback.
-
I've recently done some work on validating PR Template contents, which lead me to discover this post. You can update the PR contents via Pull Request API and updating the So a simple work around might look like
And an Another might just be the same action, that updates the PR template from branch names which might be more consistent - depends on your teams strategy. Finally - a Git CLI wizard might offer a url rewrite for the PR URL on a
|
Beta Was this translation helpful? Give feedback.
-
The issue
We all know that Pull requests are important.
What we also know is, that not every Pull request is the same and that sometimes one template isn't enough to work with.
The big issue here is that, unlike issues, Pull requests do not have a Template chooser, which the person submitting the Pull request could select from.
The only way they can select a different template is by applying the
template=<template>.md
query parameter to the URL to load it, which is extremely inconvenient.The idea
There should be a Template chooser for Pull requests. This would allow maintainers to offer Pull request templates for specific types such as updating documentation.
As an added bonus could they also have a way to define the default branch to use, because often is the
master
/main
branch not the one someone should PR towards and blocking the branch from direct PRs is often only a semi-optimal solution.Instead, could the selected template set the branch to target, so that the user submitting it has less to worry about.
Beta Was this translation helpful? Give feedback.
All reactions