Add node_modules

This commit is contained in:
Rachael Sewell
2019-08-06 21:05:52 -07:00
parent 332696c680
commit d166896dc8
368 changed files with 23488 additions and 501 deletions

14
node_modules/@actions/core/README.md generated vendored Executable file → Normal file
View File

@@ -1,7 +1,7 @@
# `@actions/core` # `@actions/core`
> Core functions for setting results, logging, registering secrets and exporting variables across actions > Core functions for setting results, logging, registering secrets and exporting variables across actions
## Usage ## Usage
See [src/core.ts](src/core.ts). See [src/core.ts](src/core.ts).

32
node_modules/@actions/core/lib/command.d.ts generated vendored Executable file → Normal file
View File

@@ -1,16 +1,16 @@
interface CommandProperties { interface CommandProperties {
[key: string]: string; [key: string]: string;
} }
/** /**
* Commands * Commands
* *
* Command Format: * Command Format:
* ##[name key=value;key=value]message * ##[name key=value;key=value]message
* *
* Examples: * Examples:
* ##[warning]This is the user warning message * ##[warning]This is the user warning message
* ##[set-secret name=mypassword]definatelyNotAPassword! * ##[set-secret name=mypassword]definatelyNotAPassword!
*/ */
export declare function issueCommand(command: string, properties: CommandProperties, message: string): void; export declare function issueCommand(command: string, properties: CommandProperties, message: string): void;
export declare function issue(name: string, message: string): void; export declare function issue(name: string, message: string): void;
export {}; export {};

130
node_modules/@actions/core/lib/command.js generated vendored Executable file → Normal file
View File

@@ -1,66 +1,66 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
const os = require("os"); const os = require("os");
/** /**
* Commands * Commands
* *
* Command Format: * Command Format:
* ##[name key=value;key=value]message * ##[name key=value;key=value]message
* *
* Examples: * Examples:
* ##[warning]This is the user warning message * ##[warning]This is the user warning message
* ##[set-secret name=mypassword]definatelyNotAPassword! * ##[set-secret name=mypassword]definatelyNotAPassword!
*/ */
function issueCommand(command, properties, message) { function issueCommand(command, properties, message) {
const cmd = new Command(command, properties, message); const cmd = new Command(command, properties, message);
process.stdout.write(cmd.toString() + os.EOL); process.stdout.write(cmd.toString() + os.EOL);
} }
exports.issueCommand = issueCommand; exports.issueCommand = issueCommand;
function issue(name, message) { function issue(name, message) {
issueCommand(name, {}, message); issueCommand(name, {}, message);
} }
exports.issue = issue; exports.issue = issue;
const CMD_PREFIX = '##['; const CMD_PREFIX = '##[';
class Command { class Command {
constructor(command, properties, message) { constructor(command, properties, message) {
if (!command) { if (!command) {
command = 'missing.command'; command = 'missing.command';
} }
this.command = command; this.command = command;
this.properties = properties; this.properties = properties;
this.message = message; this.message = message;
} }
toString() { toString() {
let cmdStr = CMD_PREFIX + this.command; let cmdStr = CMD_PREFIX + this.command;
if (this.properties && Object.keys(this.properties).length > 0) { if (this.properties && Object.keys(this.properties).length > 0) {
cmdStr += ' '; cmdStr += ' ';
for (const key in this.properties) { for (const key in this.properties) {
if (this.properties.hasOwnProperty(key)) { if (this.properties.hasOwnProperty(key)) {
const val = this.properties[key]; const val = this.properties[key];
if (val) { if (val) {
// safely append the val - avoid blowing up when attempting to // safely append the val - avoid blowing up when attempting to
// call .replace() if message is not a string for some reason // call .replace() if message is not a string for some reason
cmdStr += `${key}=${escape(`${val || ''}`)};`; cmdStr += `${key}=${escape(`${val || ''}`)};`;
} }
} }
} }
} }
cmdStr += ']'; cmdStr += ']';
// safely append the message - avoid blowing up when attempting to // safely append the message - avoid blowing up when attempting to
// call .replace() if message is not a string for some reason // call .replace() if message is not a string for some reason
const message = `${this.message || ''}`; const message = `${this.message || ''}`;
cmdStr += escapeData(message); cmdStr += escapeData(message);
return cmdStr; return cmdStr;
} }
} }
function escapeData(s) { function escapeData(s) {
return s.replace(/\r/g, '%0D').replace(/\n/g, '%0A'); return s.replace(/\r/g, '%0D').replace(/\n/g, '%0A');
} }
function escape(s) { function escape(s) {
return s return s
.replace(/\r/g, '%0D') .replace(/\r/g, '%0D')
.replace(/\n/g, '%0A') .replace(/\n/g, '%0A')
.replace(/]/g, '%5D') .replace(/]/g, '%5D')
.replace(/;/g, '%3B'); .replace(/;/g, '%3B');
} }
//# sourceMappingURL=command.js.map //# sourceMappingURL=command.js.map

