Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. main: The primary branch representing the latest pre-production-ready code. All merges into main trigger pre-production deployments.

  2. develop: Serves as the integration branch for completed features. Code in develop should be stable but may not be fully production-ready.

  3. feature/*: Short-lived branches created off develop for developing individual features or fixes. Names follow a convention like feature/new-widget.

  4. fix/*: Short-lived branches created off develop for fixing bug or issues.

Workflow

  1. Start a Feature:

    • Create a new branch from the latest developlatest main or whatever is your starting point:

      Code Block
      languagebash
      git checkout develop
      git pull origin develop  # Make sure you have the latest
      git checkout -b feature/my-awesome-change
  2. Develop the Feature:

    • Make code changes and commit regularly to your feature branch.
    • Push your branch to the remote repository to share and back up code.
  3. Create a Pull Request:

    • Once your feature is complete and tested locally:
      • Push your feature branch to the remote repository.
      • Create a PR targeting the main branch.
      • Describe your changes and the rationale behind them.
  4. Code Review & Testing:

    • Collaborators review and suggest improvements.
    • Address feedback by making additional commits to your feature branch.
    • automated tests run creating temporary testing environment based on your feature branch for more thorough review.
  5. Merge into main:

    • Once the PR is approved, merge the feature branch into main.
    • After the PR from branch to main is approved and merged, a deployment pipeline is automatically triggered to deploy the updated code to EED pre-production environment.

...