Branching

Permanent Branches

The following main branches exist on the repo for their specified purpose:

dev  // for developing e.g. features, fixes etc.
staging  // to demo proposals before merging into master
master  // for deploying to production

Local branches should be created of the dev branch and then pushed according to the instructions in Development Lifecycle

Once branched in dev have been approved, they can be merged onto staging so that the client can approve the changes.

Once staging branches have been reviewed, they can be merged into the production branch on master

The master branch will be deployed via AWS at https://www.glowbal.us.to

Branching Groups

Each branch you create must be prefixed with its relevant branching group:

feature  // for features
bug  // for bugs/hotfixes
experimental  // for code not part of a release or sprint
chore  // for code maintanence
style  // for specifically style related changes
refactor  // for refactoring
test  // for testing
docs  // for documentation

Use the following structure


 {branching-group}/{short-description}
 feature/add-user-routes

Commit Messages

The following conventions are used for commit messages:

  1. Start with emoji to identify type (use gitmoji as reference)

    Emoji Types

  2. Start with a verb

    e.g. add, fix, update

    ✅ 🔥 Remove unused /test route

    ❌ 🔥 Unused /test route removed

  3. Space after emoji

    ✅ 💄 Make buttons rounded

    ❌ 💄Make buttons rounded

  4. Use present tense

    ✅ 📝 Update deployment instructions

    ❌ 📝 Updated deployment instructions

  5. Start capitalised

    ✅ 🐛 Fix form submission bug

    ❌ 🐛 fix form submission bug

  6. Be specific

    ✅ 🔒 Add 2FA for users

    ❌ 🔒 Add security improvements