Skip to content

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

Open

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

Activity

  1. added
    Status: Triage
    Type: Bug
    on Mar 2, 2025
  2. moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Activeon Jun 3, 2025
  3. github-actions commented on Dec 6, 2025

    @github-actions

    👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

  4. added
    Status: Stale
    on Dec 6, 2025
  5. added a commit that references this issue on Dec 10, 2025
    fdee2b3
  6. added
    Type: Documentation
    and removed
    Type: Bug
    Status: Stale
    on Mar 22, 2026
  7. added
    Type: Bug
    on Jul 22, 2026
  8. added theissue type on Jul 22, 2026
  9. added and removed
    Status: Triage
    on Jul 22, 2026
  10. added this to the v6.14.0 milestone on Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugType: Documentationd/issue_labelsvNext

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions