Accept Merge Request using the matched user email
Description
Gitlab allows the configuration to accept commits from an email regex and block the ones that don't match. If the user has more than one email at the profile, the Gitlab will use the commit user email. It works well on the communication with the client terminal, but at the webUI, will always use the primary email blocking the change if it doesn't match the regex.
Given My primary email is personal
And I have the emailalan@someorg.org
And The repository push role has thecommit author's emailas@someorg.org$
When I edit theREADME.MDusing the WebUI
Then I should be able to save my changes
And The commit will use the email that matches the push role
This is more visible in this situation where happens a block:
Given My primary email is personal
And I have the emailalan@someorg.org
And The repository push role has thecommit author's emailas@someorg.org$
And The repository protect branches doesn't allow directly commits to themasterbranch
And The repository has a pending Merge Request withmasteras target
When I try to accept the merge request
Then The merge should happen
And The commit will use the email that matches the push role
Proposal
Permit a single user to work with different organizations using the WebUI. Unblock the user that has the personal email as the primary one and needs to approve a Merge Request from an organization.