UNPKG

@pulumi/github

Version:

A Pulumi package for creating and managing github cloud resources.

54 lines 1.7 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getBranchOutput = exports.getBranch = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to retrieve information about a repository branch. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const development = github.getBranch({ * repository: "example", * branch: "development", * }); * ``` */ function getBranch(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("github:index/getBranch:getBranch", { "branch": args.branch, "repository": args.repository, }, opts); } exports.getBranch = getBranch; /** * Use this data source to retrieve information about a repository branch. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const development = github.getBranch({ * repository: "example", * branch: "development", * }); * ``` */ function getBranchOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("github:index/getBranch:getBranch", { "branch": args.branch, "repository": args.repository, }, opts); } exports.getBranchOutput = getBranchOutput; //# sourceMappingURL=getBranch.js.map