0
node_modules/@actions/core/lib/command.js.map generated vendored Executable file → Normal file
View File

162
node_modules/@actions/core/lib/core.d.ts generated vendored Executable file → Normal file
View File

@@ -1,81 +1,81 @@
/** /**
* Interface for getInput options * Interface for getInput options
*/ */
export interface InputOptions { export interface InputOptions {
/** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */ /** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */
required?: boolean; required?: boolean;
} }
/** /**
* The code to exit an action * The code to exit an action
*/ */
export declare enum ExitCode { export declare enum ExitCode {
/** /**
* A code indicating that the action was successful * A code indicating that the action was successful
*/ */
Success = 0, Success = 0,
/** /**
* A code indicating that the action was a failure * A code indicating that the action was a failure
*/ */
Failure = 1, Failure = 1,
/** /**
* A code indicating that the action is complete, but neither succeeded nor failed * A code indicating that the action is complete, but neither succeeded nor failed
*/ */
Neutral = 78 Neutral = 78
} }
/** /**
* sets env variable for this action and future actions in the job * sets env variable for this action and future actions in the job
* @param name the name of the variable to set * @param name the name of the variable to set
* @param val the value of the variable * @param val the value of the variable
*/ */
export declare function exportVariable(name: string, val: string): void; export declare function exportVariable(name: string, val: string): void;
/** /**
* exports the variable and registers a secret which will get masked from logs * exports the variable and registers a secret which will get masked from logs
* @param name the name of the variable to set * @param name the name of the variable to set
* @param val value of the secret * @param val value of the secret
*/ */
export declare function exportSecret(name: string, val: string): void; export declare function exportSecret(name: string, val: string): void;
/** /**
* Prepends inputPath to the PATH (for this action and future actions) * Prepends inputPath to the PATH (for this action and future actions)
* @param inputPath * @param inputPath
*/ */
export declare function addPath(inputPath: string): void; export declare function addPath(inputPath: string): void;
/** /**
* Gets the value of an input. The value is also trimmed. * Gets the value of an input. The value is also trimmed.
* *
* @param name name of the input to get * @param name name of the input to get
* @param options optional. See InputOptions. * @param options optional. See InputOptions.
* @returns string * @returns string
*/ */
export declare function getInput(name: string, options?: InputOptions): string; export declare function getInput(name: string, options?: InputOptions): string;
/** /**
* Sets the value of an output. * Sets the value of an output.
* *
* @param name name of the output to set * @param name name of the output to set
* @param value value to store * @param value value to store
*/ */
export declare function setOutput(name: string, value: string): void; export declare function setOutput(name: string, value: string): void;
/** /**
* Sets the action status to neutral * Sets the action status to neutral
*/ */
export declare function setNeutral(): void; export declare function setNeutral(): void;
/** /**
* Sets the action status to failed. * Sets the action status to failed.
* When the action exits it will be with an exit code of 1 * When the action exits it will be with an exit code of 1
* @param message add error issue message * @param message add error issue message
*/ */
export declare function setFailed(message: string): void; export declare function setFailed(message: string): void;
/** /**
* Writes debug message to user log * Writes debug message to user log
* @param message debug message * @param message debug message
*/ */
export declare function debug(message: string): void; export declare function debug(message: string): void;
/** /**
* Adds an error issue * Adds an error issue
* @param message error issue message * @param message error issue message
*/ */
export declare function error(message: string): void; export declare function error(message: string): void;
/** /**
* Adds an warning issue * Adds an warning issue
* @param message warning issue message * @param message warning issue message
*/ */
export declare function warning(message: string): void; export declare function warning(message: string): void;

252
node_modules/@actions/core/lib/core.js generated vendored Executable file → Normal file
View File

