For developers have write access to this repository:
-
Clone this GitHub repository to your local machine and change into the local repo
git clone [email protected]:geometalab/osmaxx.git osmaxx && cd osmaxx
You can specify the name of the remote origin by adding param -o. Example:
-o 'gitHub'
-
Enable git-flow for the local repo
git checkout master # or git checkout -b master origin/master git flow init -d
(This project uses git-flow's default branch names and branch name prefixes, which
-d
automatically accepts.)You should now be on the
develop
branch. Otherwise checkout the development branch:git checkout development
.
-
Create a feature branch for your contribution
git flow feature start 'my-awesome-feature#gitHubIssueNumber'
-
Code and commit as usual
-
Run checks and tests
./runtests.py --webapp-checks --webapp-tests
-
Once you're finished, push the feature branch back to this GitHub repo
git flow feature publish
(Do not use
git flow feature finish
, as we use pull requests for review purposes.) -
Create a pull request against branch
develop
. Link the issue, inform the reviewers about the checks you did and add review tasks as subtasks (see below), e.g:Implementation of feature #123 (Merge will close #123 ). * locales **NOT** compiled -> do this on release (prevent huge locale diffs in changes) * ran tests * tested views by hand: * /orders/new [get/post] * /orders/{id} To be reviewed by: - [ ] @some-developer - [ ] @another-developer
git flow release start '1.4.0'
- Compile locales
- Run all tests
- Test development and production containers
- Update documentation
- Readme
- Wiki
- Update version number under
web_frontend/osmaxx/__init__.py
git checkout master
git pull origin master
git checkout develop
git flow release finish '1.4.0'
git checkout develop
git push origin develop:develop master:master '1.4.0'
Go to Github repository /releases and add description of the release.