group_name_for_github_team#

gafaelfawr.util.group_name_for_github_team(organization, team)#

Convert a GitHub organization and team to a group name.

Parameters:
  • organization (str) – Name of organization.

  • team (str) – Slug of the team.

Returns:

Group name suitable for use as a Gafaelfawr group.

Return type:

str

Notes

The default construction is the organization name (from the login field), a dash, and the team slug. If this is over 32 characters, it will be truncated to 25 characters and the first six characters of a hash of the full name will be appended for uniqueness.