2017-06-08 01:05:39 +08:00
# Contributing to PowerShell
2016-01-21 03:33:57 +08:00
2016-07-28 07:31:07 +08:00
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,
and contributing to the code.
Please read the rest of this document to ensure a smooth contribution process.
2016-03-15 03:03:04 +08:00
2017-06-08 01:05:39 +08:00
## Intro to Git and GitHub
2016-07-28 07:31:07 +08:00
* Make sure you have a [GitHub account ](https://github.com/signup/free ).
* Learning Git:
2023-07-18 02:03:59 +08:00
* GitHub Help: [Good Resources for Learning Git and GitHub][good-git-resources]
* [Git Basics ](../docs/git/basics.md ): install and getting started
2016-07-28 07:31:07 +08:00
* [GitHub Flow Guide ](https://guides.github.com/introduction/flow/ ):
2017-06-08 01:05:39 +08:00
step-by-step instructions of GitHub Flow
2016-07-28 07:31:07 +08:00
2017-06-08 01:05:39 +08:00
## Quick Start Checklist
2016-07-28 07:31:07 +08:00
2020-03-12 02:46:19 +08:00
* Review the [Contributor License Agreement][CLA] requirement.
2016-07-28 07:31:07 +08:00
* Get familiar with the [PowerShell repository ](../docs/git ).
2016-01-21 03:33:57 +08:00
2017-06-08 01:05:39 +08:00
## Contributing to Issues
2016-03-15 08:25:57 +08:00
2016-08-04 02:06:36 +08:00
* Review [Issue Management][issue-management].
2016-07-28 07:31:07 +08:00
* Check if the issue you are going to file already exists in our [GitHub issues][open-issue].
* If you can't find your issue already,
2019-11-18 15:37:55 +08:00
[open a new issue ](https://github.com/PowerShell/PowerShell/issues/new/choose ),
2016-07-28 07:31:07 +08:00
making sure to follow the directions as best you can.
2016-11-15 01:08:02 +08:00
* If the issue is marked as [`Up-for-Grabs`][up-for-grabs],
2017-02-24 05:13:06 +08:00
the PowerShell Maintainers are looking for help with the issue.
2019-01-05 02:50:08 +08:00
* Issues marked as [`First-Time-Issue`][first-time-issue],
are identified as being easy and a great way to learn about this project and making
contributions.
2016-03-15 08:25:57 +08:00
2017-06-08 01:05:39 +08:00
## Contributing to Documentation
2016-07-28 07:31:07 +08:00
2016-08-04 02:06:36 +08:00
### Contributing to documentation related to PowerShell
2016-07-20 06:18:10 +08:00
2019-03-13 02:54:49 +08:00
Please see the [Contributor Guide in `MicrosoftDocs/PowerShell-Docs` ](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/CONTRIBUTING.md ).
2016-07-20 06:18:10 +08:00
2019-06-26 01:55:42 +08:00
#### Quick steps if you're changing an existing cmdlet
If you made a change to an existing cmdlet and would like to update the documentation using PlatyPS,
here are the quick steps:
1. Install
`PlatyPS`
if you don't have it -
`Install-Module PlatyPS` .
1. Clone the
[`MicrosoftDocs/PowerShell-Docs` ](https://github.com/MicrosoftDocs/PowerShell-Docs )
2023-07-18 02:03:59 +08:00
repository if you don't already have it.
2019-06-26 01:55:42 +08:00
1. Start your local build of PowerShell
(with the change to the cmdlet you made).
2023-07-18 02:03:59 +08:00
1. Find the cmdlet's Markdown file in PowerShell Docs - usually under
2019-06-26 01:55:42 +08:00
`PowerShell-Docs/reference/<latest powershell version>/<module cmdlet is a part of>/<your changed cmdlet>.md`
(Ex. `PowerShell-Docs/reference/7/Microsoft.PowerShell.Utility/Select-String.md` )
1. Run
2023-07-18 02:03:59 +08:00
`Update-MarkdownHelp -Path <path to cmdlet Markdown file>`
2019-06-26 01:55:42 +08:00
which will update the documentation for you.
1. Make any additional changes needed for the cmdlet to be properly documented.
2023-07-18 02:03:59 +08:00
1. Send a Pull Request to the PowerShell Docs repository with the changes that
2019-06-26 01:55:42 +08:00
`PlatyPS`
made.
1. Link your Docs PR to your original change PR.
2016-08-10 07:42:34 +08:00
### Contributing to documentation related to maintaining or contributing to the PowerShell project
2016-07-20 06:18:10 +08:00
2016-07-28 07:31:07 +08:00
* When writing Markdown documentation, use [semantic linefeeds][].
2016-09-13 09:21:29 +08:00
In most cases, it means "one clause/idea per line".
2023-07-18 02:03:59 +08:00
* Otherwise, these issues should be treated like any other issue in this repository.
2016-07-07 07:31:31 +08:00
2024-06-15 07:44:39 +08:00
#### Spell checking documentation
2016-10-31 16:13:23 +08:00
2019-01-17 07:30:55 +08:00
Documentation is spellchecked. We use the
2023-07-18 02:03:59 +08:00
[textlint ](https://github.com/textlint/textlint/wiki/Collection-of-textlint-rule ) command-line tool,
which can be run in interactive mode to correct typos.
2016-10-31 16:13:23 +08:00
2024-06-15 07:44:39 +08:00
To run the spell checker, follow these steps:
2016-10-31 16:13:23 +08:00
2021-01-12 11:58:19 +08:00
* install [Node.js ](https://nodejs.org/en/ ) (v10 or up)
2023-07-18 02:03:59 +08:00
* install [textlint ](https://github.com/textlint/textlint/wiki/Collection-of-textlint-rule ) by
`npm install -g textlint textlint-rule-terminology`
* run `textlint --rule terminology <changedFileName>` ,
adding `--fix` will accept all the recommendations.
If you need to add a term or disable checking part of a file see the [configuration sections of the rule ](https://github.com/sapegin/textlint-rule-terminology ).
2019-01-17 07:30:55 +08:00
2019-02-21 05:24:26 +08:00
#### Checking links in documentation
2019-01-17 07:30:55 +08:00
Documentation is link-checked. We make use of the
2023-07-18 02:03:59 +08:00
`markdown-link-check` command-line tool,
2019-02-21 05:24:26 +08:00
which can be run to see if any links are dead.
2019-01-17 07:30:55 +08:00
To run the link-checker, follow these steps:
2021-01-12 11:58:19 +08:00
* install [Node.js ](https://nodejs.org/en/ ) (v10 or up)
2023-07-18 02:03:59 +08:00
* install `markdown-link-check` by
2021-01-12 11:58:19 +08:00
`npm install -g markdown-link-check@3.8.5`
2019-01-17 07:30:55 +08:00
* run `find . \*.md -exec markdown-link-check {} \;`
2017-06-08 01:05:39 +08:00
## Contributing to Code
2016-03-15 08:25:57 +08:00
2017-06-24 00:23:50 +08:00
### Code Editor
You should use the multi-platform [Visual Studio Code (VS Code)][use-vscode-editor].
2016-07-20 06:18:10 +08:00
### Building and testing
2017-06-08 01:05:39 +08:00
2016-07-20 06:18:10 +08:00
#### Building PowerShell
2017-06-08 01:05:39 +08:00
2016-07-28 07:31:07 +08:00
Please see [Building PowerShell ](../README.md#building-the-repository ).
2017-06-08 01:05:39 +08:00
2016-07-20 06:18:10 +08:00
#### Testing PowerShell
2017-06-08 01:05:39 +08:00
2020-03-12 02:46:19 +08:00
Please see PowerShell [Testing Guidelines - Running Tests Outside of CI][running-tests-outside-of-ci] on how to test your build locally.
2016-07-20 06:18:10 +08:00
### Finding or creating an issue
1. Follow the instructions in [Contributing to Issues][contribute-issues] to find or open an issue.
2017-06-08 01:05:39 +08:00
1. Mention in the issue that you are working on the issue and ask `@powershell/powershell` for an assignment.
2016-07-20 06:18:10 +08:00
### Forks and Pull Requests
GitHub fosters collaboration through the notion of [pull requests][using-prs].
2016-07-28 07:31:07 +08:00
On GitHub, anyone can [fork][fork-a-repo] an existing repository
into their own user account, where they can make private changes to their fork.
To contribute these changes back into the original repository,
a user simply creates a pull request in order to "request" that the changes be taken "upstream".
2016-07-20 06:18:10 +08:00
Additional references:
2017-06-08 01:05:39 +08:00
2016-07-28 07:31:07 +08:00
* GitHub's guide on [forking ](https://guides.github.com/activities/forking/ )
2016-07-20 06:18:10 +08:00
* GitHub's guide on [Contributing to Open Source ](https://guides.github.com/activities/contributing-to-open-source/#pull-request )
2016-08-02 02:21:55 +08:00
* GitHub's guide on [Understanding the GitHub Flow ](https://guides.github.com/introduction/flow/ )
2016-07-20 06:18:10 +08:00
### Lifecycle of a pull request
2016-08-13 09:19:12 +08:00
#### Before submitting
2018-01-28 02:28:33 +08:00
* If your change would fix a security vulnerability,
first follow the [vulnerability issue reporting policy][vuln-reporting], before submitting a PR.
2016-08-13 09:19:12 +08:00
* To avoid merge conflicts, make sure your branch is rebased on the `master` branch of this repository.
* Many code changes will require new tests,
so make sure you've added a new test if existing tests do not effectively test the code changed.
* Clean up your commit history.
Each commit should be a **single complete** change.
This discipline is important when reviewing the changes as well as when using `git bisect` and `git revert` .
2017-09-05 01:29:20 +08:00
#### Pull request - Submission
2016-07-28 07:31:07 +08:00
2016-08-02 02:21:55 +08:00
**Always create a pull request to the `master` branch of this repository**.
2016-07-20 06:18:10 +08:00
2017-12-19 03:23:00 +08:00
![GitHub-PR.png ](Images/GitHub-PR.png )
2016-07-20 06:18:10 +08:00
2017-09-09 00:24:26 +08:00
* It's recommended to avoid a PR with too many changes.
A large PR not only stretches the review time, but also makes it much harder to spot issues.
In such case, it's better to split the PR to multiple smaller ones.
For large features, try to approach it in an incremental way, so that each PR won't be too big.
2016-08-04 02:06:36 +08:00
* If you're contributing in a way that changes the user or developer experience, you are expected to document those changes.
2017-06-08 01:05:39 +08:00
See [Contributing to documentation related to PowerShell ](#contributing-to-documentation-related-to-powershell ).
2016-07-28 07:31:07 +08:00
* Add a meaningful title of the PR describing what change you want to check in.
2017-09-09 00:24:26 +08:00
Don't simply put: "Fix issue #5 ".
Also don't directly use the issue title as the PR title.
An issue title is to briefly describe what is wrong, while a PR title is to briefly describe what is changed.
A better example is: "Add Ensure parameter to New-Item cmdlet", with "Fix #5 " in the PR's body.
2016-07-28 07:31:07 +08:00
* When you create a pull request,
2020-03-12 02:46:19 +08:00
include a summary about your changes in the PR description.
2024-06-15 07:44:39 +08:00
The description is used to create changelogs,
2017-09-09 00:24:26 +08:00
so try to have the first sentence explain the benefit to end users.
If the changes are related to an existing GitHub issue,
2020-03-12 02:46:19 +08:00
please reference the issue in the PR description (e.g. ```Fix #11 ```).
2016-07-28 07:31:07 +08:00
See [this][closing-via-message] for more details.
2017-12-05 06:32:02 +08:00
2017-06-08 01:05:39 +08:00
* Please use the present tense and imperative mood when describing your changes:
2023-07-18 02:03:59 +08:00
* Instead of "Adding support for Windows Server 2012 R2", write "Add support for Windows Server 2012 R2".
* Instead of "Fixed for server connection issue", write "Fix server connection issue".
2017-06-08 01:05:39 +08:00
2023-07-18 02:03:59 +08:00
This form is akin to giving commands to the codebase
2017-06-08 01:05:39 +08:00
and is recommended by the Git SCM developers.
It is also used in the [Git commit messages ](#common-engineering-practices ).
* If the change is related to a specific resource, please prefix the description with the resource name:
2023-07-18 02:03:59 +08:00
* Instead of "New parameter 'ConnectionCredential' in New-SqlConnection",
2017-06-08 01:05:39 +08:00
write "New-SqlConnection: add parameter 'ConnectionCredential'".
* If your change warrants an update to user-facing documentation,
a Maintainer will add the `Documentation Needed` label to your PR and add an issue to the [PowerShell-Docs repository][PowerShell-Docs],
so that we make sure to update official documentation to reflect your contribution.
As an example, this requirement includes any changes to cmdlets (including cmdlet parameters) and features which have associated about_* topics.
While not required, we appreciate any contributors who add this label and create the issue themselves.
Even better, all contributors are free to contribute the documentation themselves.
(See [Contributing to documentation related to PowerShell ](#contributing-to-documentation-related-to-powershell ) for more info.)
2018-02-10 02:40:28 +08:00
* If your change adds a new source file, ensure the appropriate copyright and license headers is on top.
It is standard practice to have both a copyright and license notice for each source file.
2023-07-18 02:03:59 +08:00
* For `.h` , `.cpp` , and `.cs` files use the copyright header with empty line after it:
2018-02-10 02:40:28 +08:00
2018-09-08 07:53:22 +08:00
```c#
2020-03-25 02:08:37 +08:00
// Copyright (c) Microsoft Corporation.
2018-02-10 02:40:28 +08:00
// Licensed under the MIT License.
2018-09-08 07:53:22 +08:00
< Add empty line here >
```
2018-02-10 02:40:28 +08:00
2023-07-18 02:03:59 +08:00
* For `.ps1` and `.psm1` files use the copyright header with empty line after it:
2018-02-10 02:40:28 +08:00
2018-09-05 02:23:45 +08:00
```powershell
2020-03-25 02:08:37 +08:00
# Copyright (c) Microsoft Corporation.
2018-02-10 02:40:28 +08:00
# Licensed under the MIT License.
2018-09-08 07:53:22 +08:00
< Add empty line here >
2018-09-05 02:23:45 +08:00
```
2018-02-10 02:40:28 +08:00
* If your change adds a new module manifest (.psd1 file), ensure that:
```powershell
Author = "PowerShell"
Company = "Microsoft Corporation"
2020-03-25 02:08:37 +08:00
Copyright = "Copyright (c) Microsoft Corporation."
2018-02-10 02:40:28 +08:00
```
2019-02-21 05:24:26 +08:00
is at the top.
2016-07-20 06:18:10 +08:00
2017-12-09 04:14:00 +08:00
### Pull Request - Work in Progress
* If your pull request is not ready to merge, please add the prefix `WIP:` to the beginning of the title and remove the prefix when the PR is ready.
2016-07-28 07:31:07 +08:00
#### Pull Request - Automatic Checks
2016-08-02 02:21:55 +08:00
2016-07-28 07:31:07 +08:00
* If this is your first contribution to PowerShell,
you may be asked to sign a [Contribution Licensing Agreement][CLA] (CLA)
before your changes will be accepted.
* Make sure you follow the [Common Engineering Practices ](#common-engineering-practices )
and [testing guidelines ](../docs/testing-guidelines/testing-guidelines.md ).
* After submitting your pull request,
2019-01-11 05:05:22 +08:00
our [CI system (Azure DevOps Pipelines)][ci-system]
2016-07-28 07:31:07 +08:00
will run a suite of tests and automatically update the status of the pull request.
2024-06-15 07:44:39 +08:00
* Our CI contains automated spell checking and link checking for Markdown files. If there is any false-positive,
[run the spell checker command-line tool in interactive mode ](#spell-checking-documentation )
2016-10-31 16:13:23 +08:00
to add words to the `.spelling` file.
2018-09-05 02:23:45 +08:00
* Our packaging test may not pass and ask you to update `files.wxs` file if you add/remove/update nuget package references or add/remove assert files.
You could update the file manually in accordance with messages in the test log file. Or you can use automatically generated file. To get the file you should build the msi package locally:
```powershell
Import-Module .\build.psm1
Start-PSBuild -Clean -CrossGen -PSModuleRestore -Runtime win7-x64 -Configuration Release -ReleaseTag < release tag >
Import-Module .\tools\packaging
Start-PSPackage -Type msi -ReleaseTag < release tag > -WindowsRuntime 'win7-x64' -SkipReleaseChecks
```
Last command will report where new file is located.
2016-10-31 16:13:23 +08:00
2017-09-05 01:29:20 +08:00
#### Pull Request - Workflow
1. The PR *author* creates a pull request from a fork.
1. The *author* ensures that their pull request passes the [CI system][ci-system] build.
- If the build fails, a [Repository Maintainer][repository-maintainer] adds the `Review - waiting on author` label to the pull request.
The *author* can then continue to update the pull request until the build passes.
1. If the *author* knows whom should participate in the review, they should add them otherwise they can add the recommended *reviewers* .
1. Once the build passes, if there is not sufficient review, the *maintainer* adds the `Review - needed` label.
1. An [Area Expert][area-expert] should also review the pull request.
- If the *author* does not meet the *reviewer* 's standards, the *reviewer* makes comments. A *maintainer* then removes the `Review - needed` label and adds
the `Review - waiting on author` label. The *author* must address the comments and repeat from step 2.
- If the *author* meets the *reviewer* 's standards, the *reviewer* approves the PR. A maintainer then removes the `need review` label.
1. Once the code review is completed, a *maintainer* merges the pull request after one business day to allow for additional critical feedback.
#### Pull Request - Roles and Responsibilities
1. The PR *author* is responsible for moving the PR forward to get it Approved.
This includes addressing feedback within a timely period and indicating feedback has been addressed by adding a comment and mentioning the specific *reviewers* .
When updating your pull request, please **create new commits** and **don't rewrite the commits history** .
This way it's very easy for the reviewers to see diff between iterations.
If you rewrite the history in the pull request, review could be much slower.
2019-03-28 04:29:15 +08:00
The PR is likely to be squash-merged to master by the *assignee* .
2017-09-05 01:29:20 +08:00
1. *Reviewers* are anyone who wants to contribute.
They are responsible for ensuring the code: addresses the issue being fixed, does not create new issues (functional, performance, reliability, or security), and implements proper design.
*Reviewers* should use the `Review changes` drop down to indicate they are done with their review.
- `Request changes` if you believe the PR merge should be blocked if your feedback is not addressed,
- `Approve` if you believe your feedback has been addressed or the code is fine as-is, it is customary (although not required) to leave a simple "Looks good to me" (or "LGTM") as the comment for approval.
- `Comment` if you are making suggestions that the *author* does not have to accept.
2020-03-12 02:46:19 +08:00
Early in the review, it is acceptable to provide feedback on coding formatting based on the published [Coding Guidelines][coding-guidelines], however,
2023-07-18 02:03:59 +08:00
after the PR has been approved, it is generally *not* recommended to focus on formatting issues unless they go against the [Coding Guidelines][coding-guidelines].
2017-09-05 01:29:20 +08:00
Non-critical late feedback (after PR has been approved) can be submitted as a new issue or new pull request from the *reviewer* .
2020-03-12 02:46:19 +08:00
1. *Assignees* who are always *Maintainers* ensure that proper review has occurred and if they believe one approval is not sufficient, the *maintainer* is responsible to add more reviewers.
2017-09-05 01:29:20 +08:00
An *assignee* may also be a reviewer, but the roles are distinct.
Once the PR has been approved and the CI system is passing, the *assignee* will merge the PR after giving one business day for any critical feedback.
For more information on the PowerShell Maintainers' process, see the [documentation ](../docs/maintainers ).
#### Pull Requests - Abandoned
A pull request with the label `Review - waiting on author` for **more than two weeks** without a word from the author is considered abandoned.
In these cases:
1. *Assignee* will ping the author of PR to remind them of pending changes.
- If the *author* responds, it's no longer an abandoned; the pull request proceeds as normal.
1. If the *author* does not respond **within a week** :
- If the *reviewer* 's comments are very minor, merge the change, fix the code immediately, and create a new PR with the fixes addressing the minor comments.
- If the changes required to merge the pull request are significant but needed, *assignee* creates a new branch with the changes and open an issue to merge the code into the dev branch.
Mention the original pull request ID in the description of the new issue and close the abandoned pull request.
2023-07-18 02:03:59 +08:00
- If the changes in an abandoned pull request are no longer needed (e.g. due to refactoring of the codebase or a design change), *assignee* will simply close the pull request.
2016-03-16 02:25:58 +08:00
2017-06-08 01:05:39 +08:00
## Making Breaking Changes
2016-04-08 04:46:00 +08:00
2016-07-28 07:31:07 +08:00
When you make code changes,
2020-03-12 02:46:19 +08:00
please pay attention to these that can affect the [Public Contract][breaking-changes-contract].
2016-07-28 07:31:07 +08:00
For example, changing PowerShell parameters, APIs, or protocols break the public contract.
Before making changes to the code,
2020-03-12 02:46:19 +08:00
first review the [breaking changes contract][breaking-changes-contract]
2016-06-24 08:11:56 +08:00
and follow the guidelines to keep PowerShell backward compatible.
2016-03-16 02:25:58 +08:00
2017-06-08 01:05:39 +08:00
## Making Design Changes
2016-07-28 07:31:07 +08:00
To add new features such as cmdlets or making design changes,
2020-03-12 02:46:19 +08:00
please follow the [PowerShell Request for Comments (RFC)][rfc-process] process.
2016-06-25 01:34:32 +08:00
2017-06-08 01:05:39 +08:00
## Common Engineering Practices
2016-07-28 07:31:07 +08:00
2020-03-12 02:46:19 +08:00
Other than the guidelines for [coding][coding-guidelines],
the [RFC process][rfc-process] for design,
[documentation ](#contributing-to-documentation ) and [testing ](../docs/testing-guidelines/testing-guidelines.md ) discussed above,
2016-07-28 07:31:07 +08:00
we encourage contributors to follow these common engineering practices:
2016-07-20 06:18:10 +08:00
2016-07-28 07:31:07 +08:00
* Format commit messages following these guidelines:
2016-03-15 02:18:44 +08:00
2017-09-05 01:29:20 +08:00
```text
2016-06-24 08:11:56 +08:00
Summarize change in 50 characters or less
2016-01-21 03:33:57 +08:00
2016-07-28 07:31:07 +08:00
Similar to email, this is the body of the commit message,
and the above is the subject.
Always leave a single blank line between the subject and the body
so that `git log` and `git rebase` work nicely.
The subject of the commit should use the present tense and
imperative mood, like issuing a command:
> Makes abcd do wxyz
2016-01-21 03:33:57 +08:00
2016-07-28 07:31:07 +08:00
The body should be a useful message explaining
why the changes were made.
2016-01-21 03:33:57 +08:00
2016-07-28 07:31:07 +08:00
If significant alternative solutions were available,
explain why they were discarded.
Keep in mind that the person most likely to refer to your commit message
is you in the future, so be detailed!
As Git commit messages are most frequently viewed in the terminal,
you should wrap all lines around 72 characters.
Using semantic line feeds (breaks that separate ideas)
is also appropriate, as is using Markdown syntax.
2016-01-21 03:33:57 +08:00
```
2016-06-25 01:34:32 +08:00
2019-01-25 04:50:11 +08:00
* These are based on Tim Pope's [guidelines ](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ),
2016-07-28 07:31:07 +08:00
Git SCM [submitting patches ](https://git.kernel.org/cgit/git/git.git/tree/Documentation/SubmittingPatches ),
Brandon Rhodes' [semantic linefeeds][],
and John Gruber's [Markdown syntax ](https://daringfireball.net/projects/markdown/syntax ).
* 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.
2020-03-12 02:46:19 +08:00
* Run tests and ensure they are passing before opening a pull request.
2016-07-28 07:31:07 +08:00
* All pull requests **must** pass CI systems before they can be approved.
* Avoid making big pull requests.
Before you invest a large amount of time,
file an issue and start a discussion with the community.
2016-06-24 08:11:56 +08:00
2017-06-08 01:05:39 +08:00
## Contributor License Agreement (CLA)
2016-07-28 07:31:07 +08:00
To speed up the acceptance of any contribution to any PowerShell repositories,
2020-03-12 02:46:19 +08:00
you should sign the Microsoft [Contributor License Agreement (CLA) ](https://cla.microsoft.com/ ) ahead of time.
2019-02-05 03:52:47 +08:00
If you've already contributed to PowerShell or Microsoft repositories in the past, congratulations!
2016-07-28 07:31:07 +08:00
You've already completed this step.
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.
2019-02-05 03:52:47 +08:00
When your pull request is created, it is checked by the CLA bot.
If you have signed the CLA, the status check will be set to `passing` . Otherwise, it will stay at `pending` .
Once you sign a CLA, all your existing and future pull requests will have the status check automatically set at `passing` .
2016-07-20 06:18:10 +08:00
2023-06-20 00:21:25 +08:00
## Code of Conduct Enforcement
2024-06-15 07:44:39 +08:00
Reports of abuse will be reviewed by the [PowerShell Committee][ps-committee] and if it has been determined that violations of the
[Code of Conduct ](../CODE_OF_CONDUCT.md ) has occurred, then a temporary ban may be imposed.
2023-06-20 00:21:25 +08:00
The duration of the temporary ban will depend on the impact and/or severity of the infraction.
This can vary from 1 day, a few days, a week, and up to 30 days.
Repeat offenses may result in a permanent ban from the PowerShell org.
2016-07-20 06:18:10 +08:00
[running-tests-outside-of-ci]: ../docs/testing-guidelines/testing-guidelines.md#running-tests-outside-of-ci
2016-08-04 02:06:36 +08:00
[issue-management]: ../docs/maintainers/issue-management.md
2019-07-17 04:27:42 +08:00
[vuln-reporting]: ./SECURITY.md
2016-07-20 06:18:10 +08:00
[using-prs]: https://help.github.com/articles/using-pull-requests/
[fork-a-repo]: https://help.github.com/articles/fork-a-repo/
[closing-via-message]: https://help.github.com/articles/closing-issues-via-commit-messages/
[CLA]: #contributor -license-agreement-cla
[ci-system]: ../docs/testing-guidelines/testing-guidelines.md#ci-system
[good-git-resources]: https://help.github.com/articles/good-resources-for-learning-git-and-github/
[contribute-issues]: #contributing -to-issues
[open-issue]: https://github.com/PowerShell/PowerShell/issues
2016-11-15 02:05:07 +08:00
[up-for-grabs]: https://github.com/powershell/powershell/issues?q=is%3Aopen+is%3Aissue+label%3AUp-for-Grabs
2019-01-25 04:50:11 +08:00
[semantic linefeeds]: https://rhodesmill.org/brandon/2012/one-sentence-per-line/
2017-06-24 00:23:50 +08:00
[PowerShell-Docs]: https://github.com/powershell/powershell-docs/
2023-07-18 06:54:17 +08:00
[use-vscode-editor]: https://learn.microsoft.com/dotnet/core/tutorials/with-visual-studio-code
2017-09-05 01:29:20 +08:00
[repository-maintainer]: ../docs/community/governance.md#repository-maintainers
[area-expert]: ../docs/community/governance.md#area-experts
2019-01-05 02:50:08 +08:00
[first-time-issue]: https://github.com/powershell/powershell/issues?q=is%3Aopen+is%3Aissue+label%3AFirst-Time-Issue
2020-03-12 02:46:19 +08:00
[coding-guidelines]: ../docs/dev-process/coding-guidelines.md
[breaking-changes-contract]: ../docs/dev-process/breaking-change-contract.md
[rfc-process]: https://github.com/PowerShell/PowerShell-RFC
2024-06-15 07:44:39 +08:00
[ps-committee]: ../docs/community/governance.md#powershell-committee