You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Fetch only teams required for environments (#17)
Saves fetching all of the teams in the org for every repository.
Especially wasted API calls when there are no environments being
defined.
I've never used the `environments` input before, but the following
*works* with this new code and fails with the old code. So... Was the
old code broken as well?
```
module "blah {
...
...
environments = {
production = {
reviewer_teams = [
"team-1",
"team-2"
]
reviewer_users = [
"user-1"
]
deployment_branch_policy = {
protected_branches = true
custom_branch_policies = false
}
}
}
}
|[github_organization_teams.all](https://registry.terraform.io/providers/integrations/github/latest/docs/data-sources/organization_teams)| data source |
123
+
|[github_team.reviewers](https://registry.terraform.io/providers/integrations/github/latest/docs/data-sources/team)| data source |
124
124
|[github_user.user](https://registry.terraform.io/providers/integrations/github/latest/docs/data-sources/user)| data source |
0 commit comments