1. Packages
  2. GitHub
  3. API Docs
  4. getRepositoryMilestone
GitHub v6.1.0 published on Monday, Mar 11, 2024 by Pulumi

github.getRepositoryMilestone

Explore with Pulumi AI

github logo
GitHub v6.1.0 published on Monday, Mar 11, 2024 by Pulumi

    Use this data source to retrieve information about a specific GitHub milestone in a repository.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as github from "@pulumi/github";
    
    const example = github.getRepositoryMilestone({
        number: 1,
        owner: "example-owner",
        repository: "example-repository",
    });
    
    import pulumi
    import pulumi_github as github
    
    example = github.get_repository_milestone(number=1,
        owner="example-owner",
        repository="example-repository")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-github/sdk/v6/go/github"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := github.LookupRepositoryMilestone(ctx, &github.LookupRepositoryMilestoneArgs{
    			Number:     1,
    			Owner:      "example-owner",
    			Repository: "example-repository",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Github = Pulumi.Github;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Github.GetRepositoryMilestone.Invoke(new()
        {
            Number = 1,
            Owner = "example-owner",
            Repository = "example-repository",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.github.GithubFunctions;
    import com.pulumi.github.inputs.GetRepositoryMilestoneArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = GithubFunctions.getRepositoryMilestone(GetRepositoryMilestoneArgs.builder()
                .number(1)
                .owner("example-owner")
                .repository("example-repository")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: github:getRepositoryMilestone
          Arguments:
            number: 1
            owner: example-owner
            repository: example-repository
    

    Using getRepositoryMilestone

    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 getRepositoryMilestone(args: GetRepositoryMilestoneArgs, opts?: InvokeOptions): Promise<GetRepositoryMilestoneResult>
    function getRepositoryMilestoneOutput(args: GetRepositoryMilestoneOutputArgs, opts?: InvokeOptions): Output<GetRepositoryMilestoneResult>
    def get_repository_milestone(number: Optional[int] = None,
                                 owner: Optional[str] = None,
                                 repository: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetRepositoryMilestoneResult
    def get_repository_milestone_output(number: Optional[pulumi.Input[int]] = None,
                                 owner: Optional[pulumi.Input[str]] = None,
                                 repository: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryMilestoneResult]
    func LookupRepositoryMilestone(ctx *Context, args *LookupRepositoryMilestoneArgs, opts ...InvokeOption) (*LookupRepositoryMilestoneResult, error)
    func LookupRepositoryMilestoneOutput(ctx *Context, args *LookupRepositoryMilestoneOutputArgs, opts ...InvokeOption) LookupRepositoryMilestoneResultOutput

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

    public static class GetRepositoryMilestone 
    {
        public static Task<GetRepositoryMilestoneResult> InvokeAsync(GetRepositoryMilestoneArgs args, InvokeOptions? opts = null)
        public static Output<GetRepositoryMilestoneResult> Invoke(GetRepositoryMilestoneInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRepositoryMilestoneResult> getRepositoryMilestone(GetRepositoryMilestoneArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: github:index/getRepositoryMilestone:getRepositoryMilestone
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Number int
    The number of the milestone.
    Owner string
    Owner of the repository.
    Repository string
    Name of the repository to retrieve the milestone from.
    Number int
    The number of the milestone.
    Owner string
    Owner of the repository.
    Repository string
    Name of the repository to retrieve the milestone from.
    number Integer
    The number of the milestone.
    owner String
    Owner of the repository.
    repository String
    Name of the repository to retrieve the milestone from.
    number number
    The number of the milestone.
    owner string
    Owner of the repository.
    repository string
    Name of the repository to retrieve the milestone from.
    number int
    The number of the milestone.
    owner str
    Owner of the repository.
    repository str
    Name of the repository to retrieve the milestone from.
    number Number
    The number of the milestone.
    owner String
    Owner of the repository.
    repository String
    Name of the repository to retrieve the milestone from.

    getRepositoryMilestone Result

    The following output properties are available:

    Description string
    Description of the milestone.
    DueDate string
    The milestone due date (in ISO-8601 yyyy-mm-dd format).
    Id string
    The provider-assigned unique ID for this managed resource.
    Number int
    Owner string
    Repository string
    State string
    State of the milestone.
    Title string
    Title of the milestone.
    Description string
    Description of the milestone.
    DueDate string
    The milestone due date (in ISO-8601 yyyy-mm-dd format).
    Id string
    The provider-assigned unique ID for this managed resource.
    Number int
    Owner string
    Repository string
    State string
    State of the milestone.
    Title string
    Title of the milestone.
    description String
    Description of the milestone.
    dueDate String
    The milestone due date (in ISO-8601 yyyy-mm-dd format).
    id String
    The provider-assigned unique ID for this managed resource.
    number Integer
    owner String
    repository String
    state String
    State of the milestone.
    title String
    Title of the milestone.
    description string
    Description of the milestone.
    dueDate string
    The milestone due date (in ISO-8601 yyyy-mm-dd format).
    id string
    The provider-assigned unique ID for this managed resource.
    number number
    owner string
    repository string
    state string
    State of the milestone.
    title string
    Title of the milestone.
    description str
    Description of the milestone.
    due_date str
    The milestone due date (in ISO-8601 yyyy-mm-dd format).
    id str
    The provider-assigned unique ID for this managed resource.
    number int
    owner str
    repository str
    state str
    State of the milestone.
    title str
    Title of the milestone.
    description String
    Description of the milestone.
    dueDate String
    The milestone due date (in ISO-8601 yyyy-mm-dd format).
    id String
    The provider-assigned unique ID for this managed resource.
    number Number
    owner String
    repository String
    state String
    State of the milestone.
    title String
    Title of the milestone.

    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.1.0 published on Monday, Mar 11, 2024 by Pulumi