Skip to content

github_team_repository permission field do not accept "maintain" #270

@Ameausoone

Description

@Ameausoone

Terraform Version

Terraform v0.11.14
provider.github v2.2.0

Affected Resource(s)

Please list the resources as a list, for example:

  • github_team_repository

Terraform Configuration Files

resource "github_team_repository" "team_developers" {
  team_id = "${github_team.team.id}"
  repository = "my-repo"
  permission = "maintain"
}

Debug Output

N/A

Panic Output

N/A

Expected Behavior

We expect to assign "maintain" role on repository for specified team.

Actual Behavior

But this role is still in beta, it doesn't seem to be available through api => https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator.

I got this (expected) error:

Error: github_team_repository.team_developers: maintain is an invalid value for argument permission

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

Important Factoids

I think it will be available once maintain feature will be released, I create this issue to follow when it will be available.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions