I came across a typo in the docs so I tried my first PR for Django.
The bot closed the PR, and thanks to the helpful/clear error messages, I understand why. I can resubmit so that it doesn’t automatically close it but mentioning here because the things that are being flagged are:
- my branch description isn’t long enough (“Grammar fix” didn’t meet a 5 word requirement that I didn’t know about)
- my branch description kept the placeholder text (which I wasn’t sure if I should keep or remove)
- I wrote N/A for checklist items that don’t apply to typos when the bot check (understandably) wants all of the checklist items marked completed
I totally see why these are great bot checks generally speaking. Just tossing out a few minor adjustments for consideration:
- adding a comment under Branch description heading (just like there is under the Trac ticket number heading) that says something like
<!-- Replace this placeholder text with a branch description of at least 5 words. -->- For context, when I was submitting, I wasn’t sure if I was supposed to delete that template line or not so I kept it because the Trac ticket one explicitly told me to replace or delete whereas the branch description one did not. (In retrospect, it obviously makes more sense to delete the line because no one reviewing would need to see a template line like that.)
- either make “N/A” okay to have for the checklist items that don’t make sense for typos (e.g. “I have checked the “Has patch” ticket flag in the Trac system.”) or add a comment that says something like
<!-- For typo fixes, you can mark checklist items as completed if they are not applicable. -->. Other options could be to have two versions of the checklist or section out the one checklist into two parts (the main part encompassing all PRs and the second part just for anything more than a typo). Personally, I think the comment solution would be best because it seems simplest yet still effective. - One other recommendation which doesn’t matter for the flow, but I’ll mention since I have my feedback hat on: in the auto comment listing the errors, I’d consider replacing the
emoji with something something like
or
or
or
or
or similar.
- I think this would be helpful because I found the
to be kind of aggressive/alarming/jarring but also thought it was useful in that it provides a bright bullet point for the thing/s that went wrong. To elaborate, it felt a little like rubbing salt in the wound for the mistakes - like, the PR is already closed by the bot and it says “Error” right there (in my case, more than once lol) so the recipient already has very clear feedback that “this contribution was problematic for these reasons.” The stop sign shape also kind of subconsciously implies “STOP [contributing]” even though of course anyone who thinks for a second would understand it’s more meant like “STOP there are these things to fix before resubmitting.” I think one of the alternate emojis would lend itself better to the second meaning. - It is possible I am over thinking this since I know I generally lean a bit more on the sensitive side (
) and maybe others don’t feel quite so alarmed when looking at
, but I’ll still throw this out there, especially since new contributors would naturally be the most likely people to encounter these errors and (I imagine) are also more sensitive to negative feedback than experienced folks, so maybe being extra sensitive in this detail could leave a new contributor feeling more encouraged like “okay, I made some mistakes, but it’s helping flag for me what to improve” as opposed to feeling more like “I was stopped because I did wrong”
- I think this would be helpful because I found the
Anyway, just some thoughts on my first PR experience. Grain of salt for the rec’s, take 'em or leave 'em