2018-06-23
Providing a Better GitHub Issue Experience
github, opensource
github, opensource
I recently started contributing to an open source project, qit, which "let programmers find and listen to podcasts by topic".
As I was going through issues to tackle to get started, I found out that many issues had just titles but no description of how to reproduce it or how the site should normally behave.
Thankfully, GitHub provides a way to encourage users for a better issue report.
[caption id="attachment_1058" align="alignleft" width="817"] issue with unclear description[/caption]
The issue reported by THEjoezack above doesn't provide a context regarding the issue reported.
What I mean by "context" is
Below is the issue created with the context mentioned above. When other developers see the issue, they can reproduce the error and how to fix it easier. without having to ask the reporter back and forth for more info.
[caption id="attachment_1059" align="alignleft" width="357"] Issue with better context[/caption]
I gotta admit that I forgot to add a description on how to reproduce the error, only some URLs...
I am not smart enough to memorize what info to provide every time I create an issue. Thankfully, GitHub made the process easy.
GitHub provides a way to create Markdown templates for issues such as
I won't go into details as the GitHub documentation is easy to follow.
You can add contexts in the template so that when a user creates a new issue, they are provided with pre-populated information about how to report an issue.
[caption id="attachment_1060" align="alignleft" width="778"]
Pre-filled issue template[/caption]I reported the issue after setting up the template providing better experience for both issue reporter and the developer.
You can read more about issue templates on About issue and pull request templates.
Check out this video to see how issue template works after setting up templates. For some reason, embedded youtube video isn't working... 🤔
I found about the issue template from dotnet/cli project, which is s a huge project (with 200 contributors & 9k commits). It's amazing that the majority of issue reporters follow the template providing better context for the project contributors.
THEjoezack has create a feature request with a better context provided by the template. And everyone's happy 😎
[caption id="attachment_1061" align="aligncenter" width="794"] Joe's FOSSA feature request[/caption]
qit is a Progressive Web App (PWA) using ReactJs that uses styled components. And it is quite an active project.
We are trying many fun things and failing along the way. If you want to have fun developing a PWA, please join us on Coding Blocks Slack community (#qit).
If you have any questions, leave a comment (or please holla me on Twitter).