|
| 1 | +# Contributing to QLNet |
| 2 | + |
| 3 | +Love QLNet and want to help? Thanks so much, there's something to do for everybody! |
| 4 | + |
| 5 | +Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved. |
| 6 | + |
| 7 | +Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue or assessing patches and features. |
| 8 | + |
| 9 | +## Using the issue tracker |
| 10 | + |
| 11 | +The [issue tracker](https://github.com/amaggiulli/qlnet/issues) is |
| 12 | +the preferred channel for [bug reports](#bugs), [features requests](#features) |
| 13 | +and [submitting pull requests](#pull-requests). |
| 14 | + |
| 15 | +<a name="bugs"></a> |
| 16 | +## Bug reports |
| 17 | + |
| 18 | +A bug is a _demonstrable problem_ that is caused by the code in the repository. |
| 19 | +Good bug reports are extremely helpful - thank you! |
| 20 | + |
| 21 | +Guidelines for bug reports: |
| 22 | + |
| 23 | +1. **Use the GitHub issue search** — check if the issue has already been reported. |
| 24 | + |
| 25 | +2. **Check if the issue has been fixed** — try to reproduce it using the latest `master` or development branch in the repository. |
| 26 | + |
| 27 | +3. **Isolate the problem** — |
| 28 | + |
| 29 | +A good bug report shouldn't leave others needing to chase you up for more information. Please try to be as detailed as possible in your report. What is your environment? What steps will reproduce the issue? What OS |
| 30 | +experience the problem? What version of .NET Framework ? All these details will help people to fix any potential bugs. |
| 31 | + |
| 32 | +Example: |
| 33 | + |
| 34 | +> Short and descriptive example bug report title |
| 35 | +> |
| 36 | +> A summary of the issue and the .NET/OS environment in which it occurs. If |
| 37 | +> suitable, include the steps required to reproduce the bug. |
| 38 | +> |
| 39 | +> 1. This is the first step |
| 40 | +> 2. This is the second step |
| 41 | +> 3. Further steps, etc. |
| 42 | +> |
| 43 | +> `<url>` - a link to the reduced test case |
| 44 | +> |
| 45 | +> Any other information you want to share that is relevant to the issue being |
| 46 | +> reported. This might include the lines of code that you have identified as |
| 47 | +> causing the bug, and potential solutions (and your opinions on their |
| 48 | +> merits). |
| 49 | +
|
| 50 | + |
| 51 | +<a name="features"></a> |
| 52 | +## Feature requests |
| 53 | + |
| 54 | +Feature requests are welcome. But take a moment to find out whether your idea fits with the scope and aims of the project. It's up to *you* to make a strong case to convince the project's developers of the merits of this feature. Please provide as much detail and context as possible. |
| 55 | + |
| 56 | + |
| 57 | +<a name="pull-requests"></a> |
| 58 | +## Pull requests |
| 59 | + |
| 60 | +Good pull requests - patches, improvements, new features - are a fantastic |
| 61 | +help. They should remain focused in scope and avoid containing unrelated |
| 62 | +commits. |
| 63 | + |
| 64 | +**Please ask first** before embarking on any significant pull request (e.g. |
| 65 | +implementing features, refactoring code, porting to a different language), |
| 66 | +otherwise you risk spending a lot of time working on something that the |
| 67 | +project's developers might not want to merge into the project. |
| 68 | + |
| 69 | +Please adhere to the coding conventions used throughout a project (indentation, |
| 70 | +accurate comments, etc.) and any other requirements (such as test coverage). |
| 71 | + |
| 72 | +Adhering to the following process is the best way to get your work |
| 73 | +included in the project: |
| 74 | + |
| 75 | +1. [Fork](https://help.github.com/articles/fork-a-repo/) the project, clone your fork, and configure the remotes: |
| 76 | + |
| 77 | + ```bash |
| 78 | + # Clone your fork of the repo into the current directory |
| 79 | + git clone https://github.com/<your-username>/qlnet.git |
| 80 | + # Navigate to the newly cloned directory |
| 81 | + cd qlnet |
| 82 | + # Assign the original repo to a remote called "upstream" |
| 83 | + git remote add upstream https://github.com/amaggiulli/qlnet.git |
| 84 | + ``` |
| 85 | + |
| 86 | +2. If you cloned a while ago, get the latest changes from upstream: |
| 87 | + |
| 88 | + ```bash |
| 89 | + git checkout develop |
| 90 | + git pull upstream develop |
| 91 | + ``` |
| 92 | + |
| 93 | +3. Create a new topic branch (off the main project development branch) to contain your feature, change, or fix: |
| 94 | + |
| 95 | + ```bash |
| 96 | + git checkout -b some-feature develop |
| 97 | + ``` |
| 98 | + |
| 99 | +4. Commit your changes in logical chunks. Please adhere to the project git commit message guideline or your code is unlikely be merged into the main project. Use Git's [interactive rebase](https://help.github.com/articles/about-git-rebase/) feature to tidy up your commits before making them public. |
| 100 | + |
| 101 | +5. Locally merge (or rebase) the upstream development branch into your topic branch: |
| 102 | + |
| 103 | + ```bash |
| 104 | + git pull [--rebase] upstream develop |
| 105 | + ``` |
| 106 | + |
| 107 | +6. Push your topic branch up to your fork: |
| 108 | + |
| 109 | + ```bash |
| 110 | + git push origin <topic-branch-name> |
| 111 | + ``` |
| 112 | + |
| 113 | +7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) |
| 114 | + with a clear title and description. |
| 115 | + |
| 116 | +To help you get your feet wet and get you familiar with our contribution process, we have a list of [good first issues](https://github.com/amaggiulli/qlnet/issues?q=is:open+is:issue+label:"good+first+issue") that contain bugs that have a relatively limited scope. This is a great place to get started. |
| 117 | + |
| 118 | +If you decide to fix an issue, please be sure to check the comment thread in case somebody is already working on a fix. If nobody is working on it at the moment, please leave a comment stating that you intend to work on it so other people don’t accidentally duplicate your effort. |
| 119 | + |
| 120 | +If somebody claims an issue but doesn’t follow up for more than two weeks, it’s fine to take over it but you should still leave a comment. |
| 121 | + |
| 122 | +**IMPORTANT**: By submitting a patch, you agree to allow the project |
| 123 | +owners to license your work under the terms of the [BSD3 License](https://github.com/amaggiulli/QLNet/blob/develop/LICENSE). |
0 commit comments