integrations / integrations/terraform-provider-github

[FEAT]: Support team/user slugs in github_repository_environment reviewers

Open
#2,848 1 comment 1 reaction 0 assignees View on GitHub
Status: Triage Type: Feature
Dominant language
Go
Stars
1.2k
Forks
1k
Avg merge
1d 14h
Merged PRs (30d)
8

Description

### Describe the need

Right now, the `github_repository_environment` resource only accepts **numeric IDs** for reviewers:

```hcl
reviewers {
teams = [data.github_user.devops.id]
}
```

It would be much easier if it supported **team slugs** and **user logins** instead:

```hcl
reviewers {
teams = ["devops", "security"]
users = ["jdoe", "asmith"]
}
```

This would make configurations more readable and portable, without needing extra data sources like:

```hcl
data "github_team" "devops" {
slug = "devops"
}
```

### SDK Version

_No response_

### API Version

_No response_

### Relevant log output

```shell

```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.