1. Packages
  2. Github Provider
  3. API Docs
  4. getIssueLabels
GitHub v6.7.0 published on Friday, Feb 28, 2025 by Pulumi

github.getIssueLabels

Explore with Pulumi AI

GitHub v6.7.0 published on Friday, Feb 28, 2025 by Pulumi

Use this data source to retrieve the labels for a given repository.

Using getIssueLabels

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getIssueLabels(args: GetIssueLabelsArgs, opts?: InvokeOptions): Promise<GetIssueLabelsResult>
function getIssueLabelsOutput(args: GetIssueLabelsOutputArgs, opts?: InvokeOptions): Output<GetIssueLabelsResult>
Copy
def get_issue_labels(repository: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetIssueLabelsResult
def get_issue_labels_output(repository: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetIssueLabelsResult]
Copy
func LookupIssueLabels(ctx *Context, args *LookupIssueLabelsArgs, opts ...InvokeOption) (*LookupIssueLabelsResult, error)
func LookupIssueLabelsOutput(ctx *Context, args *LookupIssueLabelsOutputArgs, opts ...InvokeOption) LookupIssueLabelsResultOutput
Copy

> Note: This function is named LookupIssueLabels in the Go SDK.

public static class GetIssueLabels 
{
    public static Task<GetIssueLabelsResult> InvokeAsync(GetIssueLabelsArgs args, InvokeOptions? opts = null)
    public static Output<GetIssueLabelsResult> Invoke(GetIssueLabelsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIssueLabelsResult> getIssueLabels(GetIssueLabelsArgs args, InvokeOptions options)
public static Output<GetIssueLabelsResult> getIssueLabels(GetIssueLabelsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: github:index/getIssueLabels:getIssueLabels
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Repository This property is required. string
The name of the repository.
Repository This property is required. string
The name of the repository.
repository This property is required. String
The name of the repository.
repository This property is required. string
The name of the repository.
repository This property is required. str
The name of the repository.
repository This property is required. String
The name of the repository.

getIssueLabels Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Labels List<GetIssueLabelsLabel>
The list of this repository's labels. Each element of labels has the following attributes:
Repository string
Id string
The provider-assigned unique ID for this managed resource.
Labels []GetIssueLabelsLabel
The list of this repository's labels. Each element of labels has the following attributes:
Repository string
id String
The provider-assigned unique ID for this managed resource.
labels List<GetIssueLabelsLabel>
The list of this repository's labels. Each element of labels has the following attributes:
repository String
id string
The provider-assigned unique ID for this managed resource.
labels GetIssueLabelsLabel[]
The list of this repository's labels. Each element of labels has the following attributes:
repository string
id str
The provider-assigned unique ID for this managed resource.
labels Sequence[GetIssueLabelsLabel]
The list of this repository's labels. Each element of labels has the following attributes:
repository str
id String
The provider-assigned unique ID for this managed resource.
labels List<Property Map>
The list of this repository's labels. Each element of labels has the following attributes:
repository String

Supporting Types

GetIssueLabelsLabel

Color This property is required. string
The hexadecimal color code for the label, without the leading #.
Description This property is required. string
A short description of the label.
Name This property is required. string
The name of the label.
Url This property is required. string
The URL of the label.
Color This property is required. string
The hexadecimal color code for the label, without the leading #.
Description This property is required. string
A short description of the label.
Name This property is required. string
The name of the label.
Url This property is required. string
The URL of the label.
color This property is required. String
The hexadecimal color code for the label, without the leading #.
description This property is required. String
A short description of the label.
name This property is required. String
The name of the label.
url This property is required. String
The URL of the label.
color This property is required. string
The hexadecimal color code for the label, without the leading #.
description This property is required. string
A short description of the label.
name This property is required. string
The name of the label.
url This property is required. string
The URL of the label.
color This property is required. str
The hexadecimal color code for the label, without the leading #.
description This property is required. str
A short description of the label.
name This property is required. str
The name of the label.
url This property is required. str
The URL of the label.
color This property is required. String
The hexadecimal color code for the label, without the leading #.
description This property is required. String
A short description of the label.
name This property is required. String
The name of the label.
url This property is required. String
The URL of the label.

Package Details

Repository
GitHub pulumi/pulumi-github
License
Apache-2.0
Notes
This Pulumi package is based on the github Terraform Provider.
GitHub v6.7.0 published on Friday, Feb 28, 2025 by Pulumi