Module: ProtectedBranches

Defined in:
app/services/protected_branches/legacy_api_create_service.rb,
app/services/protected_branches/api_service.rb,
app/services/protected_branches/base_service.rb,
app/services/protected_branches/cache_service.rb,
app/services/protected_branches/create_service.rb,
app/services/protected_branches/update_service.rb,
app/services/protected_branches/destroy_service.rb,
app/services/protected_branches/legacy_api_update_service.rb

Overview

The branches#protect API still uses the ‘developers_can_push` and `developers_can_merge` flags for backward compatibility, and so performs translation between that format and the internal data model (separate access levels). The translation code is non-trivial, and so lives in this service.

Defined Under Namespace

Classes: ApiService, BaseService, CacheService, CreateService, DestroyService, LegacyApiCreateService, LegacyApiUpdateService, UpdateService