Skip to content

GitHub Rules

Axel Lorreyne edited this page Feb 20, 2024 · 11 revisions

Branch rules

  • Git Flow
  • Use directory, followed by short description using "-" as space (e.g feature/wsgi-implementation or fix/csrf-token)

Commit rules

  • Don't make commits too small (single line editted, except when hotfix etc.) or too big (fix large issue in single commit).

Tip: use shelving option available in all JetBrains IDE software when code is not ready for commit but you want to switch between branches/issues

PR rules

Creating

  • Create PR from current branch into develop branch
  • Name can be longer than commit message + more descriptive.
  • Link issue in description (e.g "fixes #42").
  • Assign yourself and possible partner
  • Assign correct label

Reviewing

Merging

  • merge develop branch into current branch on local machine FIRST (easier to solve merge conflicts using the Git Merge Dialog)
  • merge current branch onto develop branch on github using the pull request interface AFTER.
  • delete branch upon completion
Clone this wiki locally