Skip to content

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

@Hasuzawa

Description

@Hasuzawa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleUsed by stalebot to clean houseStatus: TriageThis is being looked at and prioritizedType: BugSomething isn't working as documented

    Type

    No type

    Projects

    Status

    🔥 Backlog

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions