Skip to content

Contributing Guide

You'll write the file that tells a stranger exactly how to help your project, then watch one of them try to follow it.

About

A CONTRIBUTING file is the difference between a drive-by PR you have to rewrite and one you can merge. It says how to set up, how to run the tests, how to name a branch, what you'll accept, and how long reviews take. Add issue and PR templates that ask the questions you always end up asking anyway. Then test it on a real person. What counts is a guide a stranger used. What doesn't count is copying another project's guide without changing it.

At a glance

Per requirement
25 XP
Completion bonus
150 XP
Requirements
6
Takes
Two weeks
Skill level
Beginner (done it a few times)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
With other people
Locked for now
Earn two more Common badges in Open Source & Community to open this one. Log in to see how far along you are.

Requirements

  1. 1
    List the five questions you've answered or asked most on your project. If your project is new, use the five you've been asked in other projects. These are the questions the guide has to answer. Take a photo of the list. Photo
  2. 2
    Write CONTRIBUTING.md with setup, test, branch, PR and 'what we won't merge' sections. Keep it under 150 lines with every command in a code block. State the review time honestly, like 'I look at PRs on weekends.' The 'won't merge' section saves everyone the most time. Take a screenshot of the file. Photo
  3. 3
    Add an issue template and a PR template that ask for what you need. The bug template asks for steps, expected, actual and versions. The PR template asks for what, why, how it was tested, and the linked issue. Keep each under 15 lines. Take a screenshot of a new issue showing the template. Photo
  4. 4
    Label five issues as good first issues with enough detail to start from. Each one should say where in the code to look, what done looks like, and roughly how big it is. 'Fix the thing' is not a good first issue. Take a screenshot of the five labeled issues. Photo
  5. 5
    Get one person who's never seen the project to follow the guide and open a PR. A friend, a meetup contact, or a stranger from a 'looking for a first issue' thread all work. Don't help them unless they've been stuck for ten minutes, and note every place they stalled. Take a screenshot of their PR and your stall notes. Photo
  6. 6
    Fix the stalls and merge their PR. Every stall is a missing sentence, so add it. Then merge their work and thank them by name in the release notes or the README. Take a screenshot of the merged PR and the updated guide. Photo