xref: /libCEED/CONTRIBUTING.md (revision d9b786505a4dfcb66b2fcd9e3b61dd507168515d)
1*b99288c1SJeremy L Thompson# How to Contribute
274e0540eSJed Brown
399276e83SJed BrownContributions to libCEED are encouraged.
4ee7e4e48Sjeremylt<!---
517be3a41SJeremy L ThompsonPlease use a pull request to the appropriate branch ('stable' for backward-compatible bug fixes for the last stable release, main' for new features and everything else).
6ee7e4e48Sjeremylt-->
717be3a41SJeremy 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.
817be3a41SJeremy L ThompsonCheck that tests (including "examples") pass using `make prove-all`.
917be3a41SJeremy L ThompsonIf adding a new feature, please add or extend a test so that your new feature is tested.
1099276e83SJed Brown
1117be3a41SJeremy L ThompsonIn typical development, every commit should compile, be covered by the test suite, and pass all tests.
1217be3a41SJeremy L ThompsonThis improves the efficiency of reviewing and facilitates use of [`git bisect`](https://git-scm.com/docs/git-bisect).
1399276e83SJed Brown
1417be3a41SJeremy L ThompsonOpen an issue or RFC (request for comments) pull request to discuss any significant changes before investing time.
1517be3a41SJeremy 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.
1674e0540eSJed Brown
1717be3a41SJeremy 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.
1817be3a41SJeremy 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.
1999276e83SJed Brown
2017be3a41SJeremy 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).
2117be3a41SJeremy L ThompsonPlease use a real name and email for your author information (`git config user.name` and `user.email`).
2217be3a41SJeremy 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.
2374e0540eSJed Brown
2417be3a41SJeremy L ThompsonWhen contributors make a major contribution and support it, their names are included in the automatically generated user-manual documentation.
259a055e7bSvaleriabarra
2617be3a41SJeremy 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.
2774e0540eSJed Brown[Rationale](https://lwn.net/Articles/328436/) from
2874e0540eSJed Brown[Junio](https://gitster.livejournal.com/42247.html) and
2974e0540eSJed Brown[Linus](http://yarchive.net/comp/linux/git_merges_from_upstream.html).
3074e0540eSJed Brown
313d31fd79SJeremy 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).
3299276e83SJed Brown
3374e0540eSJed BrownBy submitting a pull request, you are affirming the following.
3474e0540eSJed Brown
35288c0443SJeremy L Thompson## [Developer's Certificate of Origin 1.1](https://developercertificate.org/)
3674e0540eSJed Brown
3774e0540eSJed BrownBy making a contribution to this project, I certify that:
3874e0540eSJed Brown
3917be3a41SJeremy 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
4074e0540eSJed Brown
4117be3a41SJeremy 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
4274e0540eSJed Brown
4317be3a41SJeremy 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.
4474e0540eSJed Brown
4517be3a41SJeremy 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.
4674e0540eSJed Brown
47b4d76956SJed Brown## Authorship
4874e0540eSJed Brown
4917be3a41SJeremy L ThompsonlibCEED contains components authored by many individuals.
5017be3a41SJeremy L ThompsonIt is important that contributors receive appropriate recognition through informal and academically-recognized credit systems such as publications.
5117be3a41SJeremy L ThompsonStatus as a named author on the users manual and libCEED software publications will be granted for those who
52b4d76956SJed Brown
5317be3a41SJeremy L Thompson1. make significant contributions to libCEED (in implementation, documentation, conceptualization, review, etc.) and
54b4d76956SJed Brown2. maintain and support those contributions.
55b4d76956SJed Brown
5617be3a41SJeremy 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.
57b4d76956SJed Brown
5817be3a41SJeremy L ThompsonAuthors of publications about libCEED as a whole, including DOI-bearing archives, shall offer co-authorship to all individuals listed in the `AUTHORS` file.
5917be3a41SJeremy L ThompsonAuthors of publications claiming specific libCEED contributions shall evaluate those listed in `AUTHORS` and offer co-authorship to those who made significant intellectual contributions to the work.
60b4d76956SJed Brown
6117be3a41SJeremy L ThompsonNote that there is no co-authorship expectation for those publishing about use of libCEED (versus creation of new features in libCEED), but see the [citing section](https://libceed.org/en/latest/gettingstarted/#how-to-cite) and use your judgment regarding significance of support/advice you may have received in developing your use case and interpreting results.
62