Regression: Branch protection broken on merge requests from forks
Summary
Merge Requests from forks on projects with protected branches can't be merged on gitlab.com since yesterday.
Steps to reproduce
1_ Main project has main branch protected.
In our use case, we don't want to create branches on the main project as all development should be done on forks.
The project has the following branch protection:
Branch: *, Allowed to merge: Developers + Maintainers, Allowed to push: No one
2_ Create a Merge Request to merge a branch from a fork into the main branch of the main project.
3_ Click merge button and the following error is displayed:
Merge failed: Something went wrong during merge pre-receive hook. You are not allowed to push code to this project. Please try again.
Example Project
https://gitlab.com/cki-project/experimental/ina-foobar/-/merge_requests/1
What is the current bug behavior?
Merge requests from a fork to a project with the target branch protected can't be merged unless the merger is 'Allowed to push'
What is the expected correct behavior?
Merge request should be merged as the merger is 'Allowed to merge'