[go: up one dir, main page]

Skip to content

Merge request commit locking

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Description

We use merge requests with a 'Gitflow' style repo, so we are merging features into a current development branch, and then merge that develop branch into master branch etc.

So there comes a point when we are prepared to merge develop into master and we don't want any more commits to land in develop, but the pipelines are still running, review is still going on etc and another committer could merge more features.

Proposal

In the MR the possibility to lock the branch, preventing further merges/pushes to the branch. It would remain until manually unlocked, or merged.

Basically its changing the protected branches settings for the MR branch to be completely locked, but unlocking it again once the MR is merged to allow the next develop MR to be opened.

Links / references

https://gitlab.com/gitlab-org/gitlab-ce/issues/20742 - similar function of temporary changes to the protected branches settings.

Gitflow

Edited by 🤖 GitLab Bot 🤖