• Timothy Andrew's avatar
    Allow setting "Allowed To Push/Merge" while creating a protected branch. · 12387b4d
    Timothy Andrew authored
    1. Reuse the same dropdown component that we used for updating these
       settings (`ProtectedBranchesAccessSelect`). Have it accept options
       for the parent container (so we can control the elements it sees) and
       whether or not to save changes via AJAX (we need this for update, but
       not create).
    
    2. Change the "Developers" option to "Developers + Masters", which is
       clearer.
    
    3. Remove `developers_can_push` and `developers_can_merge` from the
       model, since they're not needed anymore.
    12387b4d
protected_branch.rb 1.89 KB