Thank you for your interest in contributing to the RangeShifter platform. In this document we will give you guidance on how to contribute to the RangeShifter project regarding issues, bug fixing and adding new features.
RangeShifter is distributed with three user interfaces, each living in their own repo:
- the RangeShifter GUI (clickable Windows interface)*
- RangeShifter Batch Mode (command line interface)
- the RangeShiftR package (R interface)
All three share the same source code for the core simulation (i.e., the actual model), which lives in this repo (RScore). Each of the interfaces keeps a copy of this core code in a subfolder called RScore, kept in sync with the RScore repo via a git subtree (see Git subtree usage section).
*The RangeShifter GUI is currently being rewritten, and is not open source yet.
- @JetteReeg: RScore repo and lead in R package
- @TheoPannetier: RScore repo and lead in batch mode
Maintainers are responsible for coordinating development efforts and ensuring that RangeShifter keeps building continuously.
Regular contributors and members of the RangeShifter development team, including maintainers.
Anyone who whishes to make changes to RangeShifter's code, including regular developers.
Check out the Git cheatsheet for a reminder on the main git commands
This policy applies to RScore and all three RangeShifter interfaces. RangeShifter uses the following branching structure:
main
is the default branch, where stable releases live. Because it contains the version of RangeShifter that users normally interact with, it must be stable and build at all times. Only maintainers should make significant changes tomain
, normally by mergingdevelop
intomain
to make newly developed features available to users, and marking a release while doing so.develop
is the development branch containing new, in-development features. It is the reference branch for all developers. Contributors may make small changes directly todevelop
but should ensure that new changes do not break the build. If one happens to breakdevelop
, it should be their top priority to fix it as this will disrupt the work of all other contributors. Larger changes should instead be developed on feature branches.- Larger changes should be first developed on feature (e.g.
cmake
,mutualism
, etc.) or contributor (e.g.,theo
) branches. Contributors are welcome to experiment and break such branches at any time, as this will not impact users or other contributors.
When progress is deemed satisfactory, changes can be brought to develop
. Please open a pull request on GitHub, and assign at least one maintainer as a reviewer. As a pre-requisite, RangeShifter must build on the branch before merging. Please enter a descriptive title and use the description field to describe what you have changed.
In the meantime, we encourage contributors to work in small and frequent commits, and to merge develop
into their branch often to update their branch with newest changes.
Any changes regarding the RangeShifter core code should be done in this repository and can afterwards be synced with all interfaces using the git subtree feature (see Git subtree section in the README).
To report a bug, please open an issue, using the Bug Report template.
Please do check if a related issue has already open on one of the other interfaces (here for the batch interface or here for the R package interface).
To propose a bug fix (thank you!!), please create and work on your own branch or fork, from either main
or develop
(preferred), and open a pull request when your fix is ready to be merged into the original branch.
Maintainers will review the pull request, possibly request changes, and eventually integrate the bug fix into RScore, and update the subtrees to bring the fix to all interfaces.
Do you have an idea of a new feature in the RangeShifter platform that should be integrated and is of use for other RangeShifter users? Please get in touch with the RangeShifter development team ([email protected]) to discuss a collaboration.
Alternatively, proceed as with the bug fix above: create your own branch or fork from develop
and work from there, and submit a pull request when your new features are ready to join the core code.
We recommend that you update your branch regularly to new changes on develop
(using git merge develop
) to reduce the risk of merge conflicts or your version getting out-of-touch in the late stages of development.
We also recommend that you work in small commits, as this makes the code easier to debug, and makes it easier for maintainers to understand your contributions when reviewing a pull request.