GitHub

v5.0.0 published on Thursday, Sep 22, 2022 by Pulumi

getBranch

Using getBranch

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 getBranch(args: GetBranchArgs, opts?: InvokeOptions): Promise<GetBranchResult>
function getBranchOutput(args: GetBranchOutputArgs, opts?: InvokeOptions): Output<GetBranchResult>
def get_branch(branch: Optional[str] = None,
               repository: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetBranchResult
def get_branch_output(branch: Optional[pulumi.Input[str]] = None,
               repository: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetBranchResult]
func LookupBranch(ctx *Context, args *LookupBranchArgs, opts ...InvokeOption) (*LookupBranchResult, error)
func LookupBranchOutput(ctx *Context, args *LookupBranchOutputArgs, opts ...InvokeOption) LookupBranchResultOutput

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

public static class GetBranch 
{
    public static Task<GetBranchResult> InvokeAsync(GetBranchArgs args, InvokeOptions? opts = null)
    public static Output<GetBranchResult> Invoke(GetBranchInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBranchResult> getBranch(GetBranchArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: github:index/getBranch:getBranch
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Branch string
Repository string
Branch string
Repository string
branch String
repository String
branch string
repository string
branch String
repository String

getBranch Result

The following output properties are available:

Branch string
Etag string
Id string

The provider-assigned unique ID for this managed resource.

Ref string
Repository string
Sha string
Branch string
Etag string
Id string

The provider-assigned unique ID for this managed resource.

Ref string
Repository string
Sha string
branch String
etag String
id String

The provider-assigned unique ID for this managed resource.

ref String
repository String
sha String
branch string
etag string
id string

The provider-assigned unique ID for this managed resource.

ref string
repository string
sha string
branch str
etag str
id str

The provider-assigned unique ID for this managed resource.

ref str
repository str
sha str
branch String
etag String
id String

The provider-assigned unique ID for this managed resource.

ref String
repository String
sha String

Package Details

Repository
https://github.com/pulumi/pulumi-github
License
Apache-2.0
Notes

This Pulumi package is based on the github Terraform Provider.