-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue and/or PR Templates #390
Comments
(I've had a bunch of these links saved for a while as "advanced" templating solutions, so just going to drop all the links I have here and hopefully it'll help) Awesome idea, I'd thought about it at one time but completely forgot to create an issue about it. Thank you! 🥳 While this probably isn't what we'd do, the @ansible-collections project has a bunch of files that we might be able to pull from: https://github.com/ansible-collections/.github They also have all the other files we probably should have (i.e. SECURITY.md) and IIRC you can have multiple PR templates under the .github folder as well. You can also link to different things if someone needs to submit feedback to a show, we could link them to the contact page: https://github.com/github/securitylab/blob/main/.github/ISSUE_TEMPLATE/config.yml I think this one just had a really good design: https://github.com/linode/terraform-provider-linode/blob/main/.github/ISSUE_TEMPLATE/bug.yml |
These are great examples showing things I didn't even know about GitHub issue templates! I'll definitely be looking into this |
So I have been looking into this today and it seems like we can use yaml for issue templates, but as of right now, the pull request still used markdown templates as of right now. I personally think this would work out the best for us because PRs should be a customizable compared to an issue which would being more like a form. I made a mock up on a test repo and this is my initial idea of a bug report The Device multi-select is |
This is so great both of you! I'll have a look aswell but see no reason why we can't implement some of these ideas. My first hesitation with the amazing yaml example would be the downside of assigning rather rigid structure to our Issues when we've been using them in otherwise quite flexible ways - i.e. to track conversations and ideas that aren't strictly "bugs" or "feature requests". So, if there is a third option for flexibility that would be magnificent. Will check the repo and play a little, but on first blush this is fabulous! Thanks @CGBassPlayer ! 🎉 |
Well you are in luck @gerbrent! There is an option to create a blank issue at the bottom that will take you right to the usual new issue page. I see these templates more as way to help new people figure out what they should put in a bug report or feature request rather than a strict structure we would have to stick to. I am also going to see if I can cheat a little bit and make a blank issue template if you think the blank issue could use more prominence in the issue type selection. One thing I did notice with these new issue templates is that they are not yet implemented on the GitHub app, so those users will still also get a blank issue when they create one as well. |
this is so great! |
@CGBassPlayer , this is looking amazing! Thank you for taking the time to do all this!
I know, I was the same way and when I noticed them when filing bug reports I saved them in my notion notes. That way when I wanted to I could come back and use them (like now 😁).
So far I think this looks awesome. I would consider swapping the textarea for a markdown. That way it should still let them upload pictures and other things to help convey what's going on 😁 Also, we might want to include check boxes for making sure people have read the different docs (contributors.md, code if conduct (if/when we get one, but can be commented out for now), etc...) similar to GH's example of the Code of conduct: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema#about-githubs-form-schema - type: checkboxes attributes:
label: Code of Conduct
description: The Code of Conduct helps create a safe space for everyone. We require that everyone agrees to it.
options:
- label: I agree to follow this project's [Code of Conduct](link/to/coc)
required: true
There's not much we can do about this... I've seen similar issues with other thing on the GH app. So, we'll have to wait for them to support it better. |
@elreydetoda markdown is only text rendered while filling out the form for giving instructions, thanks, or anything you need to convey that doesn't need to be read on the ticket after. When you use the |
Ah, gotcha. Just from your screenshot it looks like there isn't the normal context menu (bold, italicized, etc.) that might be helpful for people who are new to markdown. Thanks for letting me know though @CGBassPlayer 😁 |
yes, that looks helpful! I'm gonna wager Docker gets submitted first ; ) |
for specific wording: insert what you feel and we can always redact later.. |
Is there any other ideas for templates we want before I mark this PR as ready? |
I wonder if a "Episode metadata has errors" template might be helpful? |
I like the idea. I can throw the show notes tag on those so we know it has to do with dead links. I'll add that now |
Example of an issue reported via these new (wonderful) templates: There are two small issues I would like us to investigate:
|
I can look into this. I am not sure why there was a large gap. Very strange to me. But I can see how the checkbox being a task can get annoying. Did we want to remove it or try changing to something else? |
@gerbrent do you want the Contributing check removed completely? The bottom link will always be put there by GitHub so we don't necessarily need to put our own in the issue forms if we don't want it. Also. It seems that the screenshot has a large transparent section on the right and underneath it. All the white section when I try to save the image is transparent on GitHub and is what is causing the large space. Could it be the screenshot method? Or did GitHub somehow add it after it being uploaded? More testing is going to be needed for this. |
will test that! nice catch.. |
Based on your concerns, are you thinking we should remove the contributing checkbox from the issue forms? We can put some text in that is only rendered while filling out the issue for them to review it. |
Something I think would be useful for people users new to contributing to open source would be templates for creating issues and maybe PRs. I don't think it needs to be anything extravagant, but something to just let them know what they should put in when submitting an issue and possibly add some auto tagging.
Initial idea I am thinking is:
Bug Report
Feature Request
Bug Fix PR
Looking for suggestions of templates or things in templates as well
The text was updated successfully, but these errors were encountered: