Skip to content

Branch guidelines

Boris Mutafov edited this page Oct 15, 2020 · 3 revisions

Every task, feature, bugfix, etc. should have its own branch created, branched out from staging on the latest possible commit. Newly added code is committed to the feature branch, which then should be made into a PR to the staging branch.

Image: image

Other than that, this repository has 3 main branches:

  • main
  • staging
  • gh-pages

Main branch

The main branch contains the latest non-built react code. It has passed all tests in the staging environment and is approved by all members. Every PR that is approved to this branch is automatically built and deployed to production environment.

Staging branch

Staging branch is used to deploy and test code. This is the active development branch where all code is pushed to. Upon commit to this branch, GH Action is triggered to build the application and deploy it for testing on the github pages link.

gh-pages branch

gh-pages branch contains the built react code which can be accessed in the github pages link.

Clone this wiki locally