@@ -590,32 +590,57 @@ func TestOrganizationMembersService_Update(t *testing.T) {
590590 },
591591 },
592592 },
593- OrganizationRole : OrganizationRoleMember ,
594- OrganizationRoleList : []RoleListItem {
593+ OrgRole : OrganizationRoleMember ,
594+ OrgRoleList : []OrganizationRoleListItem {
595595 {
596- ID : "billing" ,
597- Name : "Billing" ,
598- IsAllowed : true ,
596+ ID : "billing" ,
597+ Name : "Billing" ,
598+ Desc : "Can manage subscription and billing details." ,
599+ Scopes : []string {"org:billing" },
600+ IsAllowed : true ,
601+ IsRetired : false ,
602+ IsGlobal : false ,
603+ MinimumTeamRole : "contributor" ,
599604 },
600605 {
601- ID : "member" ,
602- Name : "Member" ,
603- IsAllowed : true ,
606+ ID : "member" ,
607+ Name : "Member" ,
608+ Desc : "Members can view and act on events, as well as view most other data within the organization." ,
609+ Scopes : []string {"team:read" , "project:releases" , "org:read" , "event:read" , "alerts:write" , "member:read" , "alerts:read" , "event:admin" , "project:read" , "event:write" },
610+ IsAllowed : true ,
611+ IsRetired : false ,
612+ IsGlobal : false ,
613+ MinimumTeamRole : "contributor" ,
604614 },
605615 {
606- ID : "admin" ,
607- Name : "Admin" ,
608- IsAllowed : true ,
616+ ID : "admin" ,
617+ Name : "Admin" ,
618+ Desc : "Admin privileges on any teams of which they're a member. They can create new teams and projects, as well as remove teams and projects on which they already hold membership (or all teams, if open membership is enabled). Additionally, they can manage memberships of teams that they are members of. They cannot invite members to the organization." ,
619+ Scopes : []string {"team:admin" , "org:integrations" , "project:admin" , "team:read" , "project:releases" , "org:read" , "team:write" , "event:read" , "alerts:write" , "member:read" , "alerts:read" , "event:admin" , "project:read" , "event:write" , "project:write" },
620+ IsAllowed : true ,
621+ IsRetired : true ,
622+ IsGlobal : false ,
623+ MinimumTeamRole : "admin" ,
609624 },
610625 {
611- ID : "manager" ,
612- Name : "Manager" ,
613- IsAllowed : true ,
626+ ID : "manager" ,
627+ Name : "Manager" ,
628+ Desc : "Gains admin access on all teams as well as the ability to add and remove members." ,
629+ Scopes : []string {"team:admin" , "org:integrations" , "project:releases" , "team:write" , "member:read" , "org:write" , "project:write" , "project:admin" , "team:read" , "org:read" , "event:read" , "member:write" , "alerts:write" , "alerts:read" , "event:admin" , "project:read" , "event:write" , "member:admin" },
630+ IsAllowed : true ,
631+ IsRetired : false ,
632+ IsGlobal : true ,
633+ MinimumTeamRole : "admin" ,
614634 },
615635 {
616- ID : "owner" ,
617- Name : "Owner" ,
618- IsAllowed : true ,
636+ ID : "owner" ,
637+ Name : "Owner" ,
638+ Desc : "Unrestricted access to the organization, its data, and its settings. Can add, modify, and delete projects and members, as well as make billing and plan changes." ,
639+ Scopes : []string {"team:admin" , "org:integrations" , "project:releases" , "org:admin" , "team:write" , "member:read" , "org:write" , "project:write" , "project:admin" , "team:read" , "org:read" , "event:read" , "member:write" , "alerts:write" , "org:billing" , "alerts:read" , "event:admin" , "project:read" , "event:write" , "member:admin" },
640+ IsAllowed : true ,
641+ IsRetired : false ,
642+ IsGlobal : true ,
643+ MinimumTeamRole : "admin" ,
619644 },
620645 },
621646 Pending : false ,
@@ -631,26 +656,34 @@ func TestOrganizationMembersService_Update(t *testing.T) {
631656 DateCreated : mustParseTime ("2021-07-06T21:13:01.120263Z" ),
632657 InviteStatus : "approved" ,
633658 InviterName : & inviterName ,
634- TeamRoleList : []RoleListItem {
659+ TeamRoleList : []TeamRoleListItem {
635660 {
636- ID : "contributor" ,
637- Name : "Contributor" ,
638- IsAllowed : false ,
661+ ID : "contributor" ,
662+ Name : "Contributor" ,
663+ Desc : "Contributors can view and act on events, as well as view most other data within the team's projects." ,
664+ Scopes : []string {"team:read" , "project:releases" , "org:read" , "event:read" , "member:read" , "alerts:read" , "project:read" , "event:write" },
665+ IsAllowed : false ,
666+ IsRetired : false ,
667+ IsMinimumRoleFor : nil ,
639668 },
640669 {
641- ID : "admin" ,
642- Name : "Team Admin" ,
643- IsAllowed : false ,
670+ ID : "admin" ,
671+ Name : "Team Admin" ,
672+ Desc : "Admin privileges on the team. They can create and remove projects, and can manage the team's memberships. They cannot invite members to the organization." ,
673+ Scopes : []string {"team:admin" , "org:integrations" , "project:admin" , "team:read" , "project:releases" , "org:read" , "team:write" , "event:read" , "alerts:write" , "member:read" , "alerts:read" , "event:admin" , "project:read" , "event:write" , "project:write" },
674+ IsAllowed : false ,
675+ IsRetired : false ,
676+ IsMinimumRoleFor : String ("admin" ),
644677 },
645678 },
646679 TeamRoles : []TeamRole {
647680 {
648681 TeamSlug : "ancient-gabelers" ,
649- Role : TeamRoleAdmin ,
682+ Role : String ( TeamRoleAdmin ) ,
650683 },
651684 {
652685 TeamSlug : "powerful-abolitionist" ,
653- Role : TeamRoleContributor ,
686+ Role : String ( TeamRoleContributor ) ,
654687 },
655688 },
656689 Teams : []string {
0 commit comments