1. Packages
  2. GitHub
  3. API Docs
  4. getIssueLabels
GitHub v6.2.2 published on Tuesday, Jun 18, 2024 by Pulumi

github.getIssueLabels

Explore with Pulumi AI

github logo
GitHub v6.2.2 published on Tuesday, Jun 18, 2024 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>
    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]
    func LookupIssueLabels(ctx *Context, args *LookupIssueLabelsArgs, opts ...InvokeOption) (*LookupIssueLabelsResult, error)
    func LookupIssueLabelsOutput(ctx *Context, args *LookupIssueLabelsOutputArgs, opts ...InvokeOption) LookupIssueLabelsResultOutput

    > 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)
    }
    public static CompletableFuture<GetIssueLabelsResult> getIssueLabels(GetIssueLabelsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: github:index/getIssueLabels:getIssueLabels
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Repository string
    The name of the repository.
    Repository string
    The name of the repository.
    repository String
    The name of the repository.
    repository string
    The name of the repository.
    repository str
    The name of the repository.
    repository 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 string
    The hexadecimal color code for the label, without the leading #.
    Description string
    A short description of the label.
    Name string
    The name of the label.
    Url string
    The URL of the label.
    Color string
    The hexadecimal color code for the label, without the leading #.
    Description string
    A short description of the label.
    Name string
    The name of the label.
    Url string
    The URL of the label.
    color String
    The hexadecimal color code for the label, without the leading #.
    description String
    A short description of the label.
    name String
    The name of the label.
    url String
    The URL of the label.
    color string
    The hexadecimal color code for the label, without the leading #.
    description string
    A short description of the label.
    name string
    The name of the label.
    url string
    The URL of the label.
    color str
    The hexadecimal color code for the label, without the leading #.
    description str
    A short description of the label.
    name str
    The name of the label.
    url str
    The URL of the label.
    color String
    The hexadecimal color code for the label, without the leading #.
    description String
    A short description of the label.
    name String
    The name of the label.
    url 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 logo
    GitHub v6.2.2 published on Tuesday, Jun 18, 2024 by Pulumi