Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github_team_repository permission field do not accept "maintain" #270

Closed
Ameausoone opened this issue Aug 21, 2019 · 2 comments
Closed

github_team_repository permission field do not accept "maintain" #270

Ameausoone opened this issue Aug 21, 2019 · 2 comments

Comments

@Ameausoone
Copy link

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

@alexbde
Copy link

alexbde commented Jan 3, 2020

As stated in #296 this feature is out of beta / generally available: https://github.blog/2019-10-03-delegate-responsibilities-with-expanded-repository-permissions/

@Ameausoone
Copy link
Author

OK I close this issue, duplicate with #296 thx @alexbde

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants