Class: Entitlements::Backend::GitHubOrg

Inherits:
Object
  • Object
show all
Includes:
Contracts::Core
Defined in:
lib/entitlements/backend/github_org.rb,
lib/entitlements/backend/github_org/service.rb,
lib/entitlements/backend/github_org/provider.rb,
lib/entitlements/backend/github_org/controller.rb

Defined Under Namespace

Classes: Controller, DuplicateUserError, Provider, Service

Constant Summary collapse

C =
::Contracts
ORGANIZATION_ROLES =

There are certain supported roles (which are mutually exclusive): admin, billing manager, member. Define these in this one central place to be consumed everywhere. The key is the name of the Entitlement, and that data is how this role appears on dotcom.

{
  "admin"  => "ADMIN",
  # `billing-manager` is currently not supported
  "member" => "MEMBER"
}