Git workflow
Funkwhale uses GitLab’s merge requests to manage changes. The workflow looks like this:
Assign the issue you are working on to yourself, or create one if it doesn’t exist
Create a fork of the project
Check out the
develop
branch. If you’re making a minor change (such as fixing a typo) you can check out thestable
branchCreate a new branch based on the checked out branch. Make sure to give your branch a meaningful name and include the issue number if required
Work on your changes locally. Try to keep each commit small to make reviews easier
Add a changelog fragment summarizing your changes
Lint the codebase using the following command:
black --check --diff . # Run the black linter in the project root to highlight any new issues
cd front yarn run eslint # Run eslint in the front directory
Push your branch
Create a merge request in the GitLab frontend
We’ll review your request and feed back
%%{init: { 'gitGraph': {'mainBranchName': 'stable'} } }%%
gitGraph
commit
branch develop
commit
commit
branch feature
commit
commit
checkout develop
merge feature
commit
checkout stable
merge develop