Accepting Contributions to Open Source Projects
This page addresses topics related to accepting contributions into our projects.
You are here because you have published a project and people want to contribute to it. This is “business as usual” for open source, but once in a while you will run into something that gives you pause. When that happens, pause and ask the SDRT for help.
Most Open Source Projects
When publishing a project, we include a Contributing.md file which informs people at large how we want them to work with us. Most of the time you’ll want people to start with an issue. This allows people to discuss if we need a code fix at all. GitHub issues also invite other people to weigh in on the code – since they might be working on the same issue in parallel. That said, as people become very comfortable with the flow of the project, often contributors jump right into issuing a pull request.
We allow our projects to self-govern and determine how much they insist on formality.
Set Clear Expectations
Our primary rule when it comes to the contribution process is to be very clear with the community. For example, you might not want contributions to the project. That’s OK as long as you say so. Some projects are published with the intent to be available to read (maybe associated with a research paper), but not grow. Some projects might have been active and are no longer. We have a version of the Contributing.md file you can modify and use for those projects.
Contributor Interactions
Open source projects often find themselves in debate about features and fixes. Some members might want to add features that other say create instability or impact performance. Sometimes people want to add a dependency that others don’t want to have. This is normal and expected. However we insist that contributors interact professionally within the context of our projects. We ask people to disagree without being disagreeable (or worse).
Our projects will contain a Code of Conduct that articulates what we expect and how we address situations that might come up. We don’t want project members to address conduct issues in the project themselves; please loop in the SDRT. These matters unwravel quickly and are often best addressed by people outside of the day-to day project.
In addition, we ask our projects to be very welcoming to newcomers. Please add issues that newcomers can address as a way to get initiated into a project. Please be receptive to ‘newbie’ questions and respond in an informative and helpful tone. We are all new to every project once.
Contribution Licenses
Some open source projects require contributors to sign a Contributor License Agreement, also known as a CLA. In fact some open source projects require a copyright assignment agreement (which is like a CLA, but requires the contributor to assign the copyrights to the project, rather than simply license them to the project). Most open source projects, however, operate under the inbound=outbound
rule that suggests the contributions to a project are licensed in the very same way the project itself is licensed.
A project maintainer might get asked by a potential contributor to clarify if they need to sign a CLA to contribute to our projects. The answer is no
; we simply require that when a contributor issues a pull request, they do so with the declaration text we insert into the pull request template.
If a contributor is unwilling to confirm they have the authority necessary to make this contribution on behalf of its copyright owner
then we don’t want their contribution. Moreover, if the contributor indicates their contribution is being made without consent of the copyright owner, we certainly don’t want their contribution. CLAs exist to protect projects from the rare and unlikely situation that code is being contributed without permission. When this happens, it is usually due to an employee contributing their company’s code to a project without permission from their company. We’d rather help the contributor get permission. Loop in the SDRT and we’ll help if we can.
GitHub permissions
When we create your project, we’ll set up a permissions team in GitHub and add the GitHub IDs of all employees on the project into our GitHub org. Project maintainers may request that non-employees have commit privileges on projects. We’ll add them as external collaborators. This way all members of our GitHub org are current employees, but non-employees can participate as full-fledged project participants. When people leave the company, we’ll remove them from the org. We may convert them to an external collaborator, or remove them from the project – that’s up to the project maintainers to tell us.