UNPKG

@pulumi/github

Version:

A Pulumi package for creating and managing github cloud resources.

50 lines 1.81 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.getBranchProtectionRulesOutput = exports.getBranchProtectionRules = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to retrieve a list of repository branch protection rules. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const example = github.getBranchProtectionRules({ * repository: "example", * }); * ``` */ function getBranchProtectionRules(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("github:index/getBranchProtectionRules:getBranchProtectionRules", { "repository": args.repository, }, opts); } exports.getBranchProtectionRules = getBranchProtectionRules; /** * Use this data source to retrieve a list of repository branch protection rules. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const example = github.getBranchProtectionRules({ * repository: "example", * }); * ``` */ function getBranchProtectionRulesOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("github:index/getBranchProtectionRules:getBranchProtectionRules", { "repository": args.repository, }, opts); } exports.getBranchProtectionRulesOutput = getBranchProtectionRulesOutput; //# sourceMappingURL=getBranchProtectionRules.js.map