Skip to content

Allow custom role names for permission argument #988

Closed

Description

@emtunc

As per https://docs.github.com/en/rest/reference/teams#add-or-update-team-repository-permissions - custom role names (https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) are now permitted when adding/updating permissions for teams.

The Terraform provider still only expects pull, triage, push, maintain, or admin

For the avoidance of doubt, I have tested setting permissions with a custom role name (it seems to be case sensitive) via the GH API and it works.

Would someone be so kind as to allow string values for the permission argument please?

Activity

  1. joshua-hancox commented on Apr 20, 2022

    @joshua-hancox
    Contributor

    I raised a PR here, based on another - could anyone help in getting this reviewed/merged? 😃

    #1113

  2. joshua-hancox commented on May 19, 2022

    @joshua-hancox
    Contributor

    @kfcampbell could we merge/release this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Featurer/team_membership

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions