Create a branch from master for each user story (i.e. US-1)
Create pull request on bitbucket
After developer finished coding, merge pull request
Delete user story (US-1)
Pull user story locally (US-1). Pull code, pull DB, build environment with platform build
work, commit
Rebase, notify that branch is ready for testing
Push to bitbucket
git checkout WORKINGBRANCH
platform tunnel:open
git pull bitbucket WORKINGBRANCH
drush sql-sync @MASTER-BRANCH @self -y && drush cr
drush rsync @drupal.MY-BRANCH:%files @self:%files
Build the environment locally
git add -A
git commit -m "some code done"
Optional - export configuration and commit
drush cex -y
git add -A
git commit -m "configuration exported"
git rebase -i bitbucket/master
platform snapshot:create
git push bitbucket
platform snapshot:create
Merge a branch by Senior Developer
On bitbucket, create a pull request
Review code, approve it
On bitbucket, merge the pull request
Delete branch from bitbucket, local and platform