Wrangling Web Contributions: How to Build a CONTRIBUTING.md
Format
This exercise works well as an in-person workshop or an online exercise. It can be done individually or in a group.
Target Audience
Open science project and community leads and Mozilla Study Group leads seeking to attract and grow communities of contributors around their projects
Materials
Introduction
A CONTRIBUTING.md file, in your open source repository or site, provides potential project contributors with a short guide to how they can help with your project or study group. It is convention to capitalize the word "contributing" as the file title, and to save it as a resource in markdown (hence the extension .md).
This file is for:
- Project owners - creators and maintiners of the file
- Project contributors - users of the file who want to know items they're welcome to tackle, and tact they need in navigating the project/respecting those involved with the project
- Project consumers - users who want to build off the project to create their own project
CONTRIBUTING.md should be in your root directory, think of it as a anchor for your project, around which you will build community and keep things tidy. It complements other "all-caps" resources like your README.md (which introduces your community to the project, its purpose and basic installation requirements), or your LICENSE.md (which provides information on the reuse and permissions associated with the code).
The CONTRIBUTING.md should be one of your first priorities in putting an open source/science project online to solicit contributions. If you have yet to define possible avenues of contribution, consider creating a CONTRIBUTING.md file with a "check back later, we will populate this soon" message, and the contact information of the project lead for follow-up.
You should try to build a draft of the CONTRIBUTING.md file with the core contributors to your project to help them feel a shared sense of responsibility and to create the best possible guide for encouraging new contributors. It is sometimes best to practice building a markdown file in an offline program like Mou or an online one like Dilliger before you post it online.
Steps to Complete
-
Reflect / Plan
Start by reflecting on what to include, and what to invite (in terms of contributions) in your CONTRIBUTING.md. See an example of the Atom.io CONTRIBUTING.md file. Consider adding the following elements to your file.
- Welcome contributors to the project: Admit that you are eager for contributions and so happy they found themselves here.
-
Table of Contents:
If your CONTRIBUTING.md file is long, you might consider including a table
of contents with links to different headings in your document. In github,
each heading is given a URL by default, so you can link to that URL in the
appropriate section of the Table of Contents for each heading. Do this in
Markdown by wrapping the heading in [ ] and following with a parenthetical
that includes the URL or header after # like
[Reporting Bugs](#reporting-bugs)
. -
Short Links to Important Resources:
docs: handbook / roadmap (you'll learn more about this in the roadmapping session)
bugs: issue tracker / bug report tool
comms: forum link, developer list, IRC/email
- Testing: how to test the project, where the tests are located in your directories.
- Environment details: how to set up your development environment. This might exist in the README.md depending on the project. If so, include a link.
- How to submit changes: Pull Request protocol etc. You might also include what response they'll get back from the team on submission, or any caveats about the speed of response.
- How to report a bug: Bugs are problems in code, in the functionality of an application or in its UI design; you can submit them through "bug trackers" and most projects invite you to do so, so that they may "debug" with more efficiency and the input of a contributor. Take a look at Atom's example for how to teach people to report bugs to your project.
- Templates: in this section of your file, you might also want to link to a bug report "template" like this one here which contributors can copy and add context to; this will keep your bugs tidy and relevant.
- First bugs for Contributors: Sometimes it is helpful to provide some guidelines for the types of bugs contributors should tackle (should they want to fix the bugs and not just submit them), see Atom's example section here.
- How to request an "enhancement" - enhancements are features that you might like to suggest to a project, but aren't necessarily bugs/problems with the existing code; there is a "label" for enhancments in Github's Issues (where you report bugs), so you can tag issues as "enhancement," and thereby allow contributors to prioritize issues/bugs reported to the project. See Atom's example section.
- Style Guide / Coding conventions - See Atom's example.
- Code of Conduct - You can make this part of CONTRIBUTING.md as Atom did to set the tone for contributions. You can also make this a separate Markdown file and link to it in CONTRIBUTING.md. You can also extend this section to link to your LICENSE.md or any details for project consumers on permissions and license details you have established for building on your work.
- Recognition model - provide a pre-emptive "thank you" for contributing and list any recognition contributors might receive for participating in your project.
- Who is involved? - Open Government's CONTRIBUTING.md has as a name/author, and it might be nice to have a more personal/friendly individual to attact to a project and reach out to with questions. You might list the core contributors and their preferred methods of contact here, or link to a humans.txt file in your root directory (same place as your CONTRIBUTING.md file), which lets people know who they are working. Here is an example of a humans.txt file.
- Where can I ask for help? - a nice extension to the previous section, with links to good comms channels for anyone with questions.
-
Create a CONTRIBUTING.md file
Start by making the structure of your project clean and welcoming, with folder titles that make sense, if you have several projects, consider adopting a template "project structure" that is consistent across projects, take a look at this example.
Author a CONTRIBUTING.md file that fits your projects. Check out the models below in "Followup Resources" and incorporate the appropriate "To Include" items above.
-
Make Supporting Materials
Make a LICENSE: Make a LICENSE.md file that you can reference in your CONTRIBUTING.md file, use the following links to generate and copy the appropriate text: https://creativecommons.org/choose/
http://choosealicense.com/Make a README - make a README.md with a brief description of your project and some setup/installation details that you might link to in your CONTRIBUTING.md file.
Create a system for rewarding people
(OPTIONAL) Include a humans.txt file to give accolades to contributors. Store this in your root directory just like your CONTRIBUTING.md. On deployment, it will be available via your website at www.YOURWEBSITE.com/humans.txt.
(OPTIONAL) Get a DOI for a your project and make Contributor Badges as a way to recognize contributors for their particular contributions.
Hat-tip or thank people in your README.md, especially if you forked their repo. Thank people when they submit issues or requests; be polite.
Glossary
Bug
Bugs are problems in a project, particularly one in code, they are either problems where a program/project does not perform according to intention, or situations where the users' expectations are not met in a program/project. You can read a more granular definition in Code Simplicity or in Wikipedia.
Bug Tracker Tool
Bug reporting tools are applications for processing and organizing bugs submitted by product contributors or users, Bugzilla is Mozilla's bug tracking tool, and Github has it's own issue system built into every repository, in the "issues" tab of your repo. See Wikipedia for more details.
Follow-up Resources & Materials
- Github's Guidelines for setting up CONTRIBUTING.md
- Guidelines for non-code contributions to open source projects
- Working Open Guide: Mechanics of Contributing
- SlideWinder Contributor Site
- Atom Editor's CONTRIBUTING.md
- Open Government's CONTRIBUTING.md
Credits & Attribution
Hat-tip to the Atom and Open Government developers for their fabulous examples, the creators of Humans.txt, Github and Github's documentation, Mou, Dilliger, Bugzilla, Slidewinder, and the Working Open Guide (linked above).