Contributing Guide - Code
Where to start?
An easy way to start is to check the issues flowrunner issues page
Adding test cases for functions
Forking
You will need your own fork to work on the code. Go to the flowrunner project page and hit the Fork button. You will
want to clone your fork to your machine
git clone https://github.com/prithvijitguha/flowrunner.git flowrunner-username
cd flowrunner-username
git remote add upstream https://github.com/prithvijitguha/flowrunner.git
Creating a Branch
git branch shiny-new-feature
git checkout shiny-new-feature
The above can be simplified to
git checkout -b shiny-new-feature
Commiting
After you have made your changes. Let’s say we have changed file modified_file.
git add modified_file
pre-commit does a set of checks before you commit the code. Please pre-commit before commit.
pre-commit install
This will install a set of hooks and create a pre-commit environment.
pre-commit run --files modified_file
Once your file passes the checks you can commit your changes.
git commit -m "modified file modified_file"
Pushing your code
Once committed you can push your code.
git push origin shiny-new-feature
Create a Pull Request
Navigate to your repository on GitHub
Click on the
Pull RequestbuttonYou can then click on
CommitsandFiles Changedto make sure everything looks okay one last timeWrite a description of your changes in the
Preview DiscussiontabClick
Send Pull Request.