Here is the instructions if you want to contribute to the project
- Fork and clone the repository
- Create a new branch: See 'creating a branch'
- Make your change, add tests, and make sure the tests still pass
- Make sure that the code is codeQL compliant
- Make sure that you had documentation to the new added code (obviously compliant with our doc)
- Push to your fork and submit a pull request with correct labels added if necessary
- Wait for your pull request to be reviewed and merged.
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
- The security of your code is analysed by codeQL the CI might fail if it's not secure.
- The style of your code must respect the clang-format style.
Normally we have the .clang-format if you want for your IDE. If you don't want to use the .clang-format intergration in your IDE, you can still
launch the script format.sh (Linux and MacOs) or format.ps1 (Windows), this will format automaticlly your code.
/!\ Warning ! If your code is not clang format compliant your CI will fail and your pr will be refused. - Write tests.
- Keep your change as focused as possible.
If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests. - Write a commit message that respect the commit norm that we have, see 'Commit message norm'.
- Define your context.
- CICD
- CLIENT-GAME
- DOCUMENTATION
- POC
- NETWORK
- SERVER
- Followed by ":" + "action verb"
- : Add
- : Fix
- : Update
- etc ...
- Explain what your commit introduce
- new feature for client-game
- bug inside network
- documentation for CLIENT-GAME
- etc...
- Just after your commit message put a newline to indicate semver
- PATCH (If your commit introduce a bug fix)
- MINOR (If your commit introduce a new feature)
- MAJOR (If your commit introduce a new feature and the older version doesn't work anymore)
/!\ Warning ! If your commit message doesn't respect those rules your pr might not be accepted
If you need to contribute to our project, you will need to create a branch to submit a pull request.
Basicly, you must indicate what is the context of your branch followed by a '/'.
For exemple :
- feature/BRANCH-NAME
- doc/BRANCH-NAME
- refactor/BRANCH-NAME
- etc...
That's all you need to do to create a valid branch.