Terraform Version
Terraform Version: 0.12.28
Provider Version: 2.9.0
Affected Resource(s)
github_branch
github_issue_label
- probably others that I don't use as much
Terraform Configuration Files
resource "github_branch" "branch" {
for_each = toset(local.branches)
repository = github_repository.repo.name
branch = each.value
source_branch = var.source_branch
lifecycle {
ignore_changes = [branch, source_branch]
create_before_destroy = true
}
}
resource "github_issue_label" "label" {
for_each = var.labels
repository = github_repository.repo.name
name = each.key
color = each.value
}
Debug Output
Setting debugging seems to yield any separate results from running w/out debugging.
Panic Output
No panic output.
Expected Behavior
Terraform should've had no problems creating GitHub branches and labels on repositories that are owned by a GitHub user.
Actual Behavior
Terraform erred with the following:
Error: This resource can only be used in the context of an organization, "foobar" is a user.
on ../tf-library/label.tf line 1, in resource "github_issue_label" "label":
1: resource "github_issue_label" "label" {
Error: This resource can only be used in the context of an organization, "foobar" is a user.
on ../tf-library/branch.tf line 6, in resource "github_branch" "branch":
6: resource "github_branch" "branch" {
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
- Use provider version 2.9.0 and specify a GitHub user as the owner
- Codify creating a new GH branch for a repository the GH user owns
- Codify creating a new label for a repository the GH user owns
- Run
terraform init
- Run
terraform apply
- See errors
Important Factoids
None that I can think of.
References
Terraform Version
Terraform Version:
0.12.28Provider Version:
2.9.0Affected Resource(s)
github_branchgithub_issue_labelTerraform Configuration Files
Debug Output
Setting debugging seems to yield any separate results from running w/out debugging.
Panic Output
No panic output.
Expected Behavior
Terraform should've had no problems creating GitHub branches and labels on repositories that are owned by a GitHub user.
Actual Behavior
Terraform erred with the following:
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform initterraform applyImportant Factoids
None that I can think of.
References