@@ -1,127 +1,127 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
const command_1 = require("./command"); const command_1 = require("./command");
const path = require("path"); const path = require("path");
/** /**
* The code to exit an action * The code to exit an action
*/ */
var ExitCode; var ExitCode;
(function (ExitCode) { (function (ExitCode) {
/** /**
* A code indicating that the action was successful * A code indicating that the action was successful
*/ */
ExitCode[ExitCode["Success"] = 0] = "Success"; ExitCode[ExitCode["Success"] = 0] = "Success";
/** /**
* A code indicating that the action was a failure * A code indicating that the action was a failure
*/ */
ExitCode[ExitCode["Failure"] = 1] = "Failure"; ExitCode[ExitCode["Failure"] = 1] = "Failure";
/** /**
* A code indicating that the action is complete, but neither succeeded nor failed * A code indicating that the action is complete, but neither succeeded nor failed
*/ */
ExitCode[ExitCode["Neutral"] = 78] = "Neutral"; ExitCode[ExitCode["Neutral"] = 78] = "Neutral";
})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); })(ExitCode = exports.ExitCode || (exports.ExitCode = {}));
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// Variables // Variables
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** /**
* sets env variable for this action and future actions in the job * sets env variable for this action and future actions in the job
* @param name the name of the variable to set * @param name the name of the variable to set
* @param val the value of the variable * @param val the value of the variable
*/ */
function exportVariable(name, val) { function exportVariable(name, val) {
process.env[name] = val; process.env[name] = val;
command_1.issueCommand('set-env', { name }, val); command_1.issueCommand('set-env', { name }, val);
} }
exports.exportVariable = exportVariable; exports.exportVariable = exportVariable;
/** /**
* exports the variable and registers a secret which will get masked from logs * exports the variable and registers a secret which will get masked from logs
* @param name the name of the variable to set * @param name the name of the variable to set
* @param val value of the secret * @param val value of the secret
*/ */
function exportSecret(name, val) { function exportSecret(name, val) {
exportVariable(name, val); exportVariable(name, val);
command_1.issueCommand('set-secret', {}, val); command_1.issueCommand('set-secret', {}, val);
} }
exports.exportSecret = exportSecret; exports.exportSecret = exportSecret;
/** /**
* Prepends inputPath to the PATH (for this action and future actions) * Prepends inputPath to the PATH (for this action and future actions)
* @param inputPath * @param inputPath
*/ */
function addPath(inputPath) { function addPath(inputPath) {
command_1.issueCommand('add-path', {}, inputPath); command_1.issueCommand('add-path', {}, inputPath);
process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
} }
exports.addPath = addPath; exports.addPath = addPath;
/** /**
* Gets the value of an input. The value is also trimmed. * Gets the value of an input. The value is also trimmed.
* *
* @param name name of the input to get * @param name name of the input to get
* @param options optional. See InputOptions. * @param options optional. See InputOptions.
* @returns string * @returns string
*/ */
function getInput(name, options) { function getInput(name, options) {
const val = process.env[`INPUT_${name.replace(' ', '_').toUpperCase()}`] || ''; const val = process.env[`INPUT_${name.replace(' ', '_').toUpperCase()}`] || '';
if (options && options.required && !val) { if (options && options.required && !val) {
throw new Error(`Input required and not supplied: ${name}`); throw new Error(`Input required and not supplied: ${name}`);
} }
return val.trim(); return val.trim();
} }
exports.getInput = getInput; exports.getInput = getInput;
/** /**
* Sets the value of an output. * Sets the value of an output.
* *
* @param name name of the output to set * @param name name of the output to set
* @param value value to store * @param value value to store
*/ */
function setOutput(name, value) { function setOutput(name, value) {
command_1.issueCommand('set-output', { name }, value); command_1.issueCommand('set-output', { name }, value);
} }
exports.setOutput = setOutput; exports.setOutput = setOutput;
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// Results // Results
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** /**
* Sets the action status to neutral * Sets the action status to neutral
*/ */
function setNeutral() { function setNeutral() {
process.exitCode = ExitCode.Neutral; process.exitCode = ExitCode.Neutral;
} }
exports.setNeutral = setNeutral; exports.setNeutral = setNeutral;
/** /**
* Sets the action status to failed. * Sets the action status to failed.
* When the action exits it will be with an exit code of 1 * When the action exits it will be with an exit code of 1
* @param message add error issue message * @param message add error issue message
*/ */
function setFailed(message) { function setFailed(message) {
process.exitCode = ExitCode.Failure; process.exitCode = ExitCode.Failure;
error(message); error(message);
} }
exports.setFailed = setFailed; exports.setFailed = setFailed;
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// Logging Commands // Logging Commands
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** /**
* Writes debug message to user log * Writes debug message to user log
* @param message debug message * @param message debug message
*/ */
function debug(message) { function debug(message) {
command_1.issueCommand('debug', {}, message); command_1.issueCommand('debug', {}, message);
} }
exports.debug = debug; exports.debug = debug;
/** /**
* Adds an error issue * Adds an error issue
* @param message error issue message * @param message error issue message
*/ */
function error(message) { function error(message) {
command_1.issue('error', message); command_1.issue('error', message);
} }
exports.error = error; exports.error = error;
/** /**
* Adds an warning issue * Adds an warning issue
* @param message warning issue message * @param message warning issue message
*/ */
function warning(message) { function warning(message) {
command_1.issue('warning', message); command_1.issue('warning', message);
} }
exports.warning = warning; exports.warning = warning;
//# sourceMappingURL=core.js.map //# sourceMappingURL=core.js.map

