UNPKG

@pulumi/github

Version:

A Pulumi package for creating and managing github cloud resources.

54 lines 2.04 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.getRepositoryBranchesOutput = exports.getRepositoryBranches = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to retrieve information about branches in a repository. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const example = github.getRepositoryBranches({ * repository: "example-repository", * }); * ``` */ function getRepositoryBranches(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("github:index/getRepositoryBranches:getRepositoryBranches", { "onlyNonProtectedBranches": args.onlyNonProtectedBranches, "onlyProtectedBranches": args.onlyProtectedBranches, "repository": args.repository, }, opts); } exports.getRepositoryBranches = getRepositoryBranches; /** * Use this data source to retrieve information about branches in a repository. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const example = github.getRepositoryBranches({ * repository: "example-repository", * }); * ``` */ function getRepositoryBranchesOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("github:index/getRepositoryBranches:getRepositoryBranches", { "onlyNonProtectedBranches": args.onlyNonProtectedBranches, "onlyProtectedBranches": args.onlyProtectedBranches, "repository": args.repository, }, opts); } exports.getRepositoryBranchesOutput = getRepositoryBranchesOutput; //# sourceMappingURL=getRepositoryBranches.js.map