Thank you for contributing!
Create a new issue from here.
- Create a new issue.
- Fork this repository and clone the forked one.
- Set up
upstream
branch.git remote add upstream https:://github.com/YOUR_ACCOUNT/ElonaFoobar
. - Update local
develop
.git checkout develop && git pull upstream develop
. - Create your working branch from
develop
. Naming conventions are as follows:
- Prepend
feature/
to the short summary of your changes. For example,feature/import-XXX-from-omake
- Work and commit your changes. Small commits are prefered.
- Update local
develop
again. - Rebase.
git checkout YOUR_WORKING_BRANCH && git rebase develop
. - Push to your remote branch.
git push origin YOUR_WORKING_BRANCH
. - Create a new pull request.
- Your pull request is reviewed and fix problems if needed.
- Your pull request is merged.
If your changes are big or you need help, you can send a pull request with prefix [WIP]
. Pull requests marked as "work in progress" are not merged.
In all commits, the C++ source code should be formatted by clang-format
.
- Create a binding in
lua_api.cpp
inside the appropriate namespace.
- Add overrides for functions taking
position_t
so twoint
s can be passed instead.
- Set the binding on the correct table in
lua::init()
. - Update
.luacheckrc
with the new table value. - Add LDoc documentation in
doc/api
. - Add tests inside
tests/lua_api.cpp
. - Provide a playtest script demonstrating the API in the pull request.
We use Git flow. See http://nvie.com/posts/a-successful-git-branching-model/ for details, and we recommend this tool: https://github.com/nvie/gitflow.
See CODE_STYLE.md.
Follow this format.
Fix aaa bbb ccc
- Neither
fix
,Fixed
norfixing
. - No period.
- Other appropriate verbs are allowed.