integrations / integrations/terraform-provider-github
[BUG]: github_issue_labels data source inconsistent in docs
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 1k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 8
Description
### Expected Behavior
The doc for data source github_labels is inconsistent.
I have checked github_issue_labels is working while github_labels is not.
### Actual Behavior
github_labels is not valid data resource,
github_issue_labels is valid data resource.
since github label can be applied to both issue and pr,
github_labels might be more fitting as name.
### Terraform Version
Terraform v1.11.0
on darwin_arm64
+ provider registry.terraform.io/integrations/github v6.5.0
### Affected Resource(s)
- github_issue_labels
### Terraform Configuration Files
```hcl
terraform {
required_providers {
github = {
source = "integrations/github"
version = "~> 6.0"
}
}
}
provider "github" {
token = var.github_token
}
data "github_repository" "repository" {
full_name = var.repository_name
}
data github_issue_labels labels {
repository = data.github_repository.repository.name
}
output github_labels {
value = data.github_issue_labels.labels
}
```
### Steps to Reproduce
after providing proper token and repo name, run
```
terraform plan
```
### Debug Output
```shell
```
### Panic Output
```shell
```
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Contributor guide
Assessment
This issue has not been assessed yet.