First of all, thank you so much for considering to contribute to MoBIE!!! We really appreciate all kinds of contributions: If you find problems using MoBIE or have an idea how to improve it, please consider opening an issue. In case you consider contributing code to MoBIE, the following guide should get you started!
-
Fork the repository using github's web ui.
-
Clone your fork using git:
git clone https://github.com/<your_github_handle>/mobie-viewer-fiji
-
Setup the upstream remote to be able to pull in any changes from the original repo
git remote add upstream https://github.com/mobie/mobie-viewer-fiji
-
Create a branch to work on We follow the GitHub Flow where new changes are first introduced into the
develop
branch before being release on the main branch. If you want to work on a new feature, follow these steps:# go to the develop branch git checkout develop # pull in the latest changes from upstream git pull upstream # create a new branch git checkout -b <choose_a_good_branch_name> # do your changes, add and commit
Create a conda environment with the required dependencies using mamba
We recommend using mambaforge to create and manage your conda environments.
mamba create -n mobie-dev -c conda-forge openjdk=8 maven
# make sure to be in the conda development environment
mamba activate mobie-dev
maven test
# if you want the commands available for testing, running
./install.sh
After testing your changes locally and making sure all updated files have been committed, you can push your branch:
git push --set-upstream origin <your_branch_name>
Go to the main repository to open a pull request.
Make sure to use the develop
branch as a base.