Class GetBranch
Inheritance
System.Object
GetBranch
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Github
Assembly: Pulumi.Github.dll
Syntax
public static class GetBranch
Methods
View SourceInvokeAsync(GetBranchArgs, InvokeOptions)
Use this data source to retrieve information about a repository branch.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Github = Pulumi.Github;
class MyStack : Stack
{
public MyStack()
{
var development = Output.Create(Github.GetBranch.InvokeAsync(new Github.GetBranchArgs
{
Branch = "development",
Repository = "example",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetBranchResult> InvokeAsync(GetBranchArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetBranchArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetBranchResult> |