Update CONTRIBUTING.md
This commit is contained in:
parent
a0c8a2c1b3
commit
0603e46611
@ -23,7 +23,7 @@ See our [Support Guide](https://github.com/jessesquires/.github/blob/master/SUPP
|
||||
|
||||
## :inbox_tray: Opening an Issue
|
||||
|
||||
Before reporting an issue, check if you are using the latest version of the project. If not, see if updating fixes your issue.
|
||||
Before [creating an issue](https://help.github.com/en/github/managing-your-work-on-github/creating-an-issue), check if you are using the latest version of the project. If you are not up-to-date, see if updating fixes your issue first.
|
||||
|
||||
### :lock: Reporting Security Issues
|
||||
|
||||
@ -59,3 +59,54 @@ You can triage issues which may include reproducing bug reports or asking for ad
|
||||
|
||||
## :repeat: Submitting Pull Requests
|
||||
|
||||
We **love** pull requests! Before [forking the repo](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) and [creating a pull request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/proposing-changes-to-your-work-with-pull-requests) for non-trivial changes, it is usually best to first open an issue to discuss the changes, or discuss your intended approach for solving the problem in the comments for an existing issue.
|
||||
|
||||
For most contributions, after your pull request is accepted and merged, you will be [invited to the project](https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/inviting-collaborators-to-a-personal-repository) and given **push access**. :tada:
|
||||
|
||||
*Note: All contributions will be licensed under the project's license.*
|
||||
|
||||
- **Smaller is better.** Submit **one** pull request per bug fix or feature. A pull request should contain isolated changes pertaining to a single bug fix or feature implementation. **Do not** refactor or reformat code that is unrelated to your change. It is better to **submit many small pull requests** rather than a single large one. Enormous pull requests will take enormous amounts of time to review, or may be rejected altogether.
|
||||
|
||||
- **Coordinate bigger changes.** For large and non-trivial changes, open an issue to discuss a strategy with the maintainers. Otherwise, you risk doing a lot of work for nothing!
|
||||
|
||||
- **Follow existing coding style and conventions.** Keep your code consistent with the style, formatting, and conventions in the rest of the code base. When possible, these will be enforced with a linter. Consistency makes it easier to review and modify in the future.
|
||||
|
||||
- **Include test coverage.** Add unit tests or UI tests when possible. Follow existing patterns for implementing tests.
|
||||
|
||||
- **Update the example project** if one exists to exercise any new functionality you have added.
|
||||
|
||||
- **Add documentation.** Document your changes with code doc comments or in existing guides.
|
||||
|
||||
- **Update the CHANGELOG** for all enhancements and bug fixes. Include the corresponding issue number if one exists, and your GitHub username.
|
||||
|
||||
- **Use the repo's default branch.** Branch from and [submit your pull request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork) to the repo's default branch (usually `dev` or `develop`).
|
||||
|
||||
- **[Resovle any merge conflicts](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/resolving-a-merge-conflict-on-github)** that occur.
|
||||
|
||||
- When writing comments, use properly constructed sentences, including punctuation.
|
||||
|
||||
- Remember that source code usually gets written once and read often. Ensure the code is clear to the reader. The purpose and logic be obvious to a reasonably skilled developr, or you should add a comment that explains it.
|
||||
|
||||
- Use spaces, not tabs.
|
||||
|
||||
## Certificate of Origin
|
||||
|
||||
*Developer's Certificate of Origin 1.1*
|
||||
|
||||
By making a contribution to this project, I certify that:
|
||||
|
||||
> 1. 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; or
|
||||
> 1. 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; or
|
||||
> 1. The contribution was provided directly to me by some other person who certified (1), (2) or (3) and I have not modified it.
|
||||
> 1. 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.
|
||||
|
||||
## Credits
|
||||
|
||||
Some of the ideas and prose for the statements in this document were based on or inspired by work from the following communities:
|
||||
|
||||
- [Alamofire](https://github.com/Alamofire/Alamofire/blob/master/CONTRIBUTING.md)
|
||||
- [CocoaPods](https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md)
|
||||
- [Docker](https://github.com/moby/moby/blob/master/CONTRIBUTING.md)
|
||||
- [Linux](https://elinux.org/Developer_Certificate_Of_Origin)
|
||||
|
||||
We commend them for their efforts to facilitate collaboration in their projects.
|
||||
|
Loading…
Reference in New Issue
Block a user