11f303834SJeremy L Thompson# How to Contribute 21f303834SJeremy L Thompson 31f303834SJeremy L ThompsonContributions to HONEE are encouraged. 41f303834SJeremy L Thompson<!--- 51f303834SJeremy L ThompsonPlease use a pull request to the appropriate branch ('release' for backward-compatible bug fixes for the last stable release, main' for new features and everything else). 61f303834SJeremy L Thompson--> 71f303834SJeremy L ThompsonPlease make your commits well-organized and [atomic](https://en.wikipedia.org/wiki/Atomic_commit#Atomic_commit_convention), using `git rebase --interactive` as needed. 81f303834SJeremy L ThompsonCheck that all tests pass using `make prove` or `make junit`. 91f303834SJeremy L ThompsonIf adding a new feature, please add or extend a test so that your new feature is tested. 101f303834SJeremy L Thompson 111f303834SJeremy L ThompsonIn typical development, every commit should compile, be covered by the test suite, and pass all tests. 121f303834SJeremy L ThompsonThis improves the efficiency of reviewing and facilitates use of [`git bisect`](https://git-scm.com/docs/git-bisect). 131f303834SJeremy L Thompson 141f303834SJeremy L ThompsonOpen an issue or RFC (request for comments) pull request to discuss any significant changes before investing time. 151f303834SJeremy L ThompsonIt is useful to create a WIP (work in progress) pull request for any long-running development so that others can be aware of your work and help to avoid creating merge conflicts. 161f303834SJeremy L Thompson 171f303834SJeremy L ThompsonWrite commit messages for a reviewer of your pull request and for a future developer (maybe you) that bisects and finds that a bug was introduced in your commit. 181f303834SJeremy L ThompsonThe assumptions that are clear in your mind while committing are likely not in the mind of whomever (possibly you) needs to understand it in the future. 191f303834SJeremy L Thompson 201f303834SJeremy L ThompsonGive credit where credit is due using tags such as `Reported-by: Helpful User <helpful@example.com>` or [`Co-authored-by: Snippet Mentor <code.by@comment.com>`](https://help.github.com/en/github/committing-changes-to-your-project/creating-a-commit-with-multiple-authors#creating-co-authored-commits-on-the-command-line). 211f303834SJeremy L ThompsonPlease use a real name and email for your author information (`git config user.name` and `user.email`). 221f303834SJeremy L ThompsonIf your author information or email becomes inconsistent (look at `git shortlog -se`), please edit `.mailmap` to obtain your preferred name and email address. 231f303834SJeremy L Thompson 241f303834SJeremy L ThompsonWhen contributors make a major contribution and support it, their names are included in the automatically generated user-manual documentation. 251f303834SJeremy L Thompson 261f303834SJeremy L ThompsonPlease avoid "merging from upstream" (like merging 'main' into your feature branch) unless there is a specific reason to do so, in which case you should explain why in the merge commit. 271f303834SJeremy L Thompson[Rationale](https://lwn.net/Articles/328436/) from [Junio](https://gitster.livejournal.com/42247.html) and [Linus](http://yarchive.net/comp/linux/git_merges_from_upstream.html). 281f303834SJeremy L Thompson 291f303834SJeremy L ThompsonYou can use `make format` to help conform to coding conventions of the project, but try to avoid mixing whitespace or formatting changes with content changes (see atomicity above). 301f303834SJeremy L Thompson 311f303834SJeremy L ThompsonBy submitting a pull request, you are affirming the following. 321f303834SJeremy L Thompson 331f303834SJeremy L Thompson## [Developer's Certificate of Origin 1.1](https://developercertificate.org/) 341f303834SJeremy L Thompson 351f303834SJeremy L ThompsonBy making a contribution to this project, I certify that: 361f303834SJeremy L Thompson 371f303834SJeremy L Thompson(a) 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 381f303834SJeremy L Thompson 391f303834SJeremy L Thompson(b) 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 401f303834SJeremy L Thompson 411f303834SJeremy L Thompson(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it. 421f303834SJeremy L Thompson 431f303834SJeremy L Thompson(d) 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. 441f303834SJeremy L Thompson 451f303834SJeremy L Thompson## Authorship 461f303834SJeremy L Thompson 47*efbf6ca3SJames WrightHONEE contains components authored by many individuals. 481f303834SJeremy L ThompsonIt is important that contributors receive appropriate recognition through informal and academically-recognized credit systems such as publications. 49*efbf6ca3SJames WrightStatus as a named author on the users manual and HONEE software publications will be granted for those who 501f303834SJeremy L Thompson 51*efbf6ca3SJames Wright1. make significant contributions to HONEE (in implementation, documentation, conceptualization, review, etc.) and 521f303834SJeremy L Thompson2. maintain and support those contributions. 531f303834SJeremy L Thompson 541f303834SJeremy L ThompsonMaintainers will do their best to notice when contributions reach this level and add your name to `AUTHORS`, but please email or create an issue if you believe your contributions have met these criteria and haven't yet been acknowledged. 551f303834SJeremy L Thompson 56*efbf6ca3SJames WrightAuthors of publications about HONEE as a whole, including DOI-bearing archives, shall offer co-authorship to all individuals listed in the `AUTHORS` file. 57*efbf6ca3SJames WrightAuthors of publications claiming specific HONEE contributions shall evaluate those listed in `AUTHORS` and offer co-authorship to those who made significant intellectual contributions to the work. 581f303834SJeremy L Thompson 59*efbf6ca3SJames WrightNote that there is no co-authorship expectation for those publishing about use of HONEE (versus creation of new features in HONEE), but see the citing section and use your judgment regarding significance of support/advice you may have received in developing your use case and interpreting results. 60