-
-
Notifications
You must be signed in to change notification settings - Fork 119
Developers wiki: Pull requests
Algiane Froehly edited this page Oct 5, 2022
·
9 revisions
mmg is an open source project so your contributions are welcome. You can help us to improve the mmg applications through:
- bug fixes
- features development.
The steps to contribute to the mmg project are detailed in the next paragraphs.
To see your work included in the project, please:
-
agree and fill the mmg-platform-corporate-contributor-assignment-agreement if the intellectual property of the contributed code belongs to your employer or the mmg-platform-individual-contributor-assignment-agreement if it belongs to you;
-
ask first before implementing any features;
-
do not perform code refactoring;
-
adopt our coding conventions:
- use our indentation convention (2 spaces instead of tabulations);
- do not add non significant white spaces (trailing white spaces or white spaces on blank line);
- try to modify only things relevant with your PR (do not indent an entire file, even if needed, for example);
- write accurate Doxygen comments (see for example the documentation of the API_functions.c file);
- write accurate commit messages;
- run the continuous integration test before opening any pull request.
-
agree to license your work under the GNU Lesser General Public License.
To contribute to the mmg software:
-
- fork the project on GitHub and clone your fork:
git clone https://github.com/<username>/mmg
-
- And assign the original mmg repository to a remote named upstream:
git remote add upstream https://github.com/MmgTools/mmg
-
- Note that you can check your remote with
git remote -v
. You will need to fetch the upstream branch :
- Note that you can check your remote with
git fetch upstream
-
- Create a new
develop
branch that points toward MmgTools/mmgdevelop
branch:
- Create a new
git checkout -b develop upstream/develop
-
- Create a new branch for your feature from the
develop
branch:
- Create a new branch for your feature from the
git checkout -b feature/myFeature develop
-
- If you want, you can push your feature branch up to your repository:
git push origin feature/myfeature
-
- To avoid painful merge after huge modifications, don't forget to regularly get the modifications of the upstream develop into your develop branch and to merge this into your feature branch:
git checkout develop
git pull upstream develop
git checkout feature/myFeature
git merge develop
-
- open a pull request with title and detailed description.