@pulumi/github
Version:
A Pulumi package for creating and managing github cloud resources.
54 lines • 1.82 kB
JavaScript
// *** 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.getRepositoryTeamsOutput = exports.getRepositoryTeams = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to retrieve the list of teams which have access to a GitHub repository.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as github from "@pulumi/github";
*
* const example = github.getRepositoryTeams({
* name: "example",
* });
* ```
*/
function getRepositoryTeams(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("github:index/getRepositoryTeams:getRepositoryTeams", {
"fullName": args.fullName,
"name": args.name,
}, opts);
}
exports.getRepositoryTeams = getRepositoryTeams;
/**
* Use this data source to retrieve the list of teams which have access to a GitHub repository.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as github from "@pulumi/github";
*
* const example = github.getRepositoryTeams({
* name: "example",
* });
* ```
*/
function getRepositoryTeamsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("github:index/getRepositoryTeams:getRepositoryTeams", {
"fullName": args.fullName,
"name": args.name,
}, opts);
}
exports.getRepositoryTeamsOutput = getRepositoryTeamsOutput;
//# sourceMappingURL=getRepositoryTeams.js.map
;