@pulumi/github
Version:
A Pulumi package for creating and managing github cloud resources.
58 lines • 1.75 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.getRefOutput = exports.getRef = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to retrieve information about a repository ref.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as github from "@pulumi/github";
*
* const development = github.getRef({
* owner: "example",
* repository: "example",
* ref: "heads/development",
* });
* ```
*/
function getRef(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("github:index/getRef:getRef", {
"owner": args.owner,
"ref": args.ref,
"repository": args.repository,
}, opts);
}
exports.getRef = getRef;
/**
* Use this data source to retrieve information about a repository ref.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as github from "@pulumi/github";
*
* const development = github.getRef({
* owner: "example",
* repository: "example",
* ref: "heads/development",
* });
* ```
*/
function getRefOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("github:index/getRef:getRef", {
"owner": args.owner,
"ref": args.ref,
"repository": args.repository,
}, opts);
}
exports.getRefOutput = getRefOutput;
//# sourceMappingURL=getRef.js.map
;