You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The standard GitLab API supports PATCH'ing an existing protected branch to set the code_owner_approval_required flag. Otherwise the current gitlab4j appears to require unprotecting then protecting the branch with the new setting (which would leave the branch unprotected for some window of time, which you don't want).
For example, curling the API directly you could do something like this: