I am starting to work with other developers on a project where I have mostly worked alone up until now.
Our repo is hosted on GitLab and I am trying to figure out how to setup a simple git workflow for the team.
We have a master
branch with the code that goes to production and I would like team members to work on feature branches that then get merged onto master.
For now, when one wants to resolve an Issue, it creates a Merge Request with a branch and pushes code to it. When it's ready they ask for review, and if the review passes I merge the feature branch to master
. So far, so good.
The problem I can't solve right now is: if a team member wants to continue working on another issue that depends on a previous issue being merged, how can I review the code of the dependent merge request?
In this case, we would have a master
branch, a issue-1
branch based on master
and an issue-2
branch based on issue-1
.
If the target of both merge requests is master
, when reviewing the changes of issue-2
I would also have to sift through the changes of issue-1
, which I should have already reviewed separately on issue-1
merge request.
Is it possible to keep master
as the target branch for both MRs but use issue-1
as the base for the diffs of issue-2
?
I know there's a Merge dependency premium feature, but I don't think it solves this particular problem.
Thank you in advance for your help.