-
Notifications
You must be signed in to change notification settings - Fork 828
As a person who is setting up their first open-source repo, I'd like to know if there's any actions I should take to make my repo more friendly for people to submit issues to. #15
Comments
Assuming it's a GitHub repo, a CONTRIBUTING or CONTRIBUTING.md file placed in the project root will be linked to on the New Issue and New Pull Request screens. Having a checklist of things to include in an issue or PR is probably a good idea, as well as a link to your code of conduct and other contact methods. Here's INN's PR guidelines and the Texas Tribune's PR guidelines, as examples. Apart from documentation, fast triage is probably a good thing, especially when coupled with feedback for the submitter from the triage person. |
What comes in will be random an unpredictable. Readable code, and ability to submit small pull requests on that (well documented) code, will be the first start. Then random, unpredictable things will happen. The other end will be more important. Responding to comments or PRs, especially if the response to a PR explains why it is or is not accepted, will go miles. UPDATE: in short, what @benlk said. |
This is a great, friendly starter! Thanks @benlk & @patrickmj . |
@jenniferthibault I think that's a great idea. Adding to my to-do list for the week. Thanks for asking the question. (And would love to see more responses.) |
All the more important for us now, given all the attention our Guides are getting. 😄 So often we publish our work as open source, or use open source products, but the real power is in empowering others outside the team to participate in the development process. |
Ten suggestions, specifically for government-maintained open source projects: |
I didn't see this mentioned in the resources provided above, and perhaps it isn't possible to be transparent about your project plan but, I tend to do two things to start with:
|
@jenniferthibault Add a custom label: Then it can also get fed in to Code for America's Civic Tech Issue Finder, cc @ondrae who built it. |
Assuming that this happens on github, it might also be helpful for developers to know if there's a branching/merging model, like git-flow, that you follow, and any variations that the dev team has adopted. Similarly, and echoing @humancompanion 's suggestion of 'exemplary issues', an explicit example issue structure that you have adopted would be great. This thread already looks like a recognizable structure from Agile of "As a X ... I'd like Y". But I've seen (and done) that structure with variations. For example, one team I worked with tried out using a "Works when...." section that describes from the issue-creator perspective what, precisely, is the Y that they'd like. Not sure if the team wants to go that far, but the idea of an exemplar issue template that works for you and your team might help guide outsiders. (Might also be useful internally?) |
Hey @mebates thanks for the mention. On the Open Design Foundation repo, we have made sure to add a CONTRIBUTING.md file with recommendations for contributing code, design, and content. This file shows up when filing an issue or submitting a pull request. If there is anything I can do to help, let me know. |
Having an exemplar issue (or several) linked from the CONTRIBUTING file will help a lot (especially if you can eventually replace them with ones from actual external contributors) . Unfortunately, Github does not currently support using templates for issue creation, which I think was one of the features that allowed projects on Google Code Project Hosting to onboard new contributors well (except when project maintainers didn't actually follow up, of course), so, follow-through with prompt responses to issues new or ongoing (triage, including pointing to the exemplars, labeling, friendly and constructive feedback, etc.) and maintaining the contributor's engagement all the way through acceptance of a PR (perhaps from someone else) becomes key. If you have to actually reject a contribution (a feature request or a pull request, for example) for being out of scope, do it in as nice and clear a way as you can so as to encourage the contributor to try again and not have them give up (remember, this may be their first interaction with an open project ever). Finish up by documenting accepted external contributions in visible ways (release notes linking to issues and PRs, significant contributions acknowledged in the CHANGES file, offering external contributors a more official role (expanding the triage team is an obvious first step) etc. |
Hi! This is a great idea. I wrote a short list of things that make for a good open source project a while back, I hope this is helpful: https://gist.github.com/ngoldman/88ab15a3eeadcb06103b As people above have said, contribution guidelines are a great way to get people introduced to participating in a project and the expected conventions when submitting issues and pull requests. I took some queues from https://github.com/jden/CONTRIBUTING.md and http://openopensource.org to make these guidelines: https://github.com/ngoldman/contributing. They are not applicable to all projects but hopefully can provide a good reference. +1 to @maya's comment. The I often add a
|
+1 @webmaven to linking to example issues Recommending that the contributors include these sections to their issue can help them gather their thoughts: DescriptionHow To Reproduce (for bugs)ScreenshotFilesTo Do (for enhancements)
|
Katherine Michael also points us to Dan Sinker's Tacofancy: https://github.com/sinker/tacofancy |
Thank you for adding my input on here. For anyone who is not familiar with TacoFancy, it was a project that Dan Sinker began on a whim one night when he was cooking Mexican food. He began promoting the project on Twitter which resulted in pull requests ranging from professional developers to total novices. The positives that I would point out: 1). Specific guidelines for contributing Though the content was unconventional, there are some lessons that can be learned here about coordinating open-source issues. |
Seconding the suggestions for exemplar issues, as well as @ondrae's bug template. Something like that is used internally in many companies and works great. One thing I'd add: get some momentum going by appreciating people who submit issues! Post new issues to Slack, Hipchat, or whatever, and actually make a point of reaching out, thanking people for submitting, and maybe publicly appreciating them on Twitter. Quick, positive feedback is one of the best ways to reinforce learning and action. |
Help Wanted or Good First Bug are great places to start. We've got a pile of data suggesting that an ideal first bug is very narrow in scope, possibly as little as one line, and:
Some numbers from Mozilla about reasons for patch rejection: ~25% of the time, it's for a suboptimal fix, ~23% for incomplete fixes, ~12% for overcomplete fixes, ~11% for syntax/style problems, and about 5% for test failures, so if you hold your introductory bug descriptions to those standards you can reduce your patch-rejection cycles by almost 75%. |
These are questions I'm planning to answer in READMEs but also might be of use to people reading this thread: More people would be able to use these projects — and help make them better — if every project’s documentation contained the answers to the following questions: In plain language, what is this project and what does it do? |
Just catching up on this thread -- thank you for the mention. i do love @melodykramer's suggestion of offering a series of questions. We could do something similar to the a11y project checklist: http://a11yproject.com/checklist.html Or provide a template resource starter as mentioned above. Both could be good too. |
Most organizations already have a forum for customer service, and they will not thank us for defining a new source for issues such as https://github.com/HHS/lodestar. We use Atlassian JIRA internally. There are many add-on products that make github.com issues more usable, it would be nice to have one that is free and truly easy to deploy internally - so, guidance on what github.com issues add-ons are best, and who is using which elsewhere in government would help. |
If the project involves code — unit tests, unit tests, unit tests. You'll avoid unnecessary issues and automated testing makes it way easier to evaluate PRs. Requiring submitters include tests is really the only way to manage contributions once they start coming in — I took over a project with a poor test suite and mismanaged PRs had basically broken it for everyone. Make sure to use Travis too. Good inline documentation will also help. Beyond that I don't have much that hasn't been said. Secondary support channels are really crucial to avoiding an endless issue queue full of general use questions — with C3, we use both Google Groups and Gitter. Gitter is really good for building a generalised support community and Google Groups are good for asynchronous discussions. |
There is a really great book about this topic (in general), called A bit old, but still very good. |
These are some great ideas! Some minor points:
|
I've read the sections on structuring my own issues and creating README's, but is there anything that I can and should do to help structure how people submit issues before the repo is live?
For issue submitters, I'd like to make that experience a positive and easy one.
For my project team, I'd like to make sure that we receive issues and feedback that we can make actionable.
The text was updated successfully, but these errors were encountered: