|
| 1 | +# Contributing |
| 2 | + |
| 3 | +This project welcomes contributions and suggestions. Most contributions require you to agree to a |
| 4 | +Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us |
| 5 | +the rights to use your contribution. For details, visit [Microsoft CLA](https://cla.microsoft.com). |
| 6 | + |
| 7 | +When you submit a pull request, a CLA-bot will automatically determine whether you need to provide |
| 8 | +a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions |
| 9 | +provided by the bot. You will only need to do this once across all repos using our CLA. |
| 10 | + |
| 11 | +This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). |
| 12 | +For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or |
| 13 | +contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. |
| 14 | + |
| 15 | +- [Code of Conduct](#coc) |
| 16 | +- [Issues and Bugs](#issue) |
| 17 | +- [Feature Requests](#feature) |
| 18 | +- [Submission Guidelines](#submit) |
| 19 | + |
| 20 | +## Code of Conduct |
| 21 | + |
| 22 | +Help us keep this project open and inclusive. Please read and follow our [Code of Conduct](https://opensource.microsoft.com/codeofconduct/). |
| 23 | + |
| 24 | +## Found an Issue |
| 25 | + |
| 26 | +If you find a bug in the source code or a mistake in the documentation, you can help us by |
| 27 | +[submitting an issue](#submit-issue) to the GitHub Repository. Even better, you can |
| 28 | +[submit a Pull Request](#submit-pr) with a fix. |
| 29 | + |
| 30 | +## Want a Feature |
| 31 | + |
| 32 | +You can *request* a new feature by [submitting an issue](#submit-issue) to the GitHub |
| 33 | +Repository. If you would like to *implement* a new feature, please submit an issue with |
| 34 | +a proposal for your work first, to be sure that we can use it. |
| 35 | + |
| 36 | +- **Small Features** can be crafted and directly [submitted as a Pull Request](#submit-pr). |
| 37 | + |
| 38 | +## Submission Guidelines |
| 39 | + |
| 40 | +### Submitting an Issue |
| 41 | + |
| 42 | +Before you submit an issue, search the archive, maybe your question was already answered. |
| 43 | + |
| 44 | +If your issue appears to be a bug, and hasn't been reported, open a new issue. |
| 45 | +Help us to maximize the effort we can spend fixing issues and adding new |
| 46 | +features, by not reporting duplicate issues. Providing the following information will increase the |
| 47 | +chances of your issue being dealt with quickly: |
| 48 | + |
| 49 | +- **Overview of the Issue** - if an error is being thrown a non-minified stack trace helps |
| 50 | +- **Version** - what version is affected (e.g. 0.1.2) |
| 51 | +- **Motivation for or Use Case** - explain what are you trying to do and why the current behavior is a bug for you |
| 52 | +- **Browsers and Operating System** - is this a problem with all browsers? |
| 53 | +- **Reproduce the Error** - provide a live example or a unambiguous set of steps |
| 54 | +- **Related Issues** - has a similar issue been reported before? |
| 55 | +- **Suggest a Fix** - if you can't fix the bug yourself, perhaps you can point to what might be |
| 56 | + causing the problem (line of code or commit) |
| 57 | + |
| 58 | +You can file new issues by providing the above information at the corresponding repository's issues link: `https://github.com/[organization-name]/[repository-name]/issues/new]` |
| 59 | + |
| 60 | +### Submitting a Pull Request (PR) |
| 61 | + |
| 62 | +Before you submit your Pull Request (PR) consider the following guidelines: |
| 63 | + |
| 64 | +- Search the repository `https://github.com/[organization-name]/[repository-name]/pulls` for an open or closed PR |
| 65 | + that relates to your submission. You don't want to duplicate effort. |
| 66 | + |
| 67 | +- Make your changes in a new git fork: |
| 68 | + |
| 69 | +- Commit your changes using a descriptive commit message |
| 70 | +- Push your fork to GitHub: |
| 71 | +- In GitHub, create a pull request |
| 72 | +- If we suggest changes then: |
| 73 | + - Make the required updates. |
| 74 | + - Rebase your fork and force push to your GitHub repository (this will update your Pull Request): |
| 75 | + |
| 76 | + ```shell |
| 77 | + |
| 78 | + git rebase main -i |
| 79 | + git push -f |
| 80 | + |
| 81 | + ``` |
| 82 | + |
| 83 | +That's it! Thank you for your contribution! |
0 commit comments