0
node_modules/@actions/core/lib/core.js.map generated vendored Executable file → Normal file
View File

16
node_modules/@actions/core/package.json generated vendored Executable file → Normal file
View File

@@ -1,5 +1,5 @@
{ {
"_from": "file:toolkit\\actions-core-0.0.0.tgz", "_from": "file:toolkit/actions-core-0.0.0.tgz",
"_id": "@actions/core@0.0.0", "_id": "@actions/core@0.0.0",
"_inBundle": false, "_inBundle": false,
"_integrity": "sha512-P+mC79gXC2yvyU0+RDctxKUI1Q3tNruB+aSmFI47j2H0DylxtDEgycW9WXwt/zCY62lfwfvBoGKpuJRvFHDqpw==", "_integrity": "sha512-P+mC79gXC2yvyU0+RDctxKUI1Q3tNruB+aSmFI47j2H0DylxtDEgycW9WXwt/zCY62lfwfvBoGKpuJRvFHDqpw==",
@@ -7,23 +7,21 @@
"_phantomChildren": {}, "_phantomChildren": {},
"_requested": { "_requested": {
"type": "file", "type": "file",
"where": "C:\\Users\\damccorm\\Documents\\node12-template", "where": "/Users/rachmari/github-repos/hello-world-javascript-action",
"raw": "@actions/core@file:toolkit/actions-core-0.0.0.tgz", "raw": "@actions/core@file:toolkit/actions-core-0.0.0.tgz",
"name": "@actions/core", "name": "@actions/core",
"escapedName": "@actions%2fcore", "escapedName": "@actions%2fcore",
"scope": "@actions", "scope": "@actions",
"rawSpec": "file:toolkit/actions-core-0.0.0.tgz", "rawSpec": "file:toolkit/actions-core-0.0.0.tgz",
"saveSpec": "file:toolkit\\actions-core-0.0.0.tgz", "saveSpec": "file:toolkit/actions-core-0.0.0.tgz",
"fetchSpec": "C:\\Users\\damccorm\\Documents\\node12-template\\toolkit\\actions-core-0.0.0.tgz" "fetchSpec": "/Users/rachmari/github-repos/hello-world-javascript-action/toolkit/actions-core-0.0.0.tgz"
}, },
"_requiredBy": [ "_requiredBy": [
"/", "/"
"/@actions/tool-cache"
], ],
"_resolved": "C:\\Users\\damccorm\\Documents\\node12-template\\toolkit\\actions-core-0.0.0.tgz", "_resolved": "/Users/rachmari/github-repos/hello-world-javascript-action/toolkit/actions-core-0.0.0.tgz",
"_shasum": "3f3d82f209fd62dd9c01f180c963596f6c479f29",
"_spec": "@actions/core@file:toolkit/actions-core-0.0.0.tgz", "_spec": "@actions/core@file:toolkit/actions-core-0.0.0.tgz",
"_where": "C:\\Users\\damccorm\\Documents\\node12-template", "_where": "/Users/rachmari/github-repos/hello-world-javascript-action",
"bugs": { "bugs": {
"url": "https://github.com/actions/toolkit/issues" "url": "https://github.com/actions/toolkit/issues"
}, },

92
node_modules/@actions/github/README.md generated vendored Executable file → Normal file
View File

@@ -1,47 +1,47 @@
# `@actions/github` # `@actions/github`
> A hydrated Octokit client. > A hydrated Octokit client.
## Usage ## Usage
Returns an [Octokit SDK] client. See https://octokit.github.io/rest.js for the API. Returns an [Octokit SDK] client. See https://octokit.github.io/rest.js for the API.
``` ```
const github = require('@actions/github'); const github = require('@actions/github');
// This should be a token with access to your repository scoped in as a secret. // This should be a token with access to your repository scoped in as a secret.
const myToken = process.env.GITHUB_TOKEN const myToken = process.env.GITHUB_TOKEN
const octokit = new github.GitHub(myToken) const octokit = new github.GitHub(myToken)
const pulls = await octokit.pulls.get({ const pulls = await octokit.pulls.get({
owner: 'octokit', owner: 'octokit',
repo: 'rest.js', repo: 'rest.js',
pull_number: 123, pull_number: 123,
mediaType: { mediaType: {
format: 'diff' format: 'diff'
} }
}) })
console.log(pulls) console.log(pulls)
``` ```
You can also make GraphQL requests: You can also make GraphQL requests:
``` ```
const result = await octokit.graphql(query, variables) const result = await octokit.graphql(query, variables)
``` ```
Finally, you can get the context of the current action: Finally, you can get the context of the current action:
``` ```
const github = require('@actions/github'); const github = require('@actions/github');
const context = github.context const context = github.context
const newIssue = await octokit.issues.create({ const newIssue = await octokit.issues.create({
...context.repo, ...context.repo,
title: 'New issue!', title: 'New issue!',
body: 'Hello Universe!' body: 'Hello Universe!'
}) })
``` ```

52
node_modules/@actions/github/lib/context.d.ts generated vendored Executable file → Normal file
View File

@@ -1,26 +1,26 @@
import { WebhookPayload } from './interfaces'; import { WebhookPayload } from './interfaces';
export declare class Context { export declare class Context {
/** /**
* Webhook payload object that triggered the workflow * Webhook payload object that triggered the workflow
*/ */
payload: WebhookPayload; payload: WebhookPayload;
eventName: string; eventName: string;
sha: string; sha: string;
ref: string; ref: string;
workflow: string; workflow: string;
action: string; action: string;
actor: string; actor: string;
/** /**
* Hydrate the context from the environment * Hydrate the context from the environment
*/ */
constructor(); constructor();
readonly issue: { readonly issue: {
owner: string; owner: string;
repo: string; repo: string;
number: number; number: number;
}; };
readonly repo: { readonly repo: {
owner: string; owner: string;
repo: string; repo: string;
}; };
} }

74
node_modules/@actions/github/lib/context.js generated vendored Executable file → Normal file
View File

@@ -1,38 +1,38 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
/* eslint-disable @typescript-eslint/no-require-imports */ /* eslint-disable @typescript-eslint/no-require-imports */
class Context { class Context {
/** /**
* Hydrate the context from the environment * Hydrate the context from the environment
*/ */
constructor() { constructor() {
this.payload = process.env.GITHUB_EVENT_PATH this.payload = process.env.GITHUB_EVENT_PATH
? require(process.env.GITHUB_EVENT_PATH) ? require(process.env.GITHUB_EVENT_PATH)
: {}; : {};
this.eventName = process.env.GITHUB_EVENT_NAME; this.eventName = process.env.GITHUB_EVENT_NAME;
this.sha = process.env.GITHUB_SHA; this.sha = process.env.GITHUB_SHA;
this.ref = process.env.GITHUB_REF; this.ref = process.env.GITHUB_REF;
this.workflow = process.env.GITHUB_WORKFLOW; this.workflow = process.env.GITHUB_WORKFLOW;
this.action = process.env.GITHUB_ACTION; this.action = process.env.GITHUB_ACTION;
this.actor = process.env.GITHUB_ACTOR; this.actor = process.env.GITHUB_ACTOR;
} }
get issue() { get issue() {
const payload = this.payload; const payload = this.payload;
return Object.assign({}, this.repo, { number: (payload.issue || payload.pullRequest || payload).number }); return Object.assign({}, this.repo, { number: (payload.issue || payload.pullRequest || payload).number });
} }
get repo() { get repo() {
if (process.env.GITHUB_REPOSITORY) { if (process.env.GITHUB_REPOSITORY) {
const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/'); const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
return { owner, repo }; return { owner, repo };
} }
if (this.payload.repository) { if (this.payload.repository) {
return { return {
owner: this.payload.repository.owner.login, owner: this.payload.repository.owner.login,
repo: this.payload.repository.name repo: this.payload.repository.name
}; };
} }
throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'"); throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'");
} }
} }
exports.Context = Context; exports.Context = Context;
//# sourceMappingURL=context.js.map //# sourceMappingURL=context.js.map

0
node_modules/@actions/github/lib/context.js.map generated vendored Executable file → Normal file
View File

12
node_modules/@actions/github/lib/github.d.ts generated vendored Executable file → Normal file
View File

@@ -1,6 +1,6 @@
import { GraphQlQueryResponse, Variables } from '@octokit/graphql'; import { GraphQlQueryResponse, Variables } from '@octokit/graphql';
import Octokit from '@octokit/rest'; import Octokit from '@octokit/rest';
export declare class GitHub extends Octokit { export declare class GitHub extends Octokit {
graphql: (query: string, variables?: Variables) => Promise<GraphQlQueryResponse>; graphql: (query: string, variables?: Variables) => Promise<GraphQlQueryResponse>;
constructor(token: string); constructor(token: string);
} }

56
node_modules/@actions/github/lib/github.js generated vendored Executable file → Normal file
View File

@@ -1,29 +1,29 @@
"use strict"; "use strict";
var __importDefault = (this && this.__importDefault) || function (mod) { var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod }; return (mod && mod.__esModule) ? mod : { "default": mod };
}; };
var __importStar = (this && this.__importStar) || function (mod) { var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod; if (mod && mod.__esModule) return mod;
var result = {}; var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod; result["default"] = mod;
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
// Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/master/src/github.ts // Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/master/src/github.ts
const graphql_1 = require("@octokit/graphql"); const graphql_1 = require("@octokit/graphql");
const rest_1 = __importDefault(require("@octokit/rest")); const rest_1 = __importDefault(require("@octokit/rest"));
const Context = __importStar(require("./context")); const Context = __importStar(require("./context"));
// We need this in order to extend Octokit // We need this in order to extend Octokit
rest_1.default.prototype = new rest_1.default(); rest_1.default.prototype = new rest_1.default();
module.exports.context = new Context.Context(); module.exports.context = new Context.Context();
class GitHub extends rest_1.default { class GitHub extends rest_1.default {
constructor(token) { constructor(token) {
super({ auth: `token ${token}` }); super({ auth: `token ${token}` });
this.graphql = graphql_1.defaults({ this.graphql = graphql_1.defaults({
headers: { authorization: `token ${token}` } headers: { authorization: `token ${token}` }
}); });
} }
} }
exports.GitHub = GitHub; exports.GitHub = GitHub;
//# sourceMappingURL=github.js.map //# sourceMappingURL=github.js.map

0
node_modules/@actions/github/lib/github.js.map generated vendored Executable file → Normal file
View File

72
node_modules/@actions/github/lib/interfaces.d.ts generated vendored Executable file → Normal file
View File

@@ -1,36 +1,36 @@
export interface PayloadRepository { export interface PayloadRepository {
[key: string]: any; [key: string]: any;
fullName?: string; fullName?: string;
name: string; name: string;
owner: { owner: {
[key: string]: any; [key: string]: any;
login: string; login: string;
name?: string; name?: string;
}; };
htmlUrl?: string; htmlUrl?: string;
} }
export interface WebhookPayload { export interface WebhookPayload {
[key: string]: any; [key: string]: any;
repository?: PayloadRepository; repository?: PayloadRepository;
issue?: { issue?: {
[key: string]: any; [key: string]: any;
number: number; number: number;
html_url?: string; html_url?: string;
body?: string; body?: string;
}; };
pullRequest?: { pullRequest?: {
[key: string]: any; [key: string]: any;
number: number; number: number;
htmlUrl?: string; htmlUrl?: string;
body?: string; body?: string;
}; };
sender?: { sender?: {
[key: string]: any; [key: string]: any;
type: string; type: string;
}; };
action?: string; action?: string;
installation?: { installation?: {
id: number; id: number;
[key: string]: any; [key: string]: any;
}; };
} }

6
node_modules/@actions/github/lib/interfaces.js generated vendored Executable file → Normal file
View File

@@ -1,4 +1,4 @@
"use strict"; "use strict";
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-explicit-any */
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=interfaces.js.map //# sourceMappingURL=interfaces.js.map

0
node_modules/@actions/github/lib/interfaces.js.map generated vendored Executable file → Normal file
View File

13
node_modules/@actions/github/package.json generated vendored Executable file → Normal file
View File

@@ -1,5 +1,5 @@
{ {
"_from": "file:toolkit\\actions-github-0.0.0.tgz", "_from": "file:toolkit/actions-github-0.0.0.tgz",
"_id": "@actions/github@0.0.0", "_id": "@actions/github@0.0.0",
"_inBundle": false, "_inBundle": false,
"_integrity": "sha512-K13pi9kbZqFnvhe8m6uqfz4kCnB4Ki6fzv4XBae1zDZfn2Si+Qx6j1pAfXSo7QI2+ZWAX/g0paFgcJsS6ZTWZA==", "_integrity": "sha512-K13pi9kbZqFnvhe8m6uqfz4kCnB4Ki6fzv4XBae1zDZfn2Si+Qx6j1pAfXSo7QI2+ZWAX/g0paFgcJsS6ZTWZA==",
@@ -7,22 +7,21 @@
"_phantomChildren": {}, "_phantomChildren": {},
"_requested": { "_requested": {
"type": "file", "type": "file",
"where": "C:\\Users\\damccorm\\Documents\\node12-template", "where": "/Users/rachmari/github-repos/hello-world-javascript-action",
"raw": "@actions/github@file:toolkit/actions-github-0.0.0.tgz", "raw": "@actions/github@file:toolkit/actions-github-0.0.0.tgz",
"name": "@actions/github", "name": "@actions/github",
"escapedName": "@actions%2fgithub", "escapedName": "@actions%2fgithub",
"scope": "@actions", "scope": "@actions",
"rawSpec": "file:toolkit/actions-github-0.0.0.tgz", "rawSpec": "file:toolkit/actions-github-0.0.0.tgz",
"saveSpec": "file:toolkit\\actions-github-0.0.0.tgz", "saveSpec": "file:toolkit/actions-github-0.0.0.tgz",
"fetchSpec": "C:\\Users\\damccorm\\Documents\\node12-template\\toolkit\\actions-github-0.0.0.tgz" "fetchSpec": "/Users/rachmari/github-repos/hello-world-javascript-action/toolkit/actions-github-0.0.0.tgz"
}, },
"_requiredBy": [ "_requiredBy": [
"/" "/"
], ],
"_resolved": "C:\\Users\\damccorm\\Documents\\node12-template\\toolkit\\actions-github-0.0.0.tgz", "_resolved": "/Users/rachmari/github-repos/hello-world-javascript-action/toolkit/actions-github-0.0.0.tgz",
"_shasum": "0764713c5b42ec9bbd9b4ca26b971dcdedadd820",
"_spec": "@actions/github@file:toolkit/actions-github-0.0.0.tgz", "_spec": "@actions/github@file:toolkit/actions-github-0.0.0.tgz",
"_where": "C:\\Users\\damccorm\\Documents\\node12-template", "_where": "/Users/rachmari/github-repos/hello-world-javascript-action",
"bugs": { "bugs": {
"url": "https://github.com/actions/toolkit/issues" "url": "https://github.com/actions/toolkit/issues"
}, },

0
node_modules/@octokit/endpoint/LICENSE generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/README.md generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-node/index.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-src/defaults.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-src/endpoint-with-defaults.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-src/generated/routes.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-src/index.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-src/merge.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-src/parse.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-src/types.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-src/util/add-query-parameters.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-src/util/extract-url-variable-names.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-src/util/lowercase-keys.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-src/util/omit.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-src/version.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-src/with-defaults.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-types/defaults.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-types/endpoint-with-defaults.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-types/generated/routes.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-types/index.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-types/merge.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-types/parse.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-types/types.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-types/util/add-query-parameters.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-types/util/extract-url-variable-names.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-types/util/lowercase-keys.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-types/util/omit.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-types/version.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-types/with-defaults.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/dist-web/index.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/node_modules/universal-user-agent/.travis.yml generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/node_modules/universal-user-agent/LICENSE.md generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/node_modules/universal-user-agent/README.md generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/node_modules/universal-user-agent/browser.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/node_modules/universal-user-agent/cypress.json generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/node_modules/universal-user-agent/index.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/endpoint/node_modules/universal-user-agent/index.js generated vendored Executable file → Normal file
View File

2
node_modules/@octokit/endpoint/node_modules/universal-user-agent/package.json generated vendored Executable file → Normal file
View File

@@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-3.0.0.tgz", "_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-3.0.0.tgz",
"_shasum": "4cc88d68097bffd7ac42e3b7c903e7481424b4b9", "_shasum": "4cc88d68097bffd7ac42e3b7c903e7481424b4b9",
"_spec": "universal-user-agent@^3.0.0", "_spec": "universal-user-agent@^3.0.0",
"_where": "C:\\Users\\damccorm\\Documents\\node12-template\\node_modules\\@octokit\\endpoint", "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/endpoint",
"author": { "author": {
"name": "Gregor Martynus", "name": "Gregor Martynus",
"url": "https://github.com/gr2m" "url": "https://github.com/gr2m"

View File

2
node_modules/@octokit/endpoint/package.json generated vendored Executable file → Normal file
View File

@@ -24,7 +24,7 @@
"_resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-5.3.2.tgz", "_resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-5.3.2.tgz",
"_shasum": "2deda2d869cac9ba7f370287d55667be2a808d4b", "_shasum": "2deda2d869cac9ba7f370287d55667be2a808d4b",
"_spec": "@octokit/endpoint@^5.1.0", "_spec": "@octokit/endpoint@^5.1.0",
"_where": "C:\\Users\\damccorm\\Documents\\node12-template\\node_modules\\@octokit\\request", "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/request",
"bugs": { "bugs": {
"url": "https://github.com/octokit/endpoint.js/issues" "url": "https://github.com/octokit/endpoint.js/issues"
}, },

0
node_modules/@octokit/graphql/LICENSE generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/graphql/README.md generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/graphql/index.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/graphql/lib/error.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/graphql/lib/graphql.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/graphql/lib/with-defaults.js generated vendored Executable file → Normal file
View File

2
node_modules/@octokit/graphql/package.json generated vendored Executable file → Normal file
View File

@@ -22,7 +22,7 @@
"_resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-2.1.3.tgz", "_resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-2.1.3.tgz",
"_shasum": "60c058a0ed5fa242eca6f938908d95fd1a2f4b92", "_shasum": "60c058a0ed5fa242eca6f938908d95fd1a2f4b92",
"_spec": "@octokit/graphql@^2.0.1", "_spec": "@octokit/graphql@^2.0.1",
"_where": "C:\\Users\\damccorm\\Documents\\node12-template\\toolkit\\actions-github-0.0.0.tgz", "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/toolkit/actions-github-0.0.0.tgz",
"author": { "author": {
"name": "Gregor Martynus", "name": "Gregor Martynus",
"url": "https://github.com/gr2m" "url": "https://github.com/gr2m"

0
node_modules/@octokit/request-error/LICENSE generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request-error/README.md generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request-error/dist-node/index.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request-error/dist-src/index.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request-error/dist-src/types.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request-error/dist-types/index.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request-error/dist-types/types.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request-error/dist-web/index.js generated vendored Executable file → Normal file
View File

2
node_modules/@octokit/request-error/package.json generated vendored Executable file → Normal file
View File

@@ -23,7 +23,7 @@
"_resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-1.0.4.tgz", "_resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-1.0.4.tgz",
"_shasum": "15e1dc22123ba4a9a4391914d80ec1e5303a23be", "_shasum": "15e1dc22123ba4a9a4391914d80ec1e5303a23be",
"_spec": "@octokit/request-error@^1.0.1", "_spec": "@octokit/request-error@^1.0.1",
"_where": "C:\\Users\\damccorm\\Documents\\node12-template\\node_modules\\@octokit\\request", "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/request",
"bugs": { "bugs": {
"url": "https://github.com/octokit/request-error.js/issues" "url": "https://github.com/octokit/request-error.js/issues"
}, },

0
node_modules/@octokit/request/LICENSE generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/README.md generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/dist-node/index.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/dist-src/fetch-wrapper.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/dist-src/get-buffer-response.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/dist-src/index.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/dist-src/types.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/dist-src/version.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/dist-src/with-defaults.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/dist-types/fetch-wrapper.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/dist-types/get-buffer-response.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/dist-types/index.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/dist-types/types.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/dist-types/version.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/dist-types/with-defaults.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/dist-web/index.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/node_modules/universal-user-agent/.travis.yml generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/node_modules/universal-user-agent/LICENSE.md generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/node_modules/universal-user-agent/README.md generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/node_modules/universal-user-agent/browser.js generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/node_modules/universal-user-agent/cypress.json generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/node_modules/universal-user-agent/index.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@octokit/request/node_modules/universal-user-agent/index.js generated vendored Executable file → Normal file
View File

2
node_modules/@octokit/request/node_modules/universal-user-agent/package.json generated vendored Executable file → Normal file
View File

@@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-3.0.0.tgz", "_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-3.0.0.tgz",
"_shasum": "4cc88d68097bffd7ac42e3b7c903e7481424b4b9", "_shasum": "4cc88d68097bffd7ac42e3b7c903e7481424b4b9",
"_spec": "universal-user-agent@^3.0.0", "_spec": "universal-user-agent@^3.0.0",
"_where": "C:\\Users\\damccorm\\Documents\\node12-template\\node_modules\\@octokit\\request", "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/request",
"author": { "author": {
"name": "Gregor Martynus", "name": "Gregor Martynus",
"url": "https://github.com/gr2m" "url": "https://github.com/gr2m"

0
node_modules/@octokit/request/node_modules/universal-user-agent/test/smoke-test.js generated vendored Executable file → Normal file
View File

Some files were not shown because too many files have changed in this diff Show More