PowerShell/.github/CONTRIBUTING.md
joeyaiello 0eac00ed0b first pass of contributor docs
Rework of contributor docs to reflect actual flow
for both internal and external developers using
the PowerShell/PowerShell repo for the first time.
Includes updates to issue/PR guidelines, repo 101,
and CONTRIBUTING.md.
2016-07-12 13:39:36 -07:00

7.4 KiB

Contribute to PowerShell

We welcome and appreciate contributions from the community. There are many ways to become involved with PowerShell, including filing issues, joining in design conversations, writing and improving documentation, contributing to code. Please read the rest of this document to ensure a smooth contribution process.

New to Git?

Quick Start Check-list

Contributing to Issues

  • Review the GitHub issue management process. It covers the triage process and the definition of labels and assignees as well as a description of how we will verify and close issues
  • Check if the issue you are going to file already exists in our GitHub issues
  • If you can't find your issue already, open a new issue, making sure to follow the directions in the issue template as best you can.

Contributing to Documentation

  • First, check the list of documentation issues to make sure your issue doesn't already exist or that someone is already working on it.
  • If you cannot find an existing issue for your desired work, open a new issue explaining that you'd like to contribute to fix the problem.
  • Follow the guidelines at Contributing to PowerShell Documentation.
  • If you contribute to the PowerShell project in a way that changes the user or developer experience, you are expected to document those changes.

Contributing to Code

Making Breaking Changes

When you make code changes, please pay attention to these that can affect the Public Contract, for example, PowerShell parameter, API or protocols changes. Before making changes to the code, first review the breaking changes contract and follow the guidelines to keep PowerShell backward compatible.

Making Design Changes

To add new features such as cmdlets or making design changes, please follow the PowerShell Request for Comments (RFC) process.

Common Engineering Practices

Other than the guidelines for (coding, the RFC process for design, documentation and testing) discussed above, we encourage contributors to follow these common engineering practices:

Summarize change in 50 characters or less

Provide more detail after the first line. Leave one blank line below the
summary and wrap all lines at 72 characters or less.

If the change fixes an issue, leave another blank line after the final
paragraph and indicate which issue is fixed in the specific format
below.

Fix #42
  • Don't commit code that you didn't write. If you find code that you think is a good fit to add to PowerShell, file an issue and start a discussion before proceeding
  • Create and/or update tests when making code changes
  • Run tests and ensure they are passing before pull request
  • All pull requests must pass CI systems before they can be approved
  • Avoid making big pull requests. Instead, file an issue and start a discussion with the community before you invest a large amount of time
  • Blog and tweet about your contributions frequently!

File Headers

The following file header is used for all PowerShell code. Please use it for new files. For more information, see coding guidelines.

// …  TODO TODO
// Licensed to the PowerShell …. under one or more agreements.
// See the LICENSE file in the project root for more information.

You can find more information about the PowerShell source license and copyright here.

Contributor License Agreement (CLA)

You must sign a PowerShell Contribution License Agreement (CLA) before your pull request will be merged. This a one-time requirement for the PowerShell project. Signing the CLA process is simple and can be done in less than a minute. You don't have to do this up-front. You can simply clone, fork, and submit your pull request as usual. When your pull request is created, it is classified by a CLA bot. If the change is trivial, it's classified as cla-required. Once you sign a CLA, all your existing and future pull requests will be labeled as cla-signed.