Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Latest commit

 

History

History
89 lines (64 loc) · 2.21 KB

git-repository.md

File metadata and controls

89 lines (64 loc) · 2.21 KB

Git repository

For developers have write access to this repository:

  1. 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'

  2. 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.

Contribute

  1. Create a feature branch for your contribution

    git flow feature start 'my-awesome-feature#gitHubIssueNumber'
  2. Code and commit as usual

  3. Run checks and tests

    ./runtests.py --webapp-checks --webapp-tests
  4. 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.)

  5. 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

Release

Create release branch (example)

git flow release start '1.4.0'

Todo on release

  • Compile locales
  • Run all tests
  • Test development and production containers
  • Update documentation
    • Readme
    • Wiki
  • Update version number under web_frontend/osmaxx/__init__.py

Finish release

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.