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

[BUG]: github_issue_labels data source inconsistent in docs #2578

Open
1 task done
Hasuzawa opened this issue Mar 2, 2025 · 0 comments
Open
1 task done

[BUG]: github_issue_labels data source inconsistent in docs #2578

Hasuzawa opened this issue Mar 2, 2025 · 0 comments
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented

Comments

@Hasuzawa
Copy link

Hasuzawa commented Mar 2, 2025

Expected Behavior

The doc for data source github_labels is inconsistent.
I have checked github_issue_labels is working while github_labels is not.

Image

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

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

Panic Output

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Hasuzawa Hasuzawa added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Mar 2, 2025
@github-project-automation github-project-automation bot moved this to 🆕 Triage in 🧰 Octokit Active Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented
Projects
None yet
Development

No branches or pull requests

1 participant