get Repository Milestone
suspend fun getRepositoryMilestone(argument: GetRepositoryMilestonePlainArgs): GetRepositoryMilestoneResult
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({
owner: "example-owner",
repository: "example-repository",
number: 1,
});
Content copied to clipboard
import pulumi
import pulumi_github as github
example = github.get_repository_milestone(owner="example-owner",
repository="example-repository",
number=1)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Github = Pulumi.Github;
return await Deployment.RunAsync(() =>
{
var example = Github.GetRepositoryMilestone.Invoke(new()
{
Owner = "example-owner",
Repository = "example-repository",
Number = 1,
});
});
Content copied to clipboard
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{
Owner: "example-owner",
Repository: "example-repository",
Number: 1,
}, nil)
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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()
.owner("example-owner")
.repository("example-repository")
.number(1)
.build());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: github:getRepositoryMilestone
arguments:
owner: example-owner
repository: example-repository
number: 1
Content copied to clipboard
Return
A collection of values returned by getRepositoryMilestone.
Parameters
argument
A collection of arguments for invoking getRepositoryMilestone.
suspend fun getRepositoryMilestone(number: Int, owner: String, repository: String): GetRepositoryMilestoneResult
Return
A collection of values returned by getRepositoryMilestone.
Parameters
number
The number of the milestone.
owner
Owner of the repository.
repository
Name of the repository to retrieve the milestone from.
See also
suspend fun getRepositoryMilestone(argument: suspend GetRepositoryMilestonePlainArgsBuilder.() -> Unit): GetRepositoryMilestoneResult
Return
A collection of values returned by getRepositoryMilestone.
Parameters
argument
Builder for com.pulumi.github.kotlin.inputs.GetRepositoryMilestonePlainArgs.