Branch Flow
Note: Developers derive and make PRs to the dev
branch and lower.
Development Flow
Upstream repositories:
Protected branches are:
Main: production branch
Release: Pre-production branch
Dev: Development branch
Hot Fix: Branch to apply hot fixes
QA: QA environment branch
Other branches:
IS-(#feature)
Steps:
Go to the assigned JIRA story and create a branch through the ticket (this creates a branch with the story identifier in the upstream repository, which will be used for merging after the story development, e.g.,
GAN-188
).Create a new
foo
branch from thedev
branch of your fork to develop the story.Develop the story in the
foo
branch.When you have finished developing the story:
a. SQUASH INTO A SINGLE COMMIT in the
dev
branch of your fork (to keep the commit history of the upstream repository clean).b. Make a commit with a message that starts with the story identifier (e.g.,
git commit -m "GAN-188: ..."
).Make a PR to merge the
dev
branch of your fork into the upstream story branch created from JIRA in step 1 (e.g.,GAN-188
).Once the PR is accepted and merged:
a. Delete the
foo
branch on upstream.b. Sync your fork with the upstream repository.
Repeat the process.
Last updated