Thank you for contributing to the repository! Have fun coding and meeting new friends!
Here's a link to our Discord Server: https://discord.gg/7fZHdqaJQC
Master branch is protected, impossible to push there without making a Pull Request. There are two ways to contribute to the repository:
- fork the repository on GitHub, write your code on the fork, then open a Pull Request to the original repository; our maintainers will review and merge the edits;
- or, join our Discord Server (link below) and ask our maintainer arthuro555 to add you to the organization in GitHub, so you can push to any branch, other than
master
.
Easy, and simple!
You will need to use git to contribute changes.
The standard setup flow is as follows:
- Download the git repository from upstream
- Get write access to github: you can either do that by
2.1) Request write access for your github account here (recommended)
2.2) Create your own copy of the github repository (a fork), and add it as a secondary git remote in your git client
The standard contribution flow is as follow:
- Use your git client to switch to the main repository's master branch, which contains the latest current version of the game source files. It is crucial you always do this before creating a new branch.
- Use your git client to create a new branch from the current repository state. Give it a name that represents your change separated by dashes, e.g. fix-item-pickup.
- Do your changes in GDevelop
- In your git client, add the changes and verify they are correct or that you are not adding incorrect/accidental changes/files.
- In your git client, create a commit with a name a message that describe your change, e.g. Fixed item pickup and The item pickup was broken by a missing "Trigger once", leading to the item being picked up twice. This commit corrects that.. It is crucial to make sure you are not committing on master but on your own branch.
- Push (upload) your commit with your git client, either on the main repository or to your fork if you did not request direct write access.
- Go on https://github.com/Gdevelop-game/GDevelop-Open-Game/. GitHub will have detected your recent push, and will display a button suggesting to create a pull request. Click on it, and submit the pull request. Make sure the request is for adding the changes from your branch to the master branch.
Here is the flow for updating an ongoing pull request:
- Switch to the branch the pull request was created on
- Repeat steps 3 to 6 of the change submission flow. The PR will be updated with the changes automatically with the push of new commits.