Skip to content
Myr

CONTRIBUTING.md

This file

Path

CONTRIBUTING.md

123 lines · 5.7 KiB · Markdown

Last changed by

[Docs] Clean up wording in docs and shell commentsPeter Dave Hellobefore adoption59d4ea8

History of this file

Take it

The walk stopped after 200 commits: lines older than 5c12680 point at it.

[Dev Deps] update `markdown-link-check`Jordan Harbandbefore adoption5c12680

lines 1–25why, one step back
1# Contributing
23:+1::tada: First off, thanks for taking the time to contribute to `nvm`! :tada::+1:45We love pull requests and issues, they're our favorite.67The following is a set of guidelines for contributing to `nvm` managed by [@LJHarb](https://github.com/ljharb), which is hosted on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.89However, before submitting, please review the following:1011# How Can I Contribute?1213There are lots of ways to get involved. Here are some suggestions of things we'd love some help with.1415## Resolving existing issues1617You can consider helping out with issues already requiring attention - look for a "help wanted" label.1819### How Do I Submit a (Good) Bug Report? :bug:2021Explain the problem and include additional details to help maintainers reproduce the problem:2223* **Use a clear and descriptive title** for the issue to identify the problem.2425* **Describe the exact steps which reproduce the problem** in as many details as possible. For example, start by explaining which command exactly you used in the terminal. When listing steps, **don't just say what you did, but explain how you did it**. For example, if you moved the cursor to the end of a line, explain if you used the mouse, or a keyboard shortcut or a command, and if so which one?

[Docs] Clean up wording in docs and shell commentsPeter Dave Hellobefore adoption59d4ea8

line 26why, one step back
26* **Provide specific examples to demonstrate the steps**. Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples. If you're providing snippets in the issue, use [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).

[Dev Deps] update `markdown-link-check`Jordan Harbandbefore adoption5c12680

lines 27–28why, one step back
27* **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior.
28* **Explain which behavior you expected to see instead and why.**

[Docs] fix CONTRIBUTING grammarrohan436before adoption6a16398

line 29why, one step back
29* **Provide as much context as possible** in order to help others verify and ultimately fix the issue. This includes giving us as many details as possible about your environment, so we can more easily confirm the problem.

[Dev Deps] update `markdown-link-check`Jordan Harbandbefore adoption5c12680

lines 30–123why, one step back
30
31## Documentation3233We are happy to welcome contributions from anyone willing to improve documentation by adding missing information or making it more consistent and coherent.3435# Dev Environment3637Please refer to the [README](README.md) for complete instructions how to install, update, as well as troubleshoot `nvm` in your environment depending on your Operating System.3839# Style Guide / Coding conventions4041### Pull requests4243#### Before creating a pull request4445 - Please include tests. Changes with tests will be merged very quickly.46 - Please manually confirm that your changes work in `bash`, `sh`/`dash`, `ksh`, and `zsh`. Fast tests do run in these shells, but it's nice to manually verify also.47 - Please maintain consistent whitespace - 2-space indentation, trailing newlines in all files, etc.48 - Any time you make a change to your PR, please rebase freshly on top of the default branch. Nobody likes merge commits.4950Even if you don't have all of these items covered, please still feel free to submit a PR/issue! Someone else may be inspired and volunteer to complete it for you.5152#### How to create a pull request5354Create a new branch5556```57git checkout -b issue123458```5960Commit the changes to your branch, including a coherent commit message that follows our [standards](#commit-messages)6162```63git commit -a64```6566Before sending the pull request, make sure your code is running on the latest available code by rebasing onto the upstream source6768```69git fetch upstream70git rebase upstream/main71```7273Verify your changes7475```76npm test77```7879Push your changes8081```82git push origin issue123483```8485Send the [pull request](https://docs.github.com/en/pull-requests), make requested changes, and get merged.8687### Commit Messages8889* Limit the first line of the commit message (message summary) to 72 characters or less.90* Use the present tense ("Add feature" not "Added feature") and imperative mood ("Move cursor to..." not "Moves cursor to...") when providing a description of what you did.91* If your PR addresses an issue, reference it in the body of the commit message.92* See the rest of the conventions [here](https://gist.github.com/ljharb/772b0334387a4bee89af24183114b3c7)9394#### Commit message example9596```97[Tag]: Short description of what you did9899Longer description here if necessary100101Fixes #1234102```103104> **Note:** Add co-authors to your commit message for commits with multiple authors105106```107Co-authored-by: Name Here <email@here>108```109110111# Code of Conduct112[Code of Conduct](https://github.com/nvm-sh/nvm/blob/HEAD/CODE_OF_CONDUCT.md)113114# Where can I ask for help?115If you have any questions, please contact [@LJHarb](mailto:ljharb@gmail.com).116117# Developer's Certificate of Origin 1.1118119By making a contribution to this project, I certify that:120 - The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or121 - The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or122 - The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.123 - I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.