3. Improve code quality and
transparency
Provide a discussions platform
Foster continuous
self-improvement
Reduce bug fixing / new feature
implementation time
Because we’d like to…
10. git push -u origin feature-123
origin
Periodically push feature
branch and commits to the
central repository
This is a backup and allows
collaboration
Subsequent pushes can be
done with git push only
11. Vader completes
his feature
Make sure the central repository
has the most recent commits
Start the code review by creating a merge request
git push
12. Select the feature as the source branch
Set the target branch to “develop” – we always merge
into develop after review
13. Check the target branch and choose an assignee.
Write a short description for the merge request.
Include links to all
relevant Jira tickets
Use /cc to add more
participants
14. Yoda receives the
merge request
All code changes are visible from the merge
request page
Locally checkout the feature branch
git checkout -b test origin/feature-123
You can also make your own changes which
will show up in the merge request.
15. How Yoda reviews
1. Run the project locally on an end device
2. Look for stack traces in log output
3. Test the implemented functionality and verify
styles
4. Review and discuss the code for:
- Potential bugs
- Clean and concise implementation
- Quality improvements
16. Discuss the feature
implementation in the
discussion section, vote
it up if you think it’s ok
Directly comment on
source code lines in the
changes section
17. The discussions
A
suggestion
I have
Good
point…
I’ve done
this before
and know
a nice
solution
Discuss the best solution
Make recommendations
Multiple people can review
an item
Change the roles frequently
Don’t blame – improve!
19. After the discussed changes have been made
by Vader or Yoda and the feature is complete,
accept the merge request and remove the
source branch!
20. git checkout develop
git pull
If the automatic merge doesn’t work because
of merge conflicts, merge manually
git merge --no-ff feature-123
git push origin develop
1. Update the target branch (develop)
2. Merge the branch and push the changes
3. Remove the feature branch in gitlab