From 952ec598a5884449cc5e0a472a6834048b2f4cec Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 11:34:18 -0300 Subject: [PATCH 01/22] chore: Add dependabot configuration --- .github/dependabot.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..66cdc5c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,25 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + assignees: + - "etc-tiago" + reviewers: + - "etc-tiago" + labels: + - "dependencies" + + - package-ecosystem: "npm" + package_manager: "javascript" + directory: "/" + open-pull-requests-limit: 1 + schedule: + interval: "daily" + assignees: + - "etc-tiago" + reviewers: + - "etc-tiago" + labels: + - "dependencies" From f940781eccd024c525d9db63bec46683e98b8e72 Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 12:05:02 -0300 Subject: [PATCH 02/22] feat: Add commands --- src/commands.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/commands.js diff --git a/src/commands.js b/src/commands.js new file mode 100644 index 0000000..b449d32 --- /dev/null +++ b/src/commands.js @@ -0,0 +1,8 @@ +module.exports = { + gitPrume: + "git fetch --no-tags --prune origin +refs/pull/*/head:refs/remotes/origin/pr/*", + gitNoTag: "git fetch --no-tags origin +refs/heads/*:refs/remotes/origin/*", + getCommits: (pullRequestId) => + `git log --no-merges origin/pr/${pullRequestId} ^origin/master --pretty=oneline --no-abbrev-commit`, + changeFiles: (sha) => `git diff-tree --no-commit-id --name-only -r ${sha}`, +}; From 323dae8b61d9a306bc6b0591ff2918f1ec625853 Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 12:05:10 -0300 Subject: [PATCH 03/22] debug: Add logs --- src/index.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/index.js b/src/index.js index 2f36c62..0630bac 100644 --- a/src/index.js +++ b/src/index.js @@ -3,6 +3,7 @@ const exec = require("@actions/exec"); const github = require("@actions/github"); const core = require("@actions/core"); const makeTemplate = require("./converter"); +const {gitNoTag,changeFiles,getCommits,gitPrume} = require("./commands"); const pull_request = github.context.payload.pull_request; const PR_ID = pull_request.number; @@ -26,12 +27,6 @@ const postToGit = async (url, key, body) => { return content; }; -const gitPrume = - "git fetch --no-tags --prune origin +refs/pull/*/head:refs/remotes/origin/pr/*"; -const gitNoTag = - "git fetch --no-tags origin +refs/heads/*:refs/remotes/origin/*"; -const getCommits = `git log --no-merges origin/pr/${PR_ID} ^origin/master --pretty=oneline --no-abbrev-commit`; - /** * Action core */ @@ -51,6 +46,7 @@ const getCommits = `git log --no-merges origin/pr/${PR_ID} ^origin/master --pret const options = {}; options.listeners = { stdout: (data) => { + console.log('show what is stdout', {data,dtStr = data.toString()}) commits = `${commits}${data.toString()}`; }, stderr: (data) => { @@ -59,7 +55,7 @@ const getCommits = `git log --no-merges origin/pr/${PR_ID} ^origin/master --pret }; // get diff between master and current branch - await exec.exec(getCommits, [], options); + await exec.exec(getCommits(PR_ID), [], options); // If there were errors, we throw it if (myError !== "") { From bd2da6e2206655d29242ac9a04b139e9ba83e531 Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 12:06:29 -0300 Subject: [PATCH 04/22] debug: Fix command log --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 0630bac..493982b 100644 --- a/src/index.js +++ b/src/index.js @@ -3,7 +3,7 @@ const exec = require("@actions/exec"); const github = require("@actions/github"); const core = require("@actions/core"); const makeTemplate = require("./converter"); -const {gitNoTag,changeFiles,getCommits,gitPrume} = require("./commands"); +const { gitNoTag, changeFiles, getCommits, gitPrume } = require("./commands"); const pull_request = github.context.payload.pull_request; const PR_ID = pull_request.number; @@ -46,7 +46,7 @@ const postToGit = async (url, key, body) => { const options = {}; options.listeners = { stdout: (data) => { - console.log('show what is stdout', {data,dtStr = data.toString()}) + console.log("show what is stdout", { data, dtStr: data.toString() }); commits = `${commits}${data.toString()}`; }, stderr: (data) => { From 9e55e61203f187c4134580ba8908dcfdb3fdc503 Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 13:38:35 -0300 Subject: [PATCH 05/22] refactor: Add split commit to get sha --- src/index.js | 54 +++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 41 insertions(+), 13 deletions(-) diff --git a/src/index.js b/src/index.js index 493982b..2e74f96 100644 --- a/src/index.js +++ b/src/index.js @@ -41,28 +41,56 @@ const postToGit = async (url, key, body) => { await exec.exec(gitNoTag); // then we fetch the diff and grab the output - let commits = ""; + let commits = {}; + let commitsStr = ""; let myError = ""; - const options = {}; - options.listeners = { - stdout: (data) => { - console.log("show what is stdout", { data, dtStr: data.toString() }); - commits = `${commits}${data.toString()}`; - }, - stderr: (data) => { - myError = `${myError}${data.toString()}`; - }, - }; // get diff between master and current branch - await exec.exec(getCommits(PR_ID), [], options); + await exec.exec(getCommits(PR_ID), [], { + listeners: { + stdout: (data) => { + const splitted = data.toString().split("\n"); + splitted.forEach((item) => { + const sha = item.substr(0, 40); + const message = item.substr(41); + commits[sha] = { message }; + }); + + // remove + commitsStr = `${commitsStr}${data.toString()}`; + }, + stderr: (data) => { + myError = `${myError}${data.toString()}`; + }, + }, + }); // If there were errors, we throw it if (myError !== "") { throw new Error(myError); } - await postToGit(URL, GITHUB_TOKEN, makeTemplate(commits, PR_URL)); + console.log({ commits }); + + const shaKeys = Object.key(commits).map( + (sha) => + new Promise((resolve, reject) => { + exec.exec(changeFiles(sha), [], { + listeners: { + stdout: (data) => { + console.log(data.toString()); + }, + stderr: (data) => { + myError = `${myError}${data.toString()}`; + }, + }, + }); + }) + ); + + await Promise.all(shaKeys); + + await postToGit(URL, GITHUB_TOKEN, makeTemplate(commitsStr, PR_URL)); console.log("Changelog successfully posted"); } catch (e) { console.log(e); From 3ab85a90bbc7d20addfc1cc3dc14b685fb30327a Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 13:41:11 -0300 Subject: [PATCH 06/22] refactor: Fix Object.keys and non-existent key --- src/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 2e74f96..a9a4c6f 100644 --- a/src/index.js +++ b/src/index.js @@ -51,7 +51,13 @@ const postToGit = async (url, key, body) => { stdout: (data) => { const splitted = data.toString().split("\n"); splitted.forEach((item) => { + if (item === "") { + return; + } const sha = item.substr(0, 40); + if (sha === "") { + return; + } const message = item.substr(41); commits[sha] = { message }; }); @@ -72,13 +78,14 @@ const postToGit = async (url, key, body) => { console.log({ commits }); - const shaKeys = Object.key(commits).map( + const shaKeys = Object.keys(commits).map( (sha) => new Promise((resolve, reject) => { exec.exec(changeFiles(sha), [], { listeners: { stdout: (data) => { console.log(data.toString()); + resolve(); }, stderr: (data) => { myError = `${myError}${data.toString()}`; From 0488d44d39bf520d6750b1d3cab2ab3c81ee79ff Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 13:46:39 -0300 Subject: [PATCH 07/22] refactor: Add more sessions and add files to commits object --- src/converter.js | 16 ++++++++++++++++ src/index.js | 1 + 2 files changed, 17 insertions(+) diff --git a/src/converter.js b/src/converter.js index 73a5548..f1c8451 100644 --- a/src/converter.js +++ b/src/converter.js @@ -10,6 +10,8 @@ const headers = { "feat:": "feat", "fix:": "fix", "docs:": "docs", + "ci:": "ci", + "test:": "test", }; const prepareCommit = (str) => { @@ -136,6 +138,20 @@ module.exports = function MakeTemplate(commits, pullRequestUrl = "") { changesTemplate += showList("fix"); } + if (changes["ci"]) { + separator(); + doubleBreakline(); + changesTemplate += `## ๐Ÿ— CI${breakline}`; + changesTemplate += showList("fix"); + } + + if (changes["test"]) { + separator(); + doubleBreakline(); + changesTemplate += `## ๐Ÿ— Test${breakline}`; + changesTemplate += showList("fix"); + } + if (changes[changesHeader]) { separator(); doubleBreakline(); diff --git a/src/index.js b/src/index.js index a9a4c6f..f46b2c2 100644 --- a/src/index.js +++ b/src/index.js @@ -85,6 +85,7 @@ const postToGit = async (url, key, body) => { listeners: { stdout: (data) => { console.log(data.toString()); + commits[sha].files = data.toString(); resolve(); }, stderr: (data) => { From aa909c3408a13ed0704775d1f6dd60020ba9500c Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 13:48:13 -0300 Subject: [PATCH 08/22] refactor: Add split breakline and filter null keys --- src/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index f46b2c2..7aa91e3 100644 --- a/src/index.js +++ b/src/index.js @@ -76,8 +76,6 @@ const postToGit = async (url, key, body) => { throw new Error(myError); } - console.log({ commits }); - const shaKeys = Object.keys(commits).map( (sha) => new Promise((resolve, reject) => { @@ -85,7 +83,10 @@ const postToGit = async (url, key, body) => { listeners: { stdout: (data) => { console.log(data.toString()); - commits[sha].files = data.toString(); + commits[sha].files = data + .toString() + .split("\n") + .filter((i) => i); resolve(); }, stderr: (data) => { @@ -96,6 +97,8 @@ const postToGit = async (url, key, body) => { }) ); + console.log({ commits }); + await Promise.all(shaKeys); await postToGit(URL, GITHUB_TOKEN, makeTemplate(commitsStr, PR_URL)); From 4544cb6f6051d15d7cc49a45d088c94106cdc46b Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 14:04:15 -0300 Subject: [PATCH 09/22] refactor: Add file details on markdown message --- src/converter.js | 19 +++++++++++++------ src/index.js | 4 +--- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/converter.js b/src/converter.js index f1c8451..acb8218 100644 --- a/src/converter.js +++ b/src/converter.js @@ -57,10 +57,12 @@ const getHeader = (prefix) => { const commitUrl = (hash) => `${PR_URL}/commits/${hash}`; -const prepareOutput = (line) => { +const prepareOutput = (sha, contentLine) => { + const messageLine = contentLine.message; + const filesLine = contentLine.files; + // Get Hash, prefix and message - const hash = line.substr(0, 40); - const { prefix, scope, message } = prepareCommit(line.substr(41)); + const { prefix, scope, message } = prepareCommit(messageLine); // Check if commit has a valid message if (!prefix && !message) { @@ -68,7 +70,7 @@ const prepareOutput = (line) => { } // Create a hash link - const hashLink = `([${hash.substr(0, 7)}](${commitUrl(hash)}))`; + const hashLink = `([${sha.substr(0, 7)}](${commitUrl(sha)}))`; // Prepare const h = getHeader(prefix); @@ -78,10 +80,15 @@ const prepareOutput = (line) => { const prefixBold = prefix ? `**${prefix}** ` : ""; + const changedFiles = filesLine.map((file) => `- ${file}`); + const showPrefix = h === changesHeader ? prefixBold : ""; changes[h].push({ scope: scope || "no-scope", - message: `- ${showPrefix}${message} ${hashLink}`, + message: `- ${showPrefix}${message} ${hashLink}
+ Changed files + ${changedFiles.join("\n")} +
`, }); }; @@ -107,7 +114,7 @@ const showList = (topic) => { module.exports = function MakeTemplate(commits, pullRequestUrl = "") { PR_URL = pullRequestUrl; - commits.split("\n").forEach(prepareOutput); + commits.forEach((sha) => prepareOutput(sha, commits[sha])); let changesTemplate = ""; diff --git a/src/index.js b/src/index.js index 7aa91e3..1670b28 100644 --- a/src/index.js +++ b/src/index.js @@ -97,11 +97,9 @@ const postToGit = async (url, key, body) => { }) ); - console.log({ commits }); - await Promise.all(shaKeys); - await postToGit(URL, GITHUB_TOKEN, makeTemplate(commitsStr, PR_URL)); + await postToGit(URL, GITHUB_TOKEN, makeTemplate(commits, PR_URL)); console.log("Changelog successfully posted"); } catch (e) { console.log(e); From 6bdc16a5f85b7cb073b67f16c2d70808402e83df Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 14:06:22 -0300 Subject: [PATCH 10/22] fix:Fix commits.forEach is not a function --- src/converter.js | 2 +- src/index.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/converter.js b/src/converter.js index acb8218..927ca0b 100644 --- a/src/converter.js +++ b/src/converter.js @@ -114,7 +114,7 @@ const showList = (topic) => { module.exports = function MakeTemplate(commits, pullRequestUrl = "") { PR_URL = pullRequestUrl; - commits.forEach((sha) => prepareOutput(sha, commits[sha])); + Object.keys(commits).forEach((sha) => prepareOutput(sha, commits[sha])); let changesTemplate = ""; diff --git a/src/index.js b/src/index.js index 1670b28..5062b98 100644 --- a/src/index.js +++ b/src/index.js @@ -99,6 +99,8 @@ const postToGit = async (url, key, body) => { await Promise.all(shaKeys); + console.log({ commits }); + await postToGit(URL, GITHUB_TOKEN, makeTemplate(commits, PR_URL)); console.log("Changelog successfully posted"); } catch (e) { From 86aed4c781c7b9ce948b0e4c83c56e8ec6c16c8f Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 14:13:20 -0300 Subject: [PATCH 11/22] feat: Add refactor session --- src/converter.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/converter.js b/src/converter.js index 927ca0b..824d32f 100644 --- a/src/converter.js +++ b/src/converter.js @@ -12,6 +12,7 @@ const headers = { "docs:": "docs", "ci:": "ci", "test:": "test", + "refactor:": "refactor", }; const prepareCommit = (str) => { @@ -155,7 +156,14 @@ module.exports = function MakeTemplate(commits, pullRequestUrl = "") { if (changes["test"]) { separator(); doubleBreakline(); - changesTemplate += `## ๐Ÿ— Test${breakline}`; + changesTemplate += `## ๐Ÿงช Tests${breakline}`; + changesTemplate += showList("fix"); + } + + if (changes["refactor"]) { + separator(); + doubleBreakline(); + changesTemplate += `## โ™ป๏ธ Refactors${breakline}`; changesTemplate += showList("fix"); } From dc443c549676f56d3f7d61df0104f0ee7672eb23 Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 14:13:33 -0300 Subject: [PATCH 12/22] refactor: Remove console.log --- src/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.js b/src/index.js index 5062b98..15fdac1 100644 --- a/src/index.js +++ b/src/index.js @@ -82,7 +82,6 @@ const postToGit = async (url, key, body) => { exec.exec(changeFiles(sha), [], { listeners: { stdout: (data) => { - console.log(data.toString()); commits[sha].files = data .toString() .split("\n") From 4dd1c00b209606b57afa6235454a73d9313c22d0 Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 14:15:42 -0300 Subject: [PATCH 13/22] feat: Added commit menssage, prefix and hashLink on details --- src/converter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/converter.js b/src/converter.js index 824d32f..da553d6 100644 --- a/src/converter.js +++ b/src/converter.js @@ -86,8 +86,8 @@ const prepareOutput = (sha, contentLine) => { const showPrefix = h === changesHeader ? prefixBold : ""; changes[h].push({ scope: scope || "no-scope", - message: `- ${showPrefix}${message} ${hashLink}
- Changed files + message: `
+ ${showPrefix}${message} ${hashLink} ${changedFiles.join("\n")}
`, }); From 6281d11b64e6757aaf6d33117fb7e1a6e51830c5 Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 14:16:27 -0300 Subject: [PATCH 14/22] refactor: Remove separator ---- --- src/converter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/converter.js b/src/converter.js index da553d6..ab66c0c 100644 --- a/src/converter.js +++ b/src/converter.js @@ -128,7 +128,7 @@ module.exports = function MakeTemplate(commits, pullRequestUrl = "") { const separator = () => { if (changesTemplate) { - changesTemplate += `${breakline}---${breakline}`; + changesTemplate += `${breakline}${breakline}`; } }; From 5cd4c04c328f6c4ee8d21e9f17c9ea58d3b4c109 Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 14:19:49 -0300 Subject: [PATCH 15/22] refactor: Test reorder from summary --- src/converter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/converter.js b/src/converter.js index ab66c0c..d71c4c5 100644 --- a/src/converter.js +++ b/src/converter.js @@ -21,7 +21,7 @@ const prepareCommit = (str) => { return { prefix: "", message: str }; } const { prefix, scope } = getScope(str.substr(0, dotsIndex + 1)); - const message = str.substr(dotsIndex + 2); + const message = str.substr(dotsIndex + 1).trim(); return { prefix, message, scope }; }; @@ -87,7 +87,7 @@ const prepareOutput = (sha, contentLine) => { changes[h].push({ scope: scope || "no-scope", message: `
- ${showPrefix}${message} ${hashLink} + ${sha.substr(0, 7)} - ${showPrefix}${message} ${hashLink} ${changedFiles.join("\n")}
`, }); From 28b750a9574bec39d0e2f4fec5adece2b91277a5 Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 14:21:42 -0300 Subject: [PATCH 16/22] ci: Remove commitUrl --- src/converter.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/converter.js b/src/converter.js index d71c4c5..5501aef 100644 --- a/src/converter.js +++ b/src/converter.js @@ -56,8 +56,6 @@ const getHeader = (prefix) => { return changesHeader; }; -const commitUrl = (hash) => `${PR_URL}/commits/${hash}`; - const prepareOutput = (sha, contentLine) => { const messageLine = contentLine.message; const filesLine = contentLine.files; @@ -70,9 +68,6 @@ const prepareOutput = (sha, contentLine) => { return; } - // Create a hash link - const hashLink = `([${sha.substr(0, 7)}](${commitUrl(sha)}))`; - // Prepare const h = getHeader(prefix); if (!changes[h]) { @@ -87,7 +82,8 @@ const prepareOutput = (sha, contentLine) => { changes[h].push({ scope: scope || "no-scope", message: `
- ${sha.substr(0, 7)} - ${showPrefix}${message} ${hashLink} + ${sha.substr(0, 7)} - ${showPrefix}${message} + #### Changed files: ${changedFiles.join("\n")}
`, }); From b1d0eeed89bf74ed9f7da7d77398f237f261846d Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 14:23:25 -0300 Subject: [PATCH 17/22] test:Fix breakline inside details --- src/converter.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/converter.js b/src/converter.js index 5501aef..0f48c99 100644 --- a/src/converter.js +++ b/src/converter.js @@ -83,8 +83,7 @@ const prepareOutput = (sha, contentLine) => { scope: scope || "no-scope", message: `
${sha.substr(0, 7)} - ${showPrefix}${message} - #### Changed files: - ${changedFiles.join("\n")} + #### Changed files${breakline}${changedFiles.join("\n")}
`, }); }; From 93e4dc5bd0365f927980caed7f58341c81317494 Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 14:24:23 -0300 Subject: [PATCH 18/22] refactor: Remove console.log --- src/index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/index.js b/src/index.js index 15fdac1..f97b2ff 100644 --- a/src/index.js +++ b/src/index.js @@ -98,10 +98,7 @@ const postToGit = async (url, key, body) => { await Promise.all(shaKeys); - console.log({ commits }); - await postToGit(URL, GITHUB_TOKEN, makeTemplate(commits, PR_URL)); - console.log("Changelog successfully posted"); } catch (e) { console.log(e); process.exit(1); From f164641ecee3ec588d0cac3db21526f1b10ee93d Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 14:25:23 -0300 Subject: [PATCH 19/22] fix: Fix breaklines inside details --- src/converter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/converter.js b/src/converter.js index 0f48c99..1bab453 100644 --- a/src/converter.js +++ b/src/converter.js @@ -83,7 +83,8 @@ const prepareOutput = (sha, contentLine) => { scope: scope || "no-scope", message: `
${sha.substr(0, 7)} - ${showPrefix}${message} - #### Changed files${breakline}${changedFiles.join("\n")} + ${breakline}#### Changed files${breakline} + ${changedFiles.join("\n")}
`, }); }; From fd5ed7875198db6cded34984f9ea2c96544815e6 Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 14:27:25 -0300 Subject: [PATCH 20/22] chore: Update to 2.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2cca961..5835558 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pull-request-changelog", - "version": "1.2.1", + "version": "2.0.0", "description": "Github action that automatically generates changelog when PR is opened/updated", "main": "dist/index.js", "scripts": { From 55caf43b44dc7280694351d9b64a2605c7765be4 Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 14:27:57 -0300 Subject: [PATCH 21/22] chore: Update packages --- yarn.lock | 112 +++++++++++++++++------------------------------------- 1 file changed, 35 insertions(+), 77 deletions(-) diff --git a/yarn.lock b/yarn.lock index 1ad48a0..8db34c6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -37,11 +37,11 @@ integrity sha512-J8KuFqVPr3p6U8W93DOXlXW6zFvrQAJANdS+vw0YhusLIq+bszW8zmK2Fh1C2kDPX8FMvwIl1OUcFgvJoXLbAg== "@octokit/auth-token@^2.4.0": - version "2.4.0" - resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-2.4.0.tgz#b64178975218b99e4dfe948253f0673cbbb59d9f" - integrity sha512-eoOVMjILna7FVQf96iWc3+ZtE/ZT6y8ob8ZzcqKY1ibSQCnu4O/B7pJvzMx5cyZ/RjAff6DAdEb0O0Cjcxidkg== + version "2.4.2" + resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-2.4.2.tgz#10d0ae979b100fa6b72fa0e8e63e27e6d0dbff8a" + integrity sha512-jE/lE/IKIz2v1+/P0u4fJqv0kYwXOTujKemJMFr6FeopsxlIK3+wKDCJGnysg81XID5TgZQbIfuJ5J0lnTiuyQ== dependencies: - "@octokit/types" "^2.0.0" + "@octokit/types" "^5.0.0" "@octokit/core@^3.0.0": version "3.1.0" @@ -56,22 +56,22 @@ universal-user-agent "^5.0.0" "@octokit/endpoint@^6.0.1": - version "6.0.1" - resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-6.0.1.tgz#16d5c0e7a83e3a644d1ddbe8cded6c3d038d31d7" - integrity sha512-pOPHaSz57SFT/m3R5P8MUu4wLPszokn5pXcB/pzavLTQf2jbU+6iayTvzaY6/BiotuRS0qyEUkx3QglT4U958A== + version "6.0.3" + resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-6.0.3.tgz#dd09b599662d7e1b66374a177ab620d8cdf73487" + integrity sha512-Y900+r0gIz+cWp6ytnkibbD95ucEzDSKzlEnaWS52hbCDNcCJYO5mRmWW7HRAnDc7am+N/5Lnd8MppSaTYx1Yg== dependencies: - "@octokit/types" "^2.11.1" + "@octokit/types" "^5.0.0" is-plain-object "^3.0.0" universal-user-agent "^5.0.0" "@octokit/graphql@^4.3.1": - version "4.3.1" - resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-4.3.1.tgz#9ee840e04ed2906c7d6763807632de84cdecf418" - integrity sha512-hCdTjfvrK+ilU2keAdqNBWOk+gm1kai1ZcdjRfB30oA3/T6n53UVJb7w0L5cR3/rhU91xT3HSqCd+qbvH06yxA== + version "4.5.1" + resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-4.5.1.tgz#162aed1490320b88ce34775b3f6b8de945529fa9" + integrity sha512-qgMsROG9K2KxDs12CO3bySJaYoUu2aic90qpFrv7A8sEBzZ7UFGvdgPKiLw5gOPYEYbS0Xf8Tvf84tJutHPulQ== dependencies: "@octokit/request" "^5.3.0" - "@octokit/types" "^2.0.0" - universal-user-agent "^4.0.0" + "@octokit/types" "^5.0.0" + universal-user-agent "^5.0.0" "@octokit/plugin-paginate-rest@^2.2.3": version "2.2.3" @@ -89,57 +89,29 @@ deprecation "^2.3.1" "@octokit/request-error@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.0.0.tgz#94ca7293373654400fbb2995f377f9473e00834b" - integrity sha512-rtYicB4Absc60rUv74Rjpzek84UbVHGHJRu4fNVlZ1mCcyUPPuzFfG9Rn6sjHrd95DEsmjSt1Axlc699ZlbDkw== - dependencies: - "@octokit/types" "^2.0.0" - deprecation "^2.0.0" - once "^1.4.0" - -"@octokit/request@^5.3.0": - version "5.4.2" - resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.4.2.tgz#74f8e5bbd39dc738a1b127629791f8ad1b3193ee" - integrity sha512-zKdnGuQ2TQ2vFk9VU8awFT4+EYf92Z/v3OlzRaSh4RIP0H6cvW1BFPXq4XYvNez+TPQjqN+0uSkCYnMFFhcFrw== + version "2.0.2" + resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.0.2.tgz#0e76b83f5d8fdda1db99027ea5f617c2e6ba9ed0" + integrity sha512-2BrmnvVSV1MXQvEkrb9zwzP0wXFNbPJij922kYBTLIlIafukrGOb+ABBT2+c6wZiuyWDH1K1zmjGQ0toN/wMWw== dependencies: - "@octokit/endpoint" "^6.0.1" - "@octokit/request-error" "^2.0.0" - "@octokit/types" "^2.11.1" + "@octokit/types" "^5.0.1" deprecation "^2.0.0" - is-plain-object "^3.0.0" - node-fetch "^2.3.0" once "^1.4.0" - universal-user-agent "^5.0.0" -"@octokit/request@^5.4.0": - version "5.4.4" - resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.4.4.tgz#dc57e85e86284fa016d0c1a2701a70a10cec4ff2" - integrity sha512-vqv1lz41c6VTxUvF9nM+a6U+vvP3vGk7drDpr0DVQg4zyqlOiKVrY17DLD6de5okj+YLHKcoqaUZTBtlNZ1BtQ== +"@octokit/request@^5.3.0", "@octokit/request@^5.4.0": + version "5.4.5" + resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.4.5.tgz#8df65bd812047521f7e9db6ff118c06ba84ac10b" + integrity sha512-atAs5GAGbZedvJXXdjtKljin+e2SltEs48B3naJjqWupYl2IUBbB/CJisyjbNHcKpHzb3E+OYEZ46G8eakXgQg== dependencies: "@octokit/endpoint" "^6.0.1" "@octokit/request-error" "^2.0.0" - "@octokit/types" "^4.0.1" + "@octokit/types" "^5.0.0" deprecation "^2.0.0" is-plain-object "^3.0.0" node-fetch "^2.3.0" once "^1.4.0" universal-user-agent "^5.0.0" -"@octokit/types@^2.0.0", "@octokit/types@^2.11.1": - version "2.14.0" - resolved "https://registry.yarnpkg.com/@octokit/types/-/types-2.14.0.tgz#f5afa004c37193afab66b407b7785a8d7c4f102a" - integrity sha512-1w2wxpN45rEXPDFeB7rGain7wcJ/aTRg8bdILITVnS0O7a4zEGELa3JmIe+jeLdekQjvZRbVfNPqS+mi5fKCKQ== - dependencies: - "@types/node" ">= 8" - -"@octokit/types@^4.0.1": - version "4.1.6" - resolved "https://registry.yarnpkg.com/@octokit/types/-/types-4.1.6.tgz#03d3f277dee73086940578c2518c2ed700ac07a0" - integrity sha512-/gN/VeZirpFb0GIpbDF6SgtfDp9EQ+ymqPf595wjRkEoRgkrCnJGctGAd8MrynStBvYRmMWF1P64qzZFzhW7Vg== - dependencies: - "@types/node" ">= 8" - -"@octokit/types@^5.0.0": +"@octokit/types@^5.0.0", "@octokit/types@^5.0.1": version "5.0.1" resolved "https://registry.yarnpkg.com/@octokit/types/-/types-5.0.1.tgz#5459e9a5e9df8565dcc62c17a34491904d71971e" integrity sha512-GorvORVwp244fGKEt3cgt/P+M0MGy4xEDbckw+K5ojEezxyMDgCaYPKVct+/eWQfZXOT7uq0xRpmrl/+hliabA== @@ -147,9 +119,9 @@ "@types/node" ">= 8" "@types/node@>= 8": - version "13.13.5" - resolved "https://registry.yarnpkg.com/@types/node/-/node-13.13.5.tgz#96ec3b0afafd64a4ccea9107b75bf8489f0e5765" - integrity sha512-3ySmiBYJPqgjiHA7oEaIo2Rzz0HrOZ7yrNO5HWyaE5q0lQ3BppDZ3N53Miz8bw2I7gh1/zir2MGVZBvpb1zq9g== + version "14.0.22" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.0.22.tgz#23ea4d88189cec7d58f9e6b66f786b215eb61bdc" + integrity sha512-emeGcJvdiZ4Z3ohbmw93E/64jRzUHAItSHt8nF7M4TGgQTiWqFVGB8KNpLGFmUHmHLvjvBgFwVlqNcq+VuGv9g== "@zeit/ncc@^0.22.3": version "0.22.3" @@ -205,11 +177,9 @@ get-stream@^4.0.0: pump "^3.0.0" is-plain-object@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-3.0.0.tgz#47bfc5da1b5d50d64110806c199359482e75a928" - integrity sha512-tZIpofR+P05k8Aocp7UI/2UTa9lTJSebCXpFFoR9aibpokDj/uXBsJ8luUu0tTVYKkMU6URDUuOfJZ7koewXvg== - dependencies: - isobject "^4.0.0" + version "3.0.1" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-3.0.1.tgz#662d92d24c0aa4302407b0d45d21f2251c85f85b" + integrity sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g== is-stream@^1.1.0: version "1.1.0" @@ -221,15 +191,10 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= -isobject@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-4.0.0.tgz#3f1c9155e73b192022a80819bacd0343711697b0" - integrity sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA== - macos-release@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/macos-release/-/macos-release-2.3.0.tgz#eb1930b036c0800adebccd5f17bc4c12de8bb71f" - integrity sha512-OHhSbtcviqMPt7yfw5ef5aghS2jzFVKEFyCJndQt2YpSQ9qRVSEv2axSJI1paVThEu+FFGs584h/1YhxjVqajA== + version "2.4.0" + resolved "https://registry.yarnpkg.com/macos-release/-/macos-release-2.4.0.tgz#837b39fc01785c3584f103c5599e0f0c8068b49e" + integrity sha512-ko6deozZYiAkqa/0gmcsz+p4jSy3gY7/ZsCEokPaYd8k+6/aXGkiTgr61+Owup7Sf+xjqW8u2ElhoM9SEcEfuA== nice-try@^1.0.4: version "1.0.5" @@ -313,13 +278,6 @@ tunnel@0.0.6: resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c" integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg== -universal-user-agent@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-4.0.1.tgz#fd8d6cb773a679a709e967ef8288a31fcc03e557" - integrity sha512-LnST3ebHwVL2aNe4mejI9IQh2HfZ1RLo8Io2HugSif8ekzD1TlWpHpColOB/eh8JHMLkGH3Akqf040I+4ylNxg== - dependencies: - os-name "^3.1.0" - universal-user-agent@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-5.0.0.tgz#a3182aa758069bf0e79952570ca757de3579c1d9" @@ -335,9 +293,9 @@ which@^1.2.9: isexe "^2.0.0" windows-release@^3.1.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/windows-release/-/windows-release-3.3.0.tgz#dce167e9f8be733f21c849ebd4d03fe66b29b9f0" - integrity sha512-2HetyTg1Y+R+rUgrKeUEhAG/ZuOmTrI1NBb3ZyAGQMYmOJjBBPe4MTodghRkmLJZHwkuPi02anbeGP+Zf401LQ== + version "3.3.1" + resolved "https://registry.yarnpkg.com/windows-release/-/windows-release-3.3.1.tgz#cb4e80385f8550f709727287bf71035e209c4ace" + integrity sha512-Pngk/RDCaI/DkuHPlGTdIkDiTAnAkyMjoQMZqRsxydNl1qGXNIoZrB7RK8g53F2tEgQBMqQJHQdYZuQEEAu54A== dependencies: execa "^1.0.0" From d5ce47f3563206a0cc4aa24701ed4563e7305561 Mon Sep 17 00:00:00 2001 From: Tiago Souza Date: Fri, 10 Jul 2020 14:29:06 -0300 Subject: [PATCH 22/22] build: Update build file to 2.0.0 code --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index e24c91c..f3d21bf 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var i=r[t]={i:t,l:false,exports:{}};e[t].call(i.exports,i,i.exports,__webpack_require__);i.l=true;return i.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(676)}return startup()}({0:function(e,t,r){const{requestLog:i}=r(916);const{restEndpointMethods:n}=r(842);const s=r(529);const o=[r(190),r(19),i,r(148),n,r(430),r(850)];const a=s.plugin(o);function DeprecatedOctokit(e){const t=e&&e.log&&e.log.warn?e.log.warn:console.warn;t('[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead');return new a(e)}const u=Object.assign(DeprecatedOctokit,{Octokit:a});Object.keys(a).forEach(e=>{if(a.hasOwnProperty(e)){u[e]=a[e]}});e.exports=u},1:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const n=r(129);const s=r(622);const o=r(669);const a=r(672);const u=o.promisify(n.exec);function cp(e,t,r={}){return i(this,void 0,void 0,function*(){const{force:i,recursive:n}=readCopyOptions(r);const o=(yield a.exists(t))?yield a.stat(t):null;if(o&&o.isFile()&&!i){return}const u=o&&o.isDirectory()?s.join(t,s.basename(e)):t;if(!(yield a.exists(e))){throw new Error(`no such file or directory: ${e}`)}const p=yield a.stat(e);if(p.isDirectory()){if(!n){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,u,0,i)}}else{if(s.relative(e,u)===""){throw new Error(`'${u}' and '${e}' are the same file`)}yield copyFile(e,u,i)}})}t.cp=cp;function mv(e,t,r={}){return i(this,void 0,void 0,function*(){if(yield a.exists(t)){let i=true;if(yield a.isDirectory(t)){t=s.join(t,s.basename(e));i=yield a.exists(t)}if(i){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(s.dirname(t));yield a.rename(e,t)})}t.mv=mv;function rmRF(e){return i(this,void 0,void 0,function*(){if(a.IS_WINDOWS){try{if(yield a.isDirectory(e,true)){yield u(`rd /s /q "${e}"`)}else{yield u(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield a.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield a.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield u(`rm -rf "${e}"`)}else{yield a.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return i(this,void 0,void 0,function*(){yield a.mkdirP(e)})}t.mkdirP=mkdirP;function which(e,t){return i(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(a.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}}try{const t=[];if(a.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(s.delimiter)){if(e){t.push(e)}}}if(a.isRooted(e)){const r=yield a.tryGetExecutablePath(e,t);if(r){return r}return""}if(e.includes("/")||a.IS_WINDOWS&&e.includes("\\")){return""}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(s.delimiter)){if(e){r.push(e)}}}for(const i of r){const r=yield a.tryGetExecutablePath(i+s.sep+e,t);if(r){return r}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}t.which=which;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);return{force:t,recursive:r}}function cpDirRecursive(e,t,r,n){return i(this,void 0,void 0,function*(){if(r>=255)return;r++;yield mkdirP(t);const i=yield a.readdir(e);for(const s of i){const i=`${e}/${s}`;const o=`${t}/${s}`;const u=yield a.lstat(i);if(u.isDirectory()){yield cpDirRecursive(i,o,r,n)}else{yield copyFile(i,o,n)}}yield a.chmod(t,(yield a.stat(e)).mode)})}function copyFile(e,t,r){return i(this,void 0,void 0,function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t);yield a.unlink(t)}catch(e){if(e.code==="EPERM"){yield a.chmod(t,"0666");yield a.unlink(t)}}const r=yield a.readlink(e);yield a.symlink(r,t,a.IS_WINDOWS?"junction":null)}else if(!(yield a.exists(t))||r){yield a.copyFile(e,t)}})}},2:function(e,t,r){"use strict";const i=r(87);const n=r(118);const s=r(49);const o=(e,t)=>{if(!e&&t){throw new Error("You can't specify a `release` without specifying `platform`")}e=e||i.platform();let r;if(e==="darwin"){if(!t&&i.platform()==="darwin"){t=i.release()}const e=t?Number(t.split(".")[0])>15?"macOS":"OS X":"macOS";r=t?n(t).name:"";return e+(r?" "+r:"")}if(e==="linux"){if(!t&&i.platform()==="linux"){t=i.release()}r=t?t.replace(/^(\d+\.\d+).*/,"$1"):"";return"Linux"+(r?" "+r:"")}if(e==="win32"){if(!t&&i.platform()==="win32"){t=i.release()}r=t?s(t):"";return"Windows"+(r?" "+r:"")}return e};e.exports=o},3:function(e,t,r){var i=r(969);var n=function(){};var s=function(e){return e.setHeader&&typeof e.abort==="function"};var o=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var a=function(e,t,r){if(typeof t==="function")return a(e,null,t);if(!t)t={};r=i(r||n);var u=e._writableState;var p=e._readableState;var c=t.readable||t.readable!==false&&e.readable;var d=t.writable||t.writable!==false&&e.writable;var l=false;var g=function(){if(!e.writable)m()};var m=function(){d=false;if(!c)r.call(e)};var h=function(){c=false;if(!d)r.call(e)};var y=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var f=function(t){r.call(e,t)};var b=function(){process.nextTick(_)};var _=function(){if(l)return;if(c&&!(p&&(p.ended&&!p.destroyed)))return r.call(e,new Error("premature close"));if(d&&!(u&&(u.ended&&!u.destroyed)))return r.call(e,new Error("premature close"))};var q=function(){e.req.on("finish",m)};if(s(e)){e.on("complete",m);e.on("abort",b);if(e.req)q();else e.on("request",q)}else if(d&&!u){e.on("end",g);e.on("close",g)}if(o(e))e.on("exit",y);e.on("end",h);e.on("finish",m);if(t.error!==false)e.on("error",f);e.on("close",b);return function(){l=true;e.removeListener("complete",m);e.removeListener("abort",b);e.removeListener("request",q);if(e.req)e.req.removeListener("finish",m);e.removeListener("end",g);e.removeListener("close",g);e.removeListener("finish",m);e.removeListener("exit",y);e.removeListener("end",h);e.removeListener("error",f);e.removeListener("close",b)}};e.exports=a},9:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())})};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(87));const o=n(r(614));const a=n(r(129));const u=n(r(622));const p=n(r(1));const c=n(r(672));const d=process.platform==="win32";class ToolRunner extends o.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const i=this._getSpawnArgs(e);let n=t?"":"[command]";if(d){if(this._isCmdFile()){n+=r;for(const e of i){n+=` ${e}`}}else if(e.windowsVerbatimArguments){n+=`"${r}"`;for(const e of i){n+=` ${e}`}}else{n+=this._windowsQuoteCmdArg(r);for(const e of i){n+=` ${this._windowsQuoteCmdArg(e)}`}}}else{n+=r;for(const e of i){n+=` ${e}`}}return n}_processLineBuffer(e,t,r){try{let i=t+e.toString();let n=i.indexOf(s.EOL);while(n>-1){const e=i.substring(0,n);r(e);i=i.substring(n+s.EOL.length);n=i.indexOf(s.EOL)}t=i}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(d){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(d){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const i of e){if(t.some(e=>e===i)){r=true;break}}if(!r){return e}let i='"';let n=true;for(let t=e.length;t>0;t--){i+=e[t-1];if(n&&e[t-1]==="\\"){i+="\\"}else if(e[t-1]==='"'){n=true;i+='"'}else{n=false}}i+='"';return i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let i=e.length;i>0;i--){t+=e[i-1];if(r&&e[i-1]==="\\"){t+="\\"}else if(e[i-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return i(this,void 0,void 0,function*(){if(!c.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))){this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield p.which(this.toolPath,true);return new Promise((e,t)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+s.EOL)}const i=new ExecState(r,this.toolPath);i.on("debug",e=>{this._debug(e)});const n=this._getSpawnFileName();const o=a.spawn(n,this._getSpawnArgs(r),this._getSpawnOptions(this.options,n));const u="";if(o.stdout){o.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}this._processLineBuffer(e,u,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const p="";if(o.stderr){o.stderr.on("data",e=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}this._processLineBuffer(e,p,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}o.on("error",e=>{i.processError=e.message;i.processExited=true;i.processClosed=true;i.CheckComplete()});o.on("exit",e=>{i.processExitCode=e;i.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);i.CheckComplete()});o.on("close",e=>{i.processExitCode=e;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()});i.on("done",(r,i)=>{if(u.length>0){this.emit("stdline",u)}if(p.length>0){this.emit("errline",p)}o.removeAllListeners();if(r){t(r)}else{e(i)}});if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}})})}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let i=false;let n="";function append(e){if(i&&e!=='"'){n+="\\"}n+=e;i=false}for(let s=0;s0){t.push(n);n=""}continue}append(o)}if(n.length>0){t.push(n.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends o.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},11:function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;re.warn(t));const o=r(674);const a=r(471);const u=r(349);function authenticationPlugin(e,t){if(t.auth){e.authenticate=(()=>{s(e.log,new i('[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'))});return}const r={octokit:e,auth:false};e.authenticate=o.bind(null,r);e.hook.before("request",a.bind(null,r));e.hook.error("request",u.bind(null,r))}},20:function(e,t,r){"use strict";const i=r(129);const n=r(568);const s=r(881);function spawn(e,t,r){const o=n(e,t,r);const a=i.spawn(o.command,o.args,o.options);s.hookChildProcess(a,o);return a}function spawnSync(e,t,r){const o=n(e,t,r);const a=i.spawnSync(o.command,o.args,o.options);a.error=a.error||s.verifyENOENTSync(a.status,o);return a}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=n;e.exports._enoent=s},39:function(e){"use strict";e.exports=(e=>{e=e||{};const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).find(e=>e.toUpperCase()==="PATH")||"Path"})},47:function(e,t,r){e.exports=factory;const i=r(402);const n=r(855);function factory(e){const t=i.bind(null,e||[]);t.plugin=n.bind(null,e||[]);return t}},49:function(e,t,r){"use strict";const i=r(87);const n=r(955);const s=new Map([["10.0","10"],["6.3","8.1"],["6.2","8"],["6.1","7"],["6.0","Vista"],["5.2","Server 2003"],["5.1","XP"],["5.0","2000"],["4.9","ME"],["4.1","98"],["4.0","95"]]);const o=e=>{const t=/\d+\.\d/.exec(e||i.release());if(e&&!t){throw new Error("`release` argument doesn't match `n.n`")}const r=(t||[])[0];if((!e||e===i.release())&&["6.1","6.2","6.3","10.0"].includes(r)){let e;try{e=n.sync("powershell",["(Get-CimInstance -ClassName Win32_OperatingSystem).caption"]).stdout||""}catch(t){e=n.sync("wmic",["os","get","Caption"]).stdout||""}const t=(e.match(/2008|2012|2016|2019/)||[])[0];if(t){return`Server ${t}`}}return s.get(r)};e.exports=o},87:function(e){e.exports=require("os")},118:function(e,t,r){"use strict";const i=r(87);const n=new Map([[19,"Catalina"],[18,"Mojave"],[17,"High Sierra"],[16,"Sierra"],[15,"El Capitan"],[14,"Yosemite"],[13,"Mavericks"],[12,"Mountain Lion"],[11,"Lion"],[10,"Snow Leopard"],[9,"Leopard"],[8,"Tiger"],[7,"Panther"],[6,"Jaguar"],[5,"Puma"]]);const s=e=>{e=Number((e||i.release()).split(".")[0]);return{name:n.get(e),version:"10."+(e-4)}};e.exports=s;e.exports.default=s},126:function(e){var t=200;var r="__lodash_hash_undefined__";var i=1/0;var n="[object Function]",s="[object GeneratorFunction]";var o=/[\\^$.*+?()[\]{}|]/g;var a=/^\[object .+?Constructor\]$/;var u=typeof global=="object"&&global&&global.Object===Object&&global;var p=typeof self=="object"&&self&&self.Object===Object&&self;var c=u||p||Function("return this")();function arrayIncludes(e,t){var r=e?e.length:0;return!!r&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){var i=-1,n=e?e.length:0;while(++i-1}function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);if(i<0){r.push([e,t])}else{r[i][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t=t){var c=r?null:T(e);if(c){return setToArray(c)}a=false;s=cacheHas;p=new SetCache}else{p=r?[]:u}e:while(++n=this.maxSockets){n.requests.push(s);return}n.createSocket(s,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){n.emit("free",t,s)}function onCloseOrRemove(e){n.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var i={};r.sockets.push(i);var n=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){n.localAddress=e.localAddress}if(n.proxyAuth){n.headers=n.headers||{};n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")}c("making CONNECT request");var s=r.request(n);s.useChunkedEncodingByDefault=false;s.once("response",onResponse);s.once("upgrade",onUpgrade);s.once("connect",onConnect);s.once("error",onError);s.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(n,o,a){s.removeAllListeners();o.removeAllListeners();if(n.statusCode!==200){c("tunneling socket could not be established, statusCode=%d",n.statusCode);o.destroy();var u=new Error("tunneling socket could not be established, "+"statusCode="+n.statusCode);u.code="ECONNRESET";e.request.emit("error",u);r.removeSocket(i);return}if(a.length>0){c("got illegal response body from proxy");o.destroy();var u=new Error("got illegal response body from proxy");u.code="ECONNRESET";e.request.emit("error",u);r.removeSocket(i);return}c("tunneling connection has established");r.sockets[r.sockets.indexOf(i)]=o;return t(o)}function onError(t){s.removeAllListeners();c("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var n=new Error("tunneling socket could not be established, "+"cause="+t.message);n.code="ECONNRESET";e.request.emit("error",n);r.removeSocket(i)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,function(e){r.request.onSocket(e)})}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(i){var s=e.request.getHeader("host");var o=mergeOptions({},r.options,{socket:i,servername:s?s.replace(/:.*$/,""):e.host});var a=n.connect(0,o);r.sockets[r.sockets.indexOf(i)]=a;t(a)})}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{const u=e=>{if(e){e.bufferedData=s.getBufferedValue()}a(e)};s=i(e,n(t),e=>{if(e){u(e);return}o()});s.on("data",()=>{if(s.getBufferedLength()>r){u(new MaxBufferError)}})}).then(()=>s.getBufferedValue())}e.exports=getStream;e.exports.buffer=((e,t)=>getStream(e,Object.assign({},t,{encoding:"buffer"})));e.exports.array=((e,t)=>getStream(e,Object.assign({},t,{array:true})));e.exports.MaxBufferError=MaxBufferError},148:function(e,t,r){e.exports=paginatePlugin;const{paginateRest:i}=r(299);function paginatePlugin(e){Object.assign(e,i(e))}},157:function(e){let t="";const r=`\n`;let i=[];const n="changes";const s={"feat:":"feat","fix:":"fix","docs:":"docs"};const o=e=>{const t=e.split(" ")[0].indexOf(":");if(t<0){return{prefix:"",message:e}}const{prefix:r,scope:i}=a(e.substr(0,t+1));const n=e.substr(t+2);return{prefix:r,message:n,scope:i}};const a=e=>{let t="";if(!e){return{scope:t,prefix:n}}const r=e.indexOf("(");if(r>-1){const r=e.indexOf(")");if(r>-1){let r=e.split("(");if(r[1]){let e=r[1].split(")")[0];if(e){t=e}}e=`${r[0]}:`}}return{scope:t,prefix:e}};const u=e=>{const t=s[e]||n;if(t){return t}return n};const p=e=>`${t}/commits/${e}`;const c=e=>{const t=e.substr(0,40);const{prefix:r,scope:s,message:a}=o(e.substr(41));if(!r&&!a){return}const c=`([${t.substr(0,7)}](${p(t)}))`;const d=u(r);if(!i[d]){i[d]=[]}const l=r?`**${r}** `:"";const g=d===n?l:"";i[d].push({scope:s||"no-scope",message:`- ${g}${a} ${c}`})};const d=e=>{const t=i[e];const n={"no-scope":[]};t.forEach(({scope:e,message:t})=>{if(!n[e]){n[e]=[]}n[e].push(t)});const s=Object.keys(n).map(e=>{const t=n[e].join(r);if(e==="no-scope"){return`${r}${t}`}else{return`### - ${e}${r}${t}`}});return s.join(r)};e.exports=function MakeTemplate(e,s=""){t=s;e.split("\n").forEach(c);let o="";const a=()=>{if(o){o+=r;o+=r}};const u=()=>{if(o){o+=`${r}---${r}`}};if(i["feat"]){u();a();o+=`## โœจ Features${r}`;o+=d("feat")}if(i["fix"]){u();a();o+=`## ๐Ÿž Fixes${r}`;o+=d("fix")}if(i[n]){u();a();o+=`## ๐Ÿ“‹ Changes${r}`;o+=d(n)}return o}},168:function(e){"use strict";const t=["stdin","stdout","stderr"];const r=e=>t.some(t=>Boolean(e[t]));e.exports=(e=>{if(!e){return null}if(e.stdio&&r(e)){throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(e=>`\`${e}\``).join(", ")}`)}if(typeof e.stdio==="string"){return e.stdio}const i=e.stdio||[];if(!Array.isArray(i)){throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof i}\``)}const n=[];const s=Math.max(i.length,t.length);for(let r=0;re.warn(t));const d=s((e,t)=>e.warn(t));function authenticationPlugin(e,t){if(t.authStrategy){const r=t.authStrategy(t.auth);e.hook.wrap("request",r.hook);e.auth=r;return}if(!t.auth){e.auth=(()=>Promise.resolve({type:"unauthenticated"}));return}const r=typeof t.auth==="string"&&/^basic/.test(p(t.auth));if(typeof t.auth==="string"&&!r){const r=i(t.auth);e.hook.wrap("request",r.hook);e.auth=r;return}const[s,l]=r?[c,'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)']:[d,'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)'];s(e.log,new n("[@octokit/rest] "+l));e.auth=(()=>Promise.resolve({type:"deprecated",message:l}));u(t.auth);const g={octokit:e,auth:t.auth};e.hook.before("request",o.bind(null,g));e.hook.error("request",a.bind(null,g))}},197:function(e,t,r){e.exports=isexe;isexe.sync=sync;var i=r(747);function isexe(e,t,r){i.stat(e,function(e,i){r(e,e?false:checkStat(i,t))})}function sync(e,t){return checkStat(i.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var r=e.mode;var i=e.uid;var n=e.gid;var s=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var o=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var u=parseInt("010",8);var p=parseInt("001",8);var c=a|u;var d=r&p||r&u&&n===o||r&a&&i===s||r&c&&s===0;return d}},211:function(e){e.exports=require("https")},215:function(e){e.exports={name:"@octokit/rest",version:"16.43.1",publishConfig:{access:"public"},description:"GitHub REST API client for Node.js",keywords:["octokit","github","rest","api-client"],author:"Gregor Martynus (https://github.com/gr2m)",contributors:[{name:"Mike de Boer",email:"info@mikedeboer.nl"},{name:"Fabian Jakobs",email:"fabian@c9.io"},{name:"Joe Gallo",email:"joe@brassafrax.com"},{name:"Gregor Martynus",url:"https://github.com/gr2m"}],repository:"https://github.com/octokit/rest.js",dependencies:{"@octokit/auth-token":"^2.4.0","@octokit/plugin-paginate-rest":"^1.1.1","@octokit/plugin-request-log":"^1.0.0","@octokit/plugin-rest-endpoint-methods":"2.4.0","@octokit/request":"^5.2.0","@octokit/request-error":"^1.0.2","atob-lite":"^2.0.0","before-after-hook":"^2.0.0","btoa-lite":"^1.0.0",deprecation:"^2.0.0","lodash.get":"^4.4.2","lodash.set":"^4.3.2","lodash.uniq":"^4.5.0","octokit-pagination-methods":"^1.1.0",once:"^1.4.0","universal-user-agent":"^4.0.0"},devDependencies:{"@gimenete/type-writer":"^0.1.3","@octokit/auth":"^1.1.1","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^13.1.0",bundlesize:"^0.18.0",chai:"^4.1.2","compression-webpack-plugin":"^3.1.0",cypress:"^3.0.0",glob:"^7.1.2","http-proxy-agent":"^4.0.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1",lolex:"^5.1.2",mkdirp:"^1.0.0",mocha:"^7.0.1",mustache:"^4.0.0",nock:"^11.3.3","npm-run-all":"^4.1.2",nyc:"^15.0.0",prettier:"^1.14.2",proxy:"^1.0.0","semantic-release":"^17.0.0",sinon:"^8.0.0","sinon-chai":"^3.0.0","sort-keys":"^4.0.0","string-to-arraybuffer":"^1.0.0","string-to-jsdoc-comment":"^1.0.0",typescript:"^3.3.1",webpack:"^4.0.0","webpack-bundle-analyzer":"^3.0.0","webpack-cli":"^3.0.0"},types:"index.d.ts",scripts:{coverage:"nyc report --reporter=html && open coverage/index.html",lint:"prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","lint:fix":"prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json",pretest:"npm run -s lint",test:'nyc mocha test/mocha-node-setup.js "test/*/**/*-test.js"',"test:browser":"cypress run --browser chrome",build:"npm-run-all build:*","build:ts":"npm run -s update-endpoints:typescript","prebuild:browser":"mkdirp dist/","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","prevalidate:ts":"npm run -s build:ts","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","start-fixtures-server":"octokit-fixtures-server"},license:"MIT",files:["index.js","index.d.ts","lib","plugins"],nyc:{ignore:["test"]},release:{publish:["@semantic-release/npm",{path:"@semantic-release/github",assets:["dist/*","!dist/*.map.gz"]}]},bundlesize:[{path:"./dist/octokit-rest.min.js.gz",maxSize:"33 kB"}]}},257:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var i=r(692);var n=_interopDefault(r(969));const s=n(e=>console.warn(e));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;Object.defineProperty(this,"code",{get(){s(new i.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=r.headers||{};const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}t.RequestError=RequestError},260:function(e,t,r){var i=r(357);var n=r(654);var s=/^win/i.test(process.platform);var o=r(614);if(typeof o!=="function"){o=o.EventEmitter}var a;if(process.__signal_exit_emitter__){a=process.__signal_exit_emitter__}else{a=process.__signal_exit_emitter__=new o;a.count=0;a.emitted={}}if(!a.infinite){a.setMaxListeners(Infinity);a.infinite=true}e.exports=function(e,t){i.equal(typeof e,"function","a callback must be provided for exit handler");if(p===false){load()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var n=function(){a.removeListener(r,e);if(a.listeners("exit").length===0&&a.listeners("afterexit").length===0){unload()}};a.on(r,e);return n};e.exports.unload=unload;function unload(){if(!p){return}p=false;n.forEach(function(e){try{process.removeListener(e,u[e])}catch(e){}});process.emit=d;process.reallyExit=c;a.count-=1}function emit(e,t,r){if(a.emitted[e]){return}a.emitted[e]=true;a.emit(e,t,r)}var u={};n.forEach(function(e){u[e]=function listener(){var t=process.listeners(e);if(t.length===a.count){unload();emit("exit",null,e);emit("afterexit",null,e);if(s&&e==="SIGHUP"){e="SIGINT"}process.kill(process.pid,e)}}});e.exports.signals=function(){return n};e.exports.load=load;var p=false;function load(){if(p){return}p=true;a.count+=1;n=n.filter(function(e){try{process.on(e,u[e]);return true}catch(e){return false}});process.emit=processEmit;process.reallyExit=processReallyExit}var c=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);c.call(process,process.exitCode)}var d=process.emit;function processEmit(e,t){if(e==="exit"){if(t!==undefined){process.exitCode=t}var r=d.apply(this,arguments);emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);return r}else{return d.apply(this,arguments)}}},262:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=r(747);const n=r(87);class Context{constructor(){this.payload={};if(process.env.GITHUB_EVENT_PATH){if(i.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(i.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${n.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},265:function(e,t,r){e.exports=getPage;const i=r(370);const n=r(577);const s=r(297);function getPage(e,t,r,o){i(`octokit.get${r.charAt(0).toUpperCase()+r.slice(1)}Page() โ€“ You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);const a=n(t)[r];if(!a){const e=new s(`No ${r} page found`,404);return Promise.reject(e)}const u={url:a,headers:applyAcceptHeader(t,o)};const p=e.request(u);return p}function applyAcceptHeader(e,t){const r=e.headers&&e.headers["x-github-media-type"];if(!r||t&&t.accept){return t}t=t||{};t.accept="application/vnd."+r.replace("; param=",".").replace("; format=","+");return t}},280:function(e,t){t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var i=256;var n=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=t.re=[];var a=t.src=[];var u=0;var p=u++;a[p]="0|[1-9]\\d*";var c=u++;a[c]="[0-9]+";var d=u++;a[d]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=u++;a[l]="("+a[p]+")\\."+"("+a[p]+")\\."+"("+a[p]+")";var g=u++;a[g]="("+a[c]+")\\."+"("+a[c]+")\\."+"("+a[c]+")";var m=u++;a[m]="(?:"+a[p]+"|"+a[d]+")";var h=u++;a[h]="(?:"+a[c]+"|"+a[d]+")";var y=u++;a[y]="(?:-("+a[m]+"(?:\\."+a[m]+")*))";var f=u++;a[f]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var b=u++;a[b]="[0-9A-Za-z-]+";var _=u++;a[_]="(?:\\+("+a[b]+"(?:\\."+a[b]+")*))";var q=u++;var w="v?"+a[l]+a[y]+"?"+a[_]+"?";a[q]="^"+w+"$";var v="[v=\\s]*"+a[g]+a[f]+"?"+a[_]+"?";var E=u++;a[E]="^"+v+"$";var T=u++;a[T]="((?:<|>)?=?)";var k=u++;a[k]=a[c]+"|x|X|\\*";var O=u++;a[O]=a[p]+"|x|X|\\*";var j=u++;a[j]="[v=\\s]*("+a[O]+")"+"(?:\\.("+a[O]+")"+"(?:\\.("+a[O]+")"+"(?:"+a[y]+")?"+a[_]+"?"+")?)?";var S=u++;a[S]="[v=\\s]*("+a[k]+")"+"(?:\\.("+a[k]+")"+"(?:\\.("+a[k]+")"+"(?:"+a[f]+")?"+a[_]+"?"+")?)?";var C=u++;a[C]="^"+a[T]+"\\s*"+a[j]+"$";var P=u++;a[P]="^"+a[T]+"\\s*"+a[S]+"$";var x=u++;a[x]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var A=u++;a[A]="(?:~>?)";var G=u++;a[G]="(\\s*)"+a[A]+"\\s+";o[G]=new RegExp(a[G],"g");var R="$1~";var D=u++;a[D]="^"+a[A]+a[j]+"$";var L=u++;a[L]="^"+a[A]+a[S]+"$";var $=u++;a[$]="(?:\\^)";var H=u++;a[H]="(\\s*)"+a[$]+"\\s+";o[H]=new RegExp(a[H],"g");var I="$1^";var U=u++;a[U]="^"+a[$]+a[j]+"$";var F=u++;a[F]="^"+a[$]+a[S]+"$";var B=u++;a[B]="^"+a[T]+"\\s*("+v+")$|^$";var N=u++;a[N]="^"+a[T]+"\\s*("+w+")$|^$";var z=u++;a[z]="(\\s*)"+a[T]+"\\s*("+v+"|"+a[j]+")";o[z]=new RegExp(a[z],"g");var V="$1$2$3";var W=u++;a[W]="^\\s*("+a[j]+")"+"\\s+-\\s+"+"("+a[j]+")"+"\\s*$";var K=u++;a[K]="^\\s*("+a[S]+")"+"\\s+-\\s+"+"("+a[S]+")"+"\\s*$";var J=u++;a[J]="(<|>)?=?\\s*\\*";for(var X=0;Xi){return null}var r=t.loose?o[E]:o[q];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>i){throw new TypeError("version is longer than "+i+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?o[E]:o[q]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>n||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>n||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>n||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,i){if(typeof r==="string"){i=r;r=undefined}try{return new SemVer(e,r).inc(t,i).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var i=parse(t);var n="";if(r.prerelease.length||i.prerelease.length){n="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==i[o]){return n+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var Y=/^[0-9]+$/;function compareIdentifiers(e,t){var r=Y.test(e);var i=Y.test(t);if(r&&i){e=+e;t=+t}return e===t?0:r&&!i?-1:i&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,i){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,i);case"!=":return neq(e,r,i);case">":return gt(e,r,i);case">=":return gte(e,r,i);case"<":return lt(e,r,i);case"<=":return lte(e,r,i);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===Q){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var Q={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[B]:o[N];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=Q}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===Q){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var n=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var u=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return i||n||s&&o||a||u};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var i=t?o[K]:o[W];e=e.replace(i,hyphenReplace);r("hyphen replace",e);e=e.replace(o[z],V);r("comparator trim",e,o[z]);e=e.replace(o[G],R);e=e.replace(o[H],I);e=e.split(/\s+/).join(" ");var n=t?o[B]:o[N];var s=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter(function(e){return!!e.match(n)})}s=s.map(function(e){return new Comparator(e,this.options)},this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var i=t.loose?o[L]:o[D];return e.replace(i,function(t,i,n,s,o){r("tilde",e,t,i,n,s,o);var a;if(isX(i)){a=""}else if(isX(n)){a=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(s)){a=">="+i+"."+n+".0 <"+i+"."+(+n+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+i+"."+n+"."+s+"-"+o+" <"+i+"."+(+n+1)+".0"}else{a=">="+i+"."+n+"."+s+" <"+i+"."+(+n+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var i=t.loose?o[F]:o[U];return e.replace(i,function(t,i,n,s,o){r("caret",e,t,i,n,s,o);var a;if(isX(i)){a=""}else if(isX(n)){a=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(s)){if(i==="0"){a=">="+i+"."+n+".0 <"+i+"."+(+n+1)+".0"}else{a=">="+i+"."+n+".0 <"+(+i+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(i==="0"){if(n==="0"){a=">="+i+"."+n+"."+s+"-"+o+" <"+i+"."+n+"."+(+s+1)}else{a=">="+i+"."+n+"."+s+"-"+o+" <"+i+"."+(+n+1)+".0"}}else{a=">="+i+"."+n+"."+s+"-"+o+" <"+(+i+1)+".0.0"}}else{r("no pr");if(i==="0"){if(n==="0"){a=">="+i+"."+n+"."+s+" <"+i+"."+n+"."+(+s+1)}else{a=">="+i+"."+n+"."+s+" <"+i+"."+(+n+1)+".0"}}else{a=">="+i+"."+n+"."+s+" <"+(+i+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var i=t.loose?o[P]:o[C];return e.replace(i,function(t,i,n,s,o,a){r("xRange",e,t,i,n,s,o,a);var u=isX(n);var p=u||isX(s);var c=p||isX(o);var d=c;if(i==="="&&d){i=""}if(u){if(i===">"||i==="<"){t="<0.0.0"}else{t="*"}}else if(i&&d){if(p){s=0}o=0;if(i===">"){i=">=";if(p){n=+n+1;s=0;o=0}else{s=+s+1;o=0}}else if(i==="<="){i="<";if(p){n=+n+1}else{s=+s+1}}t=i+n+"."+s+"."+o}else if(p){t=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(c){t=">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0"}r("xRange return",t);return t})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[J],"")}function hyphenReplace(e,t,r,i,n,s,o,a,u,p,c,d,l){if(isX(r)){t=""}else if(isX(i)){t=">="+r+".0.0"}else if(isX(n)){t=">="+r+"."+i+".0"}else{t=">="+t}if(isX(u)){a=""}else if(isX(p)){a="<"+(+u+1)+".0.0"}else if(isX(c)){a="<"+u+"."+(+p+1)+".0"}else if(d){a="<="+u+"."+p+"."+c+"-"+d}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t0){var s=e[n].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var i=null;var n=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!i||n.compare(e)===-1){i=e;n=new SemVer(i,r)}}});return i}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var i=null;var n=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!i||n.compare(e)===1){i=e;n=new SemVer(i,r)}}});return i}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var i=0;i":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,i){e=new SemVer(e,i);t=new Range(t,i);var n,s,o,a,u;switch(r){case">":n=gt;s=lte;o=lt;a=">";u=">=";break;case"<":n=lt;s=gte;o=gt;a="<";u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,i)){return false}for(var p=0;p=0.0.0")}d=d||e;l=l||e;if(n(e.semver,d.semver,i)){d=e}else if(o(e.semver,l.semver,i)){l=e}});if(d.operator===a||d.operator===u){return false}if((!l.operator||l.operator===a)&&s(e,l.semver)){return false}else if(l.operator===u&&o(e,l.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(o[x]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},293:function(e,t,r){e.exports=authenticationRequestError;const{RequestError:i}=r(463);function authenticationRequestError(e,t,r){if(!t.headers)throw t;const n=/required/.test(t.headers["x-github-otp"]||"");if(t.status!==401||!n){throw t}if(t.status===401&&n&&t.request&&t.request.headers["x-github-otp"]){if(e.otp){delete e.otp}else{throw new i("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:r})}}if(typeof e.auth.on2fa!=="function"){throw new i("2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",401,{headers:t.headers,request:r})}return Promise.resolve().then(()=>{return e.auth.on2fa()}).then(t=>{const i=Object.assign(r,{headers:Object.assign(r.headers,{"x-github-otp":t})});return e.octokit.request(i).then(r=>{e.otp=t;return r})})}},294:function(e,t,r){e.exports=parseOptions;const{Deprecation:i}=r(692);const{getUserAgent:n}=r(796);const s=r(969);const o=r(215);const a=s((e,t)=>e.warn(t));const u=s((e,t)=>e.warn(t));const p=s((e,t)=>e.warn(t));function parseOptions(e,t,r){if(e.headers){e.headers=Object.keys(e.headers).reduce((t,r)=>{t[r.toLowerCase()]=e.headers[r];return t},{})}const s={headers:e.headers||{},request:e.request||{},mediaType:{previews:[],format:""}};if(e.baseUrl){s.baseUrl=e.baseUrl}if(e.userAgent){s.headers["user-agent"]=e.userAgent}if(e.previews){s.mediaType.previews=e.previews}if(e.timeZone){s.headers["time-zone"]=e.timeZone}if(e.timeout){a(t,new i("[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request"));s.request.timeout=e.timeout}if(e.agent){u(t,new i("[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request"));s.request.agent=e.agent}if(e.headers){p(t,new i("[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request"))}const c=s.headers["user-agent"];const d=`octokit.js/${o.version} ${n()}`;s.headers["user-agent"]=[c,d].filter(Boolean).join(" ");s.request.hook=r.bind(null,"request");return s}},297:function(e){e.exports=class HttpError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.code=t;this.headers=r}}},299:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="1.1.2";const i=[/^\/search\//,/^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/,/^\/installation\/repositories([^/]|$)/,/^\/user\/installations([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/];function normalizePaginatedListResponse(e,t,r){const n=t.replace(e.request.endpoint.DEFAULTS.baseUrl,"");const s=i.find(e=>e.test(n));if(!s)return;const o=r.data.incomplete_results;const a=r.data.repository_selection;const u=r.data.total_count;delete r.data.incomplete_results;delete r.data.repository_selection;delete r.data.total_count;const p=Object.keys(r.data)[0];const c=r.data[p];r.data=c;if(typeof o!=="undefined"){r.data.incomplete_results=o}if(typeof a!=="undefined"){r.data.repository_selection=a}r.data.total_count=u;Object.defineProperty(r.data,p,{get(){e.log.warn(`[@octokit/paginate-rest] "response.data.${p}" is deprecated for "GET ${n}". Get the results directly from "response.data"`);return Array.from(c)}})}function iterator(e,t,r){const i=e.request.endpoint(t,r);const n=i.method;const s=i.headers;let o=i.url;return{[Symbol.asyncIterator]:()=>({next(){if(!o){return Promise.resolve({done:true})}return e.request({method:n,url:o,headers:s}).then(t=>{normalizePaginatedListResponse(e,o,t);o=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}})}})}}function paginate(e,t,r,i){if(typeof r==="function"){i=r;r=undefined}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),i)}function gather(e,t,r,i){return r.next().then(n=>{if(n.done){return t}let s=false;function done(){s=true}t=t.concat(i?i(n.value,done):n.value.data);if(s){return t}return gather(e,t,r,i)})}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=r;t.paginateRest=paginateRest},323:function(e){"use strict";var t=e.exports=function(e){return e!==null&&typeof e==="object"&&typeof e.pipe==="function"};t.writable=function(e){return t(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object"};t.readable=function(e){return t(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object"};t.duplex=function(e){return t.writable(e)&&t.readable(e)};t.transform=function(e){return t.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object"}},336:function(e,t,r){e.exports=hasLastPage;const i=r(370);const n=r(577);function hasLastPage(e){i(`octokit.hasLastPage() โ€“ You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return n(e).last}},348:function(e,t,r){"use strict";e.exports=validate;const{RequestError:i}=r(463);const n=r(854);const s=r(883);function validate(e,t){if(!t.request.validate){return}const{validate:r}=t.request;Object.keys(r).forEach(e=>{const o=n(r,e);const a=o.type;let u;let p;let c=true;let d=false;if(/\./.test(e)){u=e.replace(/\.[^.]+$/,"");d=u.slice(-2)==="[]";if(d){u=u.slice(0,-2)}p=n(t,u);c=u==="headers"||typeof p==="object"&&p!==null}const l=d?(n(t,u)||[]).map(t=>t[e.split(/\./).pop()]):[n(t,e)];l.forEach((r,n)=>{const u=typeof r!=="undefined";const p=r===null;const l=d?e.replace(/\[\]/,`[${n}]`):e;if(!o.required&&!u){return}if(!c){return}if(o.allowNull&&p){return}if(!o.allowNull&&p){throw new i(`'${l}' cannot be null`,400,{request:t})}if(o.required&&!u){throw new i(`Empty value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}if(a==="integer"){const e=r;r=parseInt(r,10);if(isNaN(r)){throw new i(`Invalid value for parameter '${l}': ${JSON.stringify(e)} is NaN`,400,{request:t})}}if(o.enum&&o.enum.indexOf(String(r))===-1){throw new i(`Invalid value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}if(o.validation){const e=new RegExp(o.validation);if(!e.test(r)){throw new i(`Invalid value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}}if(a==="object"&&typeof r==="string"){try{r=JSON.parse(r)}catch(e){throw new i(`JSON parse error of value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}}s(t,o.mapTo||l,r)})});return t}},349:function(e,t,r){e.exports=authenticationRequestError;const{RequestError:i}=r(463);function authenticationRequestError(e,t,r){if(!t.headers)throw t;const n=/required/.test(t.headers["x-github-otp"]||"");if(t.status!==401||!n){throw t}if(t.status===401&&n&&t.request&&t.request.headers["x-github-otp"]){throw new i("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:r})}if(typeof e.auth.on2fa!=="function"){throw new i("2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",401,{headers:t.headers,request:r})}return Promise.resolve().then(()=>{return e.auth.on2fa()}).then(t=>{const i=Object.assign(r,{headers:Object.assign({"x-github-otp":t},r.headers)});return e.octokit.request(i)})}},357:function(e){e.exports=require("assert")},363:function(e){e.exports=register;function register(e,t,r,i){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!i){i={}}if(Array.isArray(t)){return t.reverse().reduce(function(t,r){return register.bind(null,e,r,t,i)},r)()}return Promise.resolve().then(function(){if(!e.registry[t]){return r(i)}return e.registry[t].reduce(function(e,t){return t.hook.bind(null,e,i)},r)()})}},368:function(e){e.exports=function atob(e){return Buffer.from(e,"base64").toString("binary")}},370:function(e){e.exports=deprecate;const t={};function deprecate(e){if(t[e]){return}console.warn(`DEPRECATED (@octokit/rest): ${e}`);t[e]=1}},385:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var i=_interopDefault(r(696));var n=r(562);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce((t,r)=>{t[r.toLowerCase()]=e[r];return t},{})}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach(n=>{if(i(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}});return r}function merge(e,t,r){if(typeof t==="string"){let[e,i]=t.split(" ");r=Object.assign(i?{method:e,url:i}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);const i=mergeDeep(e||{},r);if(e&&e.mediaType.previews.length){i.mediaType.previews=e.mediaType.previews.filter(e=>!i.mediaType.previews.includes(e)).concat(i.mediaType.previews)}i.mediaType.previews=i.mediaType.previews.map(e=>e.replace(/-preview/,""));return i}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const i=Object.keys(t);if(i.length===0){return e}return e+r+i.map(e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`}).join("&")}const s=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(s);if(!t){return[]}return t.map(removeNonChars).reduce((e,t)=>e.concat(t),[])}function omit(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>{t[r]=e[r];return t},{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e}).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,i){var n=e[r],s=[];if(isDefined(n)&&n!==""){if(typeof n==="string"||typeof n==="number"||typeof n==="boolean"){n=n.toString();if(i&&i!=="*"){n=n.substring(0,parseInt(i,10))}s.push(encodeValue(t,n,isKeyOperator(t)?r:""))}else{if(i==="*"){if(Array.isArray(n)){n.filter(isDefined).forEach(function(e){s.push(encodeValue(t,e,isKeyOperator(t)?r:""))})}else{Object.keys(n).forEach(function(e){if(isDefined(n[e])){s.push(encodeValue(t,n[e],e))}})}}else{const e=[];if(Array.isArray(n)){n.filter(isDefined).forEach(function(r){e.push(encodeValue(t,r))})}else{Object.keys(n).forEach(function(r){if(isDefined(n[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,n[r].toString()))}})}if(isKeyOperator(t)){s.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){s.push(e.join(","))}}}}else{if(t===";"){if(isDefined(n)){s.push(encodeUnreserved(r))}}else if(n===""&&(t==="&"||t==="?")){s.push(encodeUnreserved(r)+"=")}else if(n===""){s.push("")}}return s}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,i,n){if(i){let e="";const n=[];if(r.indexOf(i.charAt(0))!==-1){e=i.charAt(0);i=i.substr(1)}i.split(/,/g).forEach(function(r){var i=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(getValues(t,e,i[1],i[2]||i[3]))});if(e&&e!=="+"){var s=",";if(e==="?"){s="&"}else if(e!=="#"){s=e}return(n.length!==0?e:"")+n.join(s)}else{return n.join(",")}}else{return encodeReserved(n)}})}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{+$1}");let i=Object.assign({},e.headers);let n;let s=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const o=extractUrlVariableNames(r);r=parseUrl(r).expand(s);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter(e=>o.includes(e)).concat("baseUrl");const u=omit(s,a);const p=/application\/octet-stream/i.test(i.accept);if(!p){if(e.mediaType.format){i.accept=i.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")}if(e.mediaType.previews.length){const t=i.accept.match(/[\w-]+(?=-preview)/g)||[];i.accept=t.concat(e.mediaType.previews).map(t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`}).join(",")}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,u)}else{if("data"in u){n=u.data}else{if(Object.keys(u).length){n=u}else{i["content-length"]=0}}}if(!i["content-type"]&&typeof n!=="undefined"){i["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof n==="undefined"){n=""}return Object.assign({method:t,url:r,headers:i},typeof n!=="undefined"?{body:n}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const i=endpointWithDefaults.bind(null,r);return Object.assign(i,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}const o="6.0.1";const a=`octokit-endpoint.js/${o} ${n.getUserAgent()}`;const u={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":a},mediaType:{format:"",previews:[]}};const p=withDefaults(null,u);t.endpoint=p},389:function(e,t,r){"use strict";const i=r(747);const n=r(866);function readShebang(e){const t=150;let r;if(Buffer.alloc){r=Buffer.alloc(t)}else{r=new Buffer(t);r.fill(0)}let s;try{s=i.openSync(e,"r");i.readSync(s,r,0,t,0);i.closeSync(s)}catch(e){}return n(r.toString())}e.exports=readShebang},392:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var i=_interopDefault(r(2));function getUserAgent(){try{return`Node.js/${process.version.substr(1)} (${i()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}return""}}t.getUserAgent=getUserAgent},402:function(e,t,r){e.exports=Octokit;const{request:i}=r(753);const n=r(523);const s=r(294);function Octokit(e,t){t=t||{};const r=new n.Collection;const o=Object.assign({debug:()=>{},info:()=>{},warn:console.warn,error:console.error},t&&t.log);const a={hook:r,log:o,request:i.defaults(s(t,o,r))};e.forEach(e=>e(a,t));return a}},413:function(e){e.exports=require("stream")},427:function(e,t,r){"use strict";const i=r(669);let n;if(typeof i.getSystemErrorName==="function"){e.exports=i.getSystemErrorName}else{try{n=process.binding("uv");if(typeof n.errname!=="function"){throw new TypeError("uv.errname is not a function")}}catch(e){console.error("execa/lib/errname: unable to establish process.binding('uv')",e);n=null}e.exports=(e=>errname(n,e))}e.exports.__test__=errname;function errname(e,t){if(e){return e.errname(t)}if(!(t<0)){throw new Error("err >= 0")}return`Unknown system error ${t}`}},430:function(e,t,r){e.exports=octokitValidate;const i=r(348);function octokitValidate(e){e.hook.before("request",i.bind(null,e))}},431:function(e,t,r){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=i(r(87));function issueCommand(e,t,r){const i=new Command(e,t,r);process.stdout.write(i.toString()+n.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const s="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=s+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const i=this.properties[r];if(i){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(i)}`}}}}e+=`${s}${escapeData(this.message)}`;return e}}function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function escapeData(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},453:function(e,t,r){var i=r(969);var n=r(3);var s=r(747);var o=function(){};var a=/^v?\.0/.test(process.version);var u=function(e){return typeof e==="function"};var p=function(e){if(!a)return false;if(!s)return false;return(e instanceof(s.ReadStream||o)||e instanceof(s.WriteStream||o))&&u(e.close)};var c=function(e){return e.setHeader&&u(e.abort)};var d=function(e,t,r,s){s=i(s);var a=false;e.on("close",function(){a=true});n(e,{readable:t,writable:r},function(e){if(e)return s(e);a=true;s()});var d=false;return function(t){if(a)return;if(d)return;d=true;if(p(e))return e.close(o);if(c(e))return e.abort();if(u(e.destroy))return e.destroy();s(t||new Error("stream was destroyed"))}};var l=function(e){e()};var g=function(e,t){return e.pipe(t)};var m=function(){var e=Array.prototype.slice.call(arguments);var t=u(e[e.length-1]||o)&&e.pop()||o;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var i=e.map(function(n,s){var o=s0;return d(n,o,a,function(e){if(!r)r=e;if(e)i.forEach(l);if(o)return;i.forEach(l);t(r)})});return e.reduce(g)};e.exports=m},454:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var i=_interopDefault(r(413));var n=_interopDefault(r(605));var s=_interopDefault(r(835));var o=_interopDefault(r(211));var a=_interopDefault(r(761));const u=i.Readable;const p=Symbol("buffer");const c=Symbol("type");class Blob{constructor(){this[c]="";const e=arguments[0];const t=arguments[1];const r=[];let i=0;if(e){const t=e;const n=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},n=r.size;let s=n===undefined?0:n;var o=r.timeout;let a=o===undefined?0:o;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e)) ;else if(Buffer.isBuffer(e)) ;else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof i) ;else{e=Buffer.from(String(e))}this[l]={body:e,disturbed:false,error:null};this.size=s;this.timeout=a;if(e instanceof i){e.on("error",function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[l].error=r})}}Body.prototype={get body(){return this[l].body},get bodyUsed(){return this[l].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[p]:t})})},json(){var e=this;return consumeBody.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(e){return e.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then(function(t){return convertBody(t,e.headers)})}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[l].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[l].disturbed=true;if(this[l].error){return Body.Promise.reject(this[l].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof i)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let n=0;let s=false;return new Body.Promise(function(i,o){let a;if(e.timeout){a=setTimeout(function(){s=true;o(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)}t.on("error",function(t){if(t.name==="AbortError"){s=true;o(t)}else{o(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}});t.on("data",function(t){if(s||t===null){return}if(e.size&&n+t.length>e.size){s=true;o(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}n+=t.length;r.push(t)});t.on("end",function(){if(s){return}clearTimeout(a);try{i(Buffer.concat(r,n))}catch(t){o(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}})})}function convertBody(e,t){if(typeof d!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let i="utf-8";let n,s;if(r){n=/charset=([^;]*)/i.exec(r)}s=e.slice(0,1024).toString();if(!n&&s){n=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[y]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null) ;else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[y],e);if(t===undefined){return null}return this[y][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let i=0;while(i1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[y]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[y][t].join(", ")}:function(t){return[t.toLowerCase(),e[y][t].join(", ")]})}const f=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(b);r[f]={target:e,kind:t,index:0};return r}const b=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==b){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[f];const t=e.target,r=e.kind,i=e.index;const n=getHeaders(t,r);const s=n.length;if(i>=s){return{value:undefined,done:true}}this[f].index=i+1;return{value:n[i],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(b,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[y]);const r=find(e[y],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(m.test(r)){continue}if(Array.isArray(e[r])){for(const i of e[r]){if(h.test(i)){continue}if(t[y][r]===undefined){t[y][r]=[i]}else{t[y][r].push(i)}}}else if(!h.test(e[r])){t[y][r]=[e[r]]}}return t}const _=Symbol("Response internals");const q=n.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;const i=new Headers(t.headers);if(e!=null&&!i.has("Content-Type")){const t=extractContentType(e);if(t){i.append("Content-Type",t)}}this[_]={url:t.url,status:r,statusText:t.statusText||q[r],headers:i,counter:t.counter}}get url(){return this[_].url||""}get status(){return this[_].status}get ok(){return this[_].status>=200&&this[_].status<300}get redirected(){return this[_].counter>0}get statusText(){return this[_].statusText}get headers(){return this[_].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const w=Symbol("Request internals");const v=s.parse;const E=s.format;const T="destroy"in i.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[w]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=v(e.href)}else{r=v(`${e}`)}e={}}else{r=v(e.url)}let i=t.method||e.method||"GET";i=i.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(i==="GET"||i==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let n=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,n,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const s=new Headers(t.headers||e.headers||{});if(n!=null&&!s.has("Content-Type")){const e=extractContentType(n);if(e){s.append("Content-Type",e)}}let o=isRequest(e)?e.signal:null;if("signal"in t)o=t.signal;if(o!=null&&!isAbortSignal(o)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[w]={method:i,redirect:t.redirect||e.redirect||"follow",headers:s,parsedURL:r,signal:o};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[w].method}get url(){return E(this[w].parsedURL)}get headers(){return this[w].headers}get redirect(){return this[w].redirect}get signal(){return this[w].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[w].parsedURL;const r=new Headers(e[w].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof i.Readable&&!T){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let n=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){n="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){n=String(t)}}if(n){r.set("Content-Length",n)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let s=e.agent;if(typeof s==="function"){s=s(t)}if(!r.has("Connection")&&!s){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:s})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const k=i.PassThrough;const O=s.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise(function(r,s){const u=new Request(e,t);const p=getNodeRequestOptions(u);const c=(p.protocol==="https:"?o:n).request;const d=u.signal;let l=null;const g=function abort(){let e=new AbortError("The user aborted a request.");s(e);if(u.body&&u.body instanceof i.Readable){u.body.destroy(e)}if(!l||!l.body)return;l.body.emit("error",e)};if(d&&d.aborted){g();return}const m=function abortAndFinalize(){g();finalize()};const h=c(p);let y;if(d){d.addEventListener("abort",m)}function finalize(){h.abort();if(d)d.removeEventListener("abort",m);clearTimeout(y)}if(u.timeout){h.once("socket",function(e){y=setTimeout(function(){s(new FetchError(`network timeout at: ${u.url}`,"request-timeout"));finalize()},u.timeout)})}h.on("error",function(e){s(new FetchError(`request to ${u.url} failed, reason: ${e.message}`,"system",e));finalize()});h.on("response",function(e){clearTimeout(y);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const i=t.get("Location");const n=i===null?null:O(u.url,i);switch(u.redirect){case"error":s(new FetchError(`redirect mode is set to error: ${u.url}`,"no-redirect"));finalize();return;case"manual":if(n!==null){try{t.set("Location",n)}catch(e){s(e)}}break;case"follow":if(n===null){break}if(u.counter>=u.follow){s(new FetchError(`maximum redirect reached at: ${u.url}`,"max-redirect"));finalize();return}const i={headers:new Headers(u.headers),follow:u.follow,counter:u.counter+1,agent:u.agent,compress:u.compress,method:u.method,body:u.body,signal:u.signal,timeout:u.timeout};if(e.statusCode!==303&&u.body&&getTotalBytes(u)===null){s(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&u.method==="POST"){i.method="GET";i.body=undefined;i.headers.delete("content-length")}r(fetch(new Request(n,i)));finalize();return}}e.once("end",function(){if(d)d.removeEventListener("abort",m)});let i=e.pipe(new k);const n={url:u.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:u.size,timeout:u.timeout,counter:u.counter};const o=t.get("Content-Encoding");if(!u.compress||u.method==="HEAD"||o===null||e.statusCode===204||e.statusCode===304){l=new Response(i,n);r(l);return}const p={flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH};if(o=="gzip"||o=="x-gzip"){i=i.pipe(a.createGunzip(p));l=new Response(i,n);r(l);return}if(o=="deflate"||o=="x-deflate"){const t=e.pipe(new k);t.once("data",function(e){if((e[0]&15)===8){i=i.pipe(a.createInflate())}else{i=i.pipe(a.createInflateRaw())}l=new Response(i,n);r(l)});return}if(o=="br"&&typeof a.createBrotliDecompress==="function"){i=i.pipe(a.createBrotliDecompress());l=new Response(i,n);r(l);return}l=new Response(i,n);r(l)});writeToStream(h,u)})}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t.default=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},462:function(e){"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,r){e=`${e}`;e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(r){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},463:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var i=r(692);var n=_interopDefault(r(969));const s=n(e=>console.warn(e));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;Object.defineProperty(this,"code",{get(){s(new i.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=r.headers||{};const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}t.RequestError=RequestError},469:function(e,t,r){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=r(898);const s=r(0);const o=i(r(262));const a=i(r(539));s.Octokit.prototype=new s.Octokit;t.context=new o.Context;class GitHub extends s.Octokit{constructor(e,t){super(GitHub.getOctokitOptions(GitHub.disambiguate(e,t)));this.graphql=GitHub.getGraphQL(GitHub.disambiguate(e,t))}static disambiguate(e,t){return[typeof e==="string"?e:"",typeof e==="object"?e:t||{}]}static getOctokitOptions(e){const t=e[0];const r=Object.assign({},e[1]);r.baseUrl=r.baseUrl||this.getApiBaseUrl();const i=GitHub.getAuthString(t,r);if(i){r.auth=i}const n=GitHub.getProxyAgent(r.baseUrl,r);if(n){r.request=r.request?Object.assign({},r.request):{};r.request.agent=n}return r}static getGraphQL(e){const t={};t.baseUrl=this.getGraphQLBaseUrl();const r=e[0];const i=e[1];const s=this.getAuthString(r,i);if(s){t.headers={authorization:s}}const o=GitHub.getProxyAgent(t.baseUrl,i);if(o){t.request={agent:o}}return n.graphql.defaults(t)}static getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}static getProxyAgent(e,t){var r;if(!((r=t.request)===null||r===void 0?void 0:r.agent)){if(a.getProxyUrl(e)){const t=new a.HttpClient;return t.getAgent(e)}}return undefined}static getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}static getGraphQLBaseUrl(){let e=process.env["GITHUB_GRAPHQL_URL"]||"https://api.github.com/graphql";if(e.endsWith("/")){e=e.substr(0,e.length-1)}if(e.toUpperCase().endsWith("/GRAPHQL")){e=e.substr(0,e.length-"/graphql".length)}return e}}t.GitHub=GitHub},470:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())})};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=r(431);const o=n(r(87));const a=n(r(622));var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=s.toCommandValue(t);process.env[e]=r;s.issueCommand("set-env",{name:e},r)}t.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){s.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${a.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){s.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=u.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}t.debug=debug;function error(e){s.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){s.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+o.EOL)}t.info=info;function startGroup(e){s.issue("group",e)}t.startGroup=startGroup;function endGroup(){s.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return i(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){s.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},471:function(e,t,r){e.exports=authenticationBeforeRequest;const i=r(675);const n=r(126);function authenticationBeforeRequest(e,t){if(!e.auth.type){return}if(e.auth.type==="basic"){const r=i(`${e.auth.username}:${e.auth.password}`);t.headers.authorization=`Basic ${r}`;return}if(e.auth.type==="token"){t.headers.authorization=`token ${e.auth.token}`;return}if(e.auth.type==="app"){t.headers.authorization=`Bearer ${e.auth.token}`;const r=t.headers.accept.split(",").concat("application/vnd.github.machine-man-preview+json");t.headers.accept=n(r).filter(Boolean).join(",");return}t.url+=t.url.indexOf("?")===-1?"?":"&";if(e.auth.token){t.url+=`access_token=${encodeURIComponent(e.auth.token)}`;return}const r=encodeURIComponent(e.auth.key);const s=encodeURIComponent(e.auth.secret);t.url+=`client_id=${r}&client_secret=${s}`}},489:function(e,t,r){"use strict";const i=r(622);const n=r(814);const s=r(39)();function resolveCommandAttempt(e,t){const r=process.cwd();const o=e.options.cwd!=null;if(o){try{process.chdir(e.options.cwd)}catch(e){}}let a;try{a=n.sync(e.command,{path:(e.options.env||process.env)[s],pathExt:t?i.delimiter:undefined})}catch(e){}finally{process.chdir(r)}if(a){a=i.resolve(o?e.options.cwd:"",a)}return a}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},510:function(e){e.exports=addHook;function addHook(e,t,r,i){var n=i;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){i=function(e,t){return Promise.resolve().then(n.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){i=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then(function(e){r=e;return n(r,t)}).then(function(){return r})}}if(t==="error"){i=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return n(e,t)})}}e.registry[r].push({hook:i,orig:n})}},523:function(e,t,r){var i=r(363);var n=r(510);var s=r(763);var o=Function.bind;var a=o.bind(o);function bindApi(e,t,r){var i=a(s,null).apply(null,r?[t,r]:[t]);e.api={remove:i};e.remove=i;["before","error","after","wrap"].forEach(function(i){var s=r?[t,i,r]:[t,i];e[i]=e.api[i]=a(n,null).apply(null,s)})}function HookSingular(){var e="h";var t={registry:{}};var r=i.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=i.bind(null,e);bindApi(t,e);return t}var u=false;function Hook(){if(!u){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');u=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},529:function(e,t,r){const i=r(47);e.exports=i()},536:function(e,t,r){e.exports=hasFirstPage;const i=r(370);const n=r(577);function hasFirstPage(e){i(`octokit.hasFirstPage() โ€“ You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return n(e).first}},539:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=r(835);const n=r(605);const s=r(211);const o=r(950);let a;var u;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(u=t.HttpCodes||(t.HttpCodes={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p=t.Headers||(t.Headers={}));var c;(function(e){e["ApplicationJson"]="application/json"})(c=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(i.parse(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const d=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];const l=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout];const g=["OPTIONS","GET","DELETE","HEAD"];const m=10;const h=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",e=>{r=Buffer.concat([r,e])});this.message.on("end",()=>{e(r.toString())})})}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=i.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,i){return this.request(e,t,r,i)}async getJson(e,t={}){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,c.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,c.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,c.ApplicationJson);let n=await this.post(e,i,r);return this._processResponse(n,this.requestOptions)}async putJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,c.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,c.ApplicationJson);let n=await this.put(e,i,r);return this._processResponse(n,this.requestOptions)}async patchJson(e,t,r={}){let i=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,c.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,c.ApplicationJson);let n=await this.patch(e,i,r);return this._processResponse(n,this.requestOptions)}async request(e,t,r,n){if(this._disposed){throw new Error("Client has already been disposed.")}let s=i.parse(t);let o=this._prepareRequest(e,s,n);let a=this._allowRetries&&g.indexOf(e)!=-1?this._maxRetries+1:1;let p=0;let c;while(p0){const a=c.message.headers["location"];if(!a){break}let u=i.parse(a);if(s.protocol=="https:"&&s.protocol!=u.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await c.readBody();if(u.hostname!==s.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,u,n);c=await this.requestRaw(o,r);t--}if(l.indexOf(c.message.statusCode)==-1){return c}p+=1;if(p{let n=function(e,t){if(e){i(e)}r(t)};this.requestRawWithCallback(e,t,n)})}requestRawWithCallback(e,t,r){let i;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;let s=(e,t)=>{if(!n){n=true;r(e,t)}};let o=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);s(null,t)});o.on("socket",e=>{i=e});o.setTimeout(this._socketTimeout||3*6e4,()=>{if(i){i.end()}s(new Error("Request timeout: "+e.options.path),null)});o.on("error",function(e){s(e,null)});if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){o.end()});t.pipe(o)}else{o.end()}}getAgent(e){let t=i.parse(e);return this._getAgent(t)}_prepareRequest(e,t,r){const i={};i.parsedUrl=t;const o=i.parsedUrl.protocol==="https:";i.httpModule=o?s:n;const a=o?443:80;i.options={};i.options.host=i.parsedUrl.hostname;i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a;i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||"");i.options.method=e;i.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){i.options.headers["user-agent"]=this.userAgent}i.options.agent=this._getAgent(i.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(i.options)})}return i}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getExistingOrDefaultHeader(e,t,r){const i=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});let n;if(this.requestOptions&&this.requestOptions.headers){n=i(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;let i=o.getProxyUrl(e);let u=i&&i.hostname;if(this._keepAlive&&u){t=this._proxyAgent}if(this._keepAlive&&!u){t=this._agent}if(!!t){return t}const p=e.protocol==="https:";let c=100;if(!!this.requestOptions){c=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(u){if(!a){a=r(856)}const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:i.auth,host:i.hostname,port:i.port}};let n;const s=i.protocol==="https:";if(p){n=s?a.httpsOverHttps:a.httpsOverHttp}else{n=s?a.httpOverHttps:a.httpOverHttp}t=n(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=p?new s.Agent(e):new n.Agent(e);this._agent=t}if(!t){t=p?s.globalAgent:n.globalAgent}if(p&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(m,e);const t=h*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise(async(r,i)=>{const n=e.message.statusCode;const s={statusCode:n,result:null,headers:{}};if(n==u.NotFound){r(s)}let o;let a;try{a=await e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){o=JSON.parse(a,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(a)}s.result=o}s.headers=e.message.headers}catch(e){}if(n>299){let e;if(o&&o.message){e=o.message}else if(a&&a.length>0){e=a}else{e="Failed request: ("+n+")"}let t=new Error(e);t["statusCode"]=n;if(s.result){t["result"]=s.result}i(t)}else{r(s)}})}}t.HttpClient=HttpClient},550:function(e,t,r){e.exports=getNextPage;const i=r(265);function getNextPage(e,t,r){return i(e,t,"next",r)}},558:function(e,t,r){e.exports=hasPreviousPage;const i=r(370);const n=r(577);function hasPreviousPage(e){i(`octokit.hasPreviousPage() โ€“ You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return n(e).prev}},562:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var i=_interopDefault(r(2));function getUserAgent(){try{return`Node.js/${process.version.substr(1)} (${i()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}return""}}t.getUserAgent=getUserAgent},563:function(e,t,r){e.exports=getPreviousPage;const i=r(265);function getPreviousPage(e,t,r){return i(e,t,"prev",r)}},568:function(e,t,r){"use strict";const i=r(622);const n=r(948);const s=r(489);const o=r(462);const a=r(389);const u=r(280);const p=process.platform==="win32";const c=/\.(?:com|exe)$/i;const d=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;const l=n(()=>u.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",true))||false;function detectShebang(e){e.file=s(e);const t=e.file&&a(e.file);if(t){e.args.unshift(e.file);e.command=t;return s(e)}return e.file}function parseNonShell(e){if(!p){return e}const t=detectShebang(e);const r=!c.test(t);if(e.options.forceShell||r){const r=d.test(t);e.command=i.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map(e=>o.argument(e,r));const n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parseShell(e){if(l){return e}const t=[e.command].concat(e.args).join(" ");if(p){e.command=typeof e.options.shell==="string"?e.options.shell:process.env.comspec||"cmd.exe";e.args=["/d","/s","/c",`"${t}"`];e.options.windowsVerbatimArguments=true}else{if(typeof e.options.shell==="string"){e.command=e.options.shell}else if(process.platform==="android"){e.command="/system/bin/sh"}else{e.command="/bin/sh"}e.args=["-c",t]}return e}function parse(e,t,r){if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=Object.assign({},r);const i={command:e,args:t,options:r,file:undefined,original:{command:e,args:t}};return r.shell?parseShell(i):parseNonShell(i)}e.exports=parse},577:function(e){e.exports=getPageLinks;function getPageLinks(e){e=e.link||e.headers.link||"";const t={};e.replace(/<([^>]*)>;\s*rel="([\w]*)"/g,(e,r,i)=>{t[i]=r});return t}},605:function(e){e.exports=require("http")},614:function(e){e.exports=require("events")},621:function(e,t,r){"use strict";const i=r(622);const n=r(39);e.exports=(e=>{e=Object.assign({cwd:process.cwd(),path:process.env[n()]},e);let t;let r=i.resolve(e.cwd);const s=[];while(t!==r){s.push(i.join(r,"node_modules/.bin"));t=r;r=i.resolve(r,"..")}s.push(i.dirname(process.execPath));return s.concat(e.path).join(i.delimiter)});e.exports.env=(t=>{t=Object.assign({env:process.env},t);const r=Object.assign({},t.env);const i=n({env:r});t.path=r[i];r[i]=e.exports(t);return r})},622:function(e){e.exports=require("path")},631:function(e){e.exports=require("net")},649:function(e,t,r){e.exports=getLastPage;const i=r(265);function getLastPage(e,t,r){return i(e,t,"last",r)}},654:function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},669:function(e){e.exports=require("util")},672:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())})};var n;Object.defineProperty(t,"__esModule",{value:true});const s=r(357);const o=r(747);const a=r(622);n=o.promises,t.chmod=n.chmod,t.copyFile=n.copyFile,t.lstat=n.lstat,t.mkdir=n.mkdir,t.readdir=n.readdir,t.readlink=n.readlink,t.rename=n.rename,t.rmdir=n.rmdir,t.stat=n.stat,t.symlink=n.symlink,t.unlink=n.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return i(this,void 0,void 0,function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true})}t.exists=exists;function isDirectory(e,r=false){return i(this,void 0,void 0,function*(){const i=r?yield t.stat(e):yield t.lstat(e);return i.isDirectory()})}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function mkdirP(e,r=1e3,n=1){return i(this,void 0,void 0,function*(){s.ok(e,"a path argument must be provided");e=a.resolve(e);if(n>=r)return t.mkdir(e);try{yield t.mkdir(e);return}catch(i){switch(i.code){case"ENOENT":{yield mkdirP(a.dirname(e),r,n+1);yield t.mkdir(e);return}default:{let r;try{r=yield t.stat(e)}catch(e){throw i}if(!r.isDirectory())throw i}}}})}t.mkdirP=mkdirP;function tryGetExecutablePath(e,r){return i(this,void 0,void 0,function*(){let i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){const t=a.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t)){return e}}else{if(isUnixExecutable(i)){return e}}}const n=e;for(const s of r){e=n+s;i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){try{const r=a.dirname(e);const i=a.basename(e).toUpperCase();for(const n of yield t.readdir(r)){if(i===n.toUpperCase()){e=a.join(r,n);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(i)){return e}}}}return""})}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},674:function(e,t,r){e.exports=authenticate;const{Deprecation:i}=r(692);const n=r(969);const s=n((e,t)=>e.warn(t));function authenticate(e,t){s(e.octokit.log,new i('[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.'));if(!t){e.auth=false;return}switch(t.type){case"basic":if(!t.username||!t.password){throw new Error("Basic authentication requires both a username and password to be set")}break;case"oauth":if(!t.token&&!(t.key&&t.secret)){throw new Error("OAuth2 authentication requires a token or key & secret to be set")}break;case"token":case"app":if(!t.token){throw new Error("Token authentication requires a token to be set")}break;default:throw new Error("Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'")}e.auth=t}},675:function(e){e.exports=function btoa(e){return new Buffer(e).toString("base64")}},676:function(e,t,r){const i=r(454);const n=r(986);const s=r(469);const o=r(470);const a=r(157);const u=s.context.payload.pull_request;const p=u.number;const c=u.html_url;const d=u.comments_url;const l=o.getInput("token")||process.env.token;const g=async(e,t,r)=>{const n=await i(e,{method:"POST",headers:{Authorization:`token ${t}`,"Content-Type":"application/json"},body:JSON.stringify({body:r})});if(!n.ok){throw new Error(n.statusText)}const s=await n.json();return s};const m="git fetch --no-tags --prune origin +refs/pull/*/head:refs/remotes/origin/pr/*";const h="git fetch --no-tags origin +refs/heads/*:refs/remotes/origin/*";const y=`git log --no-merges origin/pr/${p} ^origin/master --pretty=oneline --no-abbrev-commit`;(async()=>{try{if(l===undefined){throw new Error("Missing auth thoken")}console.log("Generating changelog....");await n.exec(m);await n.exec(h);let e="";let t="";const r={};r.listeners={stdout:t=>{e=`${e}${t.toString()}`},stderr:e=>{t=`${t}${e.toString()}`}};await n.exec(y,[],r);if(t!==""){throw new Error(t)}await g(d,l,a(e,c));console.log("Changelog successfully posted")}catch(e){console.log(e);process.exit(1)}})()},692:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},696:function(e){"use strict";function isObject(e){return e!=null&&typeof e==="object"&&Array.isArray(e)===false}function isObjectObject(e){return isObject(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}e.exports=isPlainObject},697:function(e){"use strict";e.exports=((e,t)=>{t=t||(()=>{});return e.then(e=>new Promise(e=>{e(t())}).then(()=>e),e=>new Promise(e=>{e(t())}).then(()=>{throw e}))})},742:function(e,t,r){var i=r(747);var n;if(process.platform==="win32"||global.TESTING_WINDOWS){n=r(818)}else{n=r(197)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,r){if(typeof t==="function"){r=t;t={}}if(!r){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise(function(r,i){isexe(e,t||{},function(e,t){if(e){i(e)}else{r(t)}})})}n(e,t||{},function(e,i){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;i=false}}r(e,i)})}function sync(e,t){try{return n.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},747:function(e){e.exports=require("fs")},753:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var i=r(385);var n=r(392);var s=_interopDefault(r(696));var o=_interopDefault(r(454));var a=r(257);const u="5.4.2";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){if(s(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let t={};let r;let i;const n=e.request&&e.request.fetch||o;return n(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(n=>{i=n.url;r=n.status;for(const e of n.headers){t[e[0]]=e[1]}if(r===204||r===205){return}if(e.method==="HEAD"){if(r<400){return}throw new a.RequestError(n.statusText,r,{headers:t,request:e})}if(r===304){throw new a.RequestError("Not modified",r,{headers:t,request:e})}if(r>=400){return n.text().then(i=>{const n=new a.RequestError(i,r,{headers:t,request:e});try{let e=JSON.parse(n.message);Object.assign(n,e);let t=e.errors;n.message=n.message+": "+t.map(JSON.stringify).join(", ")}catch(e){}throw n})}const s=n.headers.get("content-type");if(/application\/json/.test(s)){return n.json()}if(!s||/^text\/|charset=utf-8$/.test(s)){return n.text()}return getBufferResponse(n)}).then(e=>{return{status:r,url:i,headers:t,data:e}}).catch(r=>{if(r instanceof a.RequestError){throw r}throw new a.RequestError(r.message,500,{headers:t,request:e})})}function withDefaults(e,t){const r=e.defaults(t);const i=function(e,t){const i=r.merge(e,t);if(!i.request||!i.request.hook){return fetchWrapper(r.parse(i))}const n=(e,t)=>{return fetchWrapper(r.parse(r.merge(e,t)))};Object.assign(n,{endpoint:r,defaults:withDefaults.bind(null,r)});return i.request.hook(n,i)};return Object.assign(i,{endpoint:r,defaults:withDefaults.bind(null,r)})}const p=withDefaults(i.endpoint,{headers:{"user-agent":`octokit-request.js/${u} ${n.getUserAgent()}`}});t.request=p},761:function(e){e.exports=require("zlib")},763:function(e){e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var i=e.registry[t].map(function(e){return e.orig}).indexOf(r);if(i===-1){return}e.registry[t].splice(i,1)}},768:function(e){"use strict";e.exports=function(e){var t=typeof e==="string"?"\n":"\n".charCodeAt();var r=typeof e==="string"?"\r":"\r".charCodeAt();if(e[e.length-1]===t){e=e.slice(0,e.length-1)}if(e[e.length-1]===r){e=e.slice(0,e.length-1)}return e}},777:function(e,t,r){e.exports=getFirstPage;const i=r(265);function getFirstPage(e,t,r){return i(e,t,"first",r)}},796:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var i=_interopDefault(r(2));function getUserAgent(){try{return`Node.js/${process.version.substr(1)} (${i()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}throw e}}t.getUserAgent=getUserAgent},813:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});async function auth(e){const t=e.split(/\./).length===3?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,i){const n=t.endpoint.merge(r,i);n.headers.authorization=withAuthorizationPrefix(e);return t(n)}const r=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=r},814:function(e,t,r){e.exports=which;which.sync=whichSync;var i=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";var n=r(622);var s=i?";":":";var o=r(742);function getNotFoundError(e){var t=new Error("not found: "+e);t.code="ENOENT";return t}function getPathInfo(e,t){var r=t.colon||s;var n=t.path||process.env.PATH||"";var o=[""];n=n.split(r);var a="";if(i){n.unshift(process.cwd());a=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM";o=a.split(r);if(e.indexOf(".")!==-1&&o[0]!=="")o.unshift("")}if(e.match(/\//)||i&&e.match(/\\/))n=[""];return{env:n,ext:o,extExe:a}}function which(e,t,r){if(typeof t==="function"){r=t;t={}}var i=getPathInfo(e,t);var s=i.env;var a=i.ext;var u=i.extExe;var p=[];(function F(i,c){if(i===c){if(t.all&&p.length)return r(null,p);else return r(getNotFoundError(e))}var d=s[i];if(d.charAt(0)==='"'&&d.slice(-1)==='"')d=d.slice(1,-1);var l=n.join(d,e);if(!d&&/^\.[\\\/]/.test(e)){l=e.slice(0,2)+l}(function E(e,n){if(e===n)return F(i+1,c);var s=a[e];o(l+s,{pathExt:u},function(i,o){if(!i&&o){if(t.all)p.push(l+s);else return r(null,l+s)}return E(e+1,n)})})(0,a.length)})(0,s.length)}function whichSync(e,t){t=t||{};var r=getPathInfo(e,t);var i=r.env;var s=r.ext;var a=r.extExe;var u=[];for(var p=0,c=i.length;p{if(!e[r]){e[r]={}}Object.keys(t[r]).forEach(n=>{const s=t[r][n];const o=["method","url","headers"].reduce((e,t)=>{if(typeof s[t]!=="undefined"){e[t]=s[t]}return e},{});o.request={validate:s.params};let a=e.request.defaults(o);const u=Object.keys(s.params||{}).find(e=>s.params[e].deprecated);if(u){const t=patchForDeprecation.bind(null,e,s);a=t(e.request.defaults(o),`.${r}.${n}()`);a.endpoint=t(a.endpoint,`.${r}.${n}.endpoint()`);a.endpoint.merge=t(a.endpoint.merge,`.${r}.${n}.endpoint.merge()`)}if(s.deprecated){e[r][n]=Object.assign(function deprecatedEndpointMethod(){e.log.warn(new i.Deprecation(`[@octokit/rest] ${s.deprecated}`));e[r][n]=a;return a.apply(null,arguments)},a);return}e[r][n]=a})})}function patchForDeprecation(e,t,r,n){const s=s=>{s=Object.assign({},s);Object.keys(s).forEach(r=>{if(t.params[r]&&t.params[r].deprecated){const o=t.params[r].alias;e.log.warn(new i.Deprecation(`[@octokit/rest] "${r}" parameter is deprecated for "${n}". Use "${o}" instead`));if(!(o in s)){s[o]=s[r]}delete s[r]}});return r(s)};Object.keys(r).forEach(e=>{s[e]=r[e]});return s}function restEndpointMethods(e){e.registerEndpoints=registerEndpoints.bind(null,e);registerEndpoints(e,n);[["gitdata","git"],["authorization","oauthAuthorizations"],["pullRequests","pulls"]].forEach(([t,r])=>{Object.defineProperty(e,t,{get(){e.log.warn(new i.Deprecation(`[@octokit/plugin-rest-endpoint-methods] "octokit.${t}.*" methods are deprecated, use "octokit.${r}.*" instead`));return e[r]}})});return{}}restEndpointMethods.VERSION=s;t.restEndpointMethods=restEndpointMethods},850:function(e,t,r){e.exports=paginationMethodsPlugin;function paginationMethodsPlugin(e){e.getFirstPage=r(777).bind(null,e);e.getLastPage=r(649).bind(null,e);e.getNextPage=r(550).bind(null,e);e.getPreviousPage=r(563).bind(null,e);e.hasFirstPage=r(536);e.hasLastPage=r(336);e.hasNextPage=r(929);e.hasPreviousPage=r(558)}},854:function(e){var t="Expected a function";var r="__lodash_hash_undefined__";var i=1/0;var n="[object Function]",s="[object GeneratorFunction]",o="[object Symbol]";var a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,p=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var d=/[\\^$.*+?()[\]{}|]/g;var l=/\\(\\)?/g;var g=/^\[object .+?Constructor\]$/;var m=typeof global=="object"&&global&&global.Object===Object&&global;var h=typeof self=="object"&&self&&self.Object===Object&&self;var y=m||h||Function("return this")();function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}var f=Array.prototype,b=Function.prototype,_=Object.prototype;var q=y["__core-js_shared__"];var w=function(){var e=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var v=b.toString;var E=_.hasOwnProperty;var T=_.toString;var k=RegExp("^"+v.call(E).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var O=y.Symbol,j=f.splice;var S=getNative(y,"Map"),C=getNative(Object,"create");var P=O?O.prototype:undefined,x=P?P.toString:undefined;function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t-1}function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);if(i<0){r.push([e,t])}else{r[i][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t{return e.auth()}).then(e=>{t.headers.authorization=n(e)})}},866:function(e,t,r){"use strict";var i=r(816);e.exports=function(e){var t=e.match(i);if(!t){return null}var r=t[0].replace(/#! ?/,"").split(" ");var n=r[0].split("/").pop();var s=r[1];return n==="env"?s:n+(s?" "+s:"")}},881:function(e){"use strict";const t=process.platform==="win32";function notFoundError(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,r){if(!t){return}const i=e.emit;e.emit=function(t,n){if(t==="exit"){const t=verifyENOENT(n,r,"spawn");if(t){return i.call(e,"error",t)}}return i.apply(e,arguments)}}function verifyENOENT(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawn")}return null}function verifyENOENTSync(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},883:function(e){var t="Expected a function";var r="__lodash_hash_undefined__";var i=1/0,n=9007199254740991;var s="[object Function]",o="[object GeneratorFunction]",a="[object Symbol]";var u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,p=/^\w*$/,c=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var l=/[\\^$.*+?()[\]{}|]/g;var g=/\\(\\)?/g;var m=/^\[object .+?Constructor\]$/;var h=/^(?:0|[1-9]\d*)$/;var y=typeof global=="object"&&global&&global.Object===Object&&global;var f=typeof self=="object"&&self&&self.Object===Object&&self;var b=y||f||Function("return this")();function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}var _=Array.prototype,q=Function.prototype,w=Object.prototype;var v=b["__core-js_shared__"];var E=function(){var e=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var T=q.toString;var k=w.hasOwnProperty;var O=w.toString;var j=RegExp("^"+T.call(k).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var S=b.Symbol,C=_.splice;var P=getNative(b,"Map"),x=getNative(Object,"create");var A=S?S.prototype:undefined,G=A?A.toString:undefined;function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t-1}function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);if(i<0){r.push([e,t])}else{r[i][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t-1&&e%1==0&&e{if(o.includes(t)){e[t]=r[t];return e}if(!e.variables){e.variables={}}e.variables[t]=r[t];return e},{});return e(i).then(e=>{if(e.data.errors){throw new GraphqlError(i,{data:e.data})}return e.data.data})}function withDefaults(e,t){const r=e.defaults(t);const n=(e,t)=>{return graphql(r,e,t)};return Object.assign(n,{defaults:withDefaults.bind(null,r),endpoint:i.request.endpoint})}const a=withDefaults(i.request,{headers:{"user-agent":`octokit-graphql.js/${s} ${n.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.graphql=a;t.withCustomRequest=withCustomRequest},916:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="1.0.0";function requestLog(e){e.hook.wrap("request",(t,r)=>{e.log.debug("request",r);const i=Date.now();const n=e.request.endpoint.parse(r);const s=n.url.replace(r.baseUrl,"");return t(r).then(t=>{e.log.info(`${n.method} ${s} - ${t.status} in ${Date.now()-i}ms`);return t}).catch(t=>{e.log.info(`${n.method} ${s} - ${t.status} in ${Date.now()-i}ms`);throw t})})}requestLog.VERSION=r;t.requestLog=requestLog},929:function(e,t,r){e.exports=hasNextPage;const i=r(370);const n=r(577);function hasNextPage(e){i(`octokit.hasNextPage() โ€“ You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return n(e).next}},948:function(e){"use strict";e.exports=function(e){try{return e()}catch(e){}}},950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=r(835);function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let n;if(t){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){r=i.parse(n)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let i=[e.hostname.toUpperCase()];if(typeof r==="number"){i.push(`${i[0]}:${r}`)}for(let e of t.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)){if(i.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},954:function(e){e.exports=validateAuth;function validateAuth(e){if(typeof e==="string"){return}if(typeof e==="function"){return}if(e.username&&e.password){return}if(e.clientId&&e.clientSecret){return}throw new Error(`Invalid "auth" option: ${JSON.stringify(e)}`)}},955:function(e,t,r){"use strict";const i=r(622);const n=r(129);const s=r(20);const o=r(768);const a=r(621);const u=r(323);const p=r(145);const c=r(697);const d=r(260);const l=r(427);const g=r(168);const m=1e3*1e3*10;function handleArgs(e,t,r){let n;r=Object.assign({extendEnv:true,env:{}},r);if(r.extendEnv){r.env=Object.assign({},process.env,r.env)}if(r.__winShell===true){delete r.__winShell;n={command:e,args:t,options:r,file:e,original:{cmd:e,args:t}}}else{n=s._parse(e,t,r)}r=Object.assign({maxBuffer:m,buffer:true,stripEof:true,preferLocal:true,localDir:n.options.cwd||process.cwd(),encoding:"utf8",reject:true,cleanup:true},n.options);r.stdio=g(r);if(r.preferLocal){r.env=a.env(Object.assign({},r,{cwd:r.localDir}))}if(r.detached){r.cleanup=false}if(process.platform==="win32"&&i.basename(n.command)==="cmd.exe"){n.args.unshift("/q")}return{cmd:n.command,args:n.args,opts:r,parsed:n}}function handleInput(e,t){if(t===null||t===undefined){return}if(u(t)){t.pipe(e.stdin)}else{e.stdin.end(t)}}function handleOutput(e,t){if(t&&e.stripEof){t=o(t)}return t}function handleShell(e,t,r){let i="/bin/sh";let n=["-c",t];r=Object.assign({},r);if(process.platform==="win32"){r.__winShell=true;i=process.env.comspec||"cmd.exe";n=["/s","/c",`"${t}"`];r.windowsVerbatimArguments=true}if(r.shell){i=r.shell;delete r.shell}return e(i,n,r)}function getStream(e,t,{encoding:r,buffer:i,maxBuffer:n}){if(!e[t]){return null}let s;if(!i){s=new Promise((r,i)=>{e[t].once("end",r).once("error",i)})}else if(r){s=p(e[t],{encoding:r,maxBuffer:n})}else{s=p.buffer(e[t],{maxBuffer:n})}return s.catch(e=>{e.stream=t;e.message=`${t} ${e.message}`;throw e})}function makeError(e,t){const{stdout:r,stderr:i}=e;let n=e.error;const{code:s,signal:o}=e;const{parsed:a,joinedCmd:u}=t;const p=t.timedOut||false;if(!n){let e="";if(Array.isArray(a.opts.stdio)){if(a.opts.stdio[2]!=="inherit"){e+=e.length>0?i:`\n${i}`}if(a.opts.stdio[1]!=="inherit"){e+=`\n${r}`}}else if(a.opts.stdio!=="inherit"){e=`\n${i}${r}`}n=new Error(`Command failed: ${u}${e}`);n.code=s<0?l(s):s}n.stdout=r;n.stderr=i;n.failed=true;n.signal=o||null;n.cmd=u;n.timedOut=p;return n}function joinCmd(e,t){let r=e;if(Array.isArray(t)&&t.length>0){r+=" "+t.join(" ")}return r}e.exports=((e,t,r)=>{const i=handleArgs(e,t,r);const{encoding:o,buffer:a,maxBuffer:u}=i.opts;const p=joinCmd(e,t);let l;try{l=n.spawn(i.cmd,i.args,i.opts)}catch(e){return Promise.reject(e)}let g;if(i.opts.cleanup){g=d(()=>{l.kill()})}let m=null;let h=false;const y=()=>{if(m){clearTimeout(m);m=null}if(g){g()}};if(i.opts.timeout>0){m=setTimeout(()=>{m=null;h=true;l.kill(i.opts.killSignal)},i.opts.timeout)}const f=new Promise(e=>{l.on("exit",(t,r)=>{y();e({code:t,signal:r})});l.on("error",t=>{y();e({error:t})});if(l.stdin){l.stdin.on("error",t=>{y();e({error:t})})}});function destroy(){if(l.stdout){l.stdout.destroy()}if(l.stderr){l.stderr.destroy()}}const b=()=>c(Promise.all([f,getStream(l,"stdout",{encoding:o,buffer:a,maxBuffer:u}),getStream(l,"stderr",{encoding:o,buffer:a,maxBuffer:u})]).then(e=>{const t=e[0];t.stdout=e[1];t.stderr=e[2];if(t.error||t.code!==0||t.signal!==null){const e=makeError(t,{joinedCmd:p,parsed:i,timedOut:h});e.killed=e.killed||l.killed;if(!i.opts.reject){return e}throw e}return{stdout:handleOutput(i.opts,t.stdout),stderr:handleOutput(i.opts,t.stderr),code:0,failed:false,killed:false,signal:null,cmd:p,timedOut:false}}),destroy);s._enoent.hookChildProcess(l,i.parsed);handleInput(l,i.opts.input);l.then=((e,t)=>b().then(e,t));l.catch=(e=>b().catch(e));return l});e.exports.stdout=((...t)=>e.exports(...t).then(e=>e.stdout));e.exports.stderr=((...t)=>e.exports(...t).then(e=>e.stderr));e.exports.shell=((t,r)=>handleShell(e.exports,t,r));e.exports.sync=((e,t,r)=>{const i=handleArgs(e,t,r);const s=joinCmd(e,t);if(u(i.opts.input)){throw new TypeError("The `input` option cannot be a stream in sync mode")}const o=n.spawnSync(i.cmd,i.args,i.opts);o.code=o.status;if(o.error||o.status!==0||o.signal!==null){const e=makeError(o,{joinedCmd:s,parsed:i});if(!i.opts.reject){return e}throw e}return{stdout:handleOutput(i.opts,o.stdout),stderr:handleOutput(i.opts,o.stderr),code:0,failed:false,signal:null,cmd:s,timedOut:false}});e.exports.shellSync=((t,r)=>handleShell(e.exports.sync,t,r))},966:function(e,t,r){"use strict";const{PassThrough:i}=r(413);e.exports=(e=>{e=Object.assign({},e);const{array:t}=e;let{encoding:r}=e;const n=r==="buffer";let s=false;if(t){s=!(r||n)}else{r=r||"utf8"}if(n){r=null}let o=0;const a=[];const u=new i({objectMode:s});if(r){u.setEncoding(r)}u.on("data",e=>{a.push(e);if(s){o=a.length}else{o+=e.length}});u.getBufferedValue=(()=>{if(t){return a}return n?Buffer.concat(a,o):a.join("")});u.getBufferedLength=(()=>o);return u})},969:function(e,t,r){var i=r(11);e.exports=i(once);e.exports.strict=i(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";t.onceError=r+" shouldn't be called more than once";t.called=false;return t}},986:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())})};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(9));function exec(e,t,r){return i(this,void 0,void 0,function*(){const i=s.argStringToArray(e);if(i.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const n=i[0];t=i.slice(1).concat(t||[]);const o=new s.ToolRunner(n,t,r);return o.exec()})}t.exec=exec}}); \ No newline at end of file +module.exports=function(e,t){"use strict";var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var s=r[t]={i:t,l:false,exports:{}};var o=true;try{e[t].call(s.exports,s,s.exports,__webpack_require__);o=false}finally{if(o)delete r[t]}s.l=true;return s.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(676)}return startup()}({1:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(s.next(e))}catch(e){o(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const o=r(129);const n=r(622);const i=r(669);const c=r(672);const a=i.promisify(o.exec);function cp(e,t,r={}){return s(this,void 0,void 0,function*(){const{force:s,recursive:o}=readCopyOptions(r);const i=(yield c.exists(t))?yield c.stat(t):null;if(i&&i.isFile()&&!s){return}const a=i&&i.isDirectory()?n.join(t,n.basename(e)):t;if(!(yield c.exists(e))){throw new Error(`no such file or directory: ${e}`)}const u=yield c.stat(e);if(u.isDirectory()){if(!o){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,a,0,s)}}else{if(n.relative(e,a)===""){throw new Error(`'${a}' and '${e}' are the same file`)}yield copyFile(e,a,s)}})}t.cp=cp;function mv(e,t,r={}){return s(this,void 0,void 0,function*(){if(yield c.exists(t)){let s=true;if(yield c.isDirectory(t)){t=n.join(t,n.basename(e));s=yield c.exists(t)}if(s){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(n.dirname(t));yield c.rename(e,t)})}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,function*(){if(c.IS_WINDOWS){try{if(yield c.isDirectory(e,true)){yield a(`rd /s /q "${e}"`)}else{yield a(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield c.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield c.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield a(`rm -rf "${e}"`)}else{yield c.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,function*(){yield c.mkdirP(e)})}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(c.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}}try{const t=[];if(c.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(n.delimiter)){if(e){t.push(e)}}}if(c.isRooted(e)){const r=yield c.tryGetExecutablePath(e,t);if(r){return r}return""}if(e.includes("/")||c.IS_WINDOWS&&e.includes("\\")){return""}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(n.delimiter)){if(e){r.push(e)}}}for(const s of r){const r=yield c.tryGetExecutablePath(s+n.sep+e,t);if(r){return r}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}t.which=which;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);return{force:t,recursive:r}}function cpDirRecursive(e,t,r,o){return s(this,void 0,void 0,function*(){if(r>=255)return;r++;yield mkdirP(t);const s=yield c.readdir(e);for(const n of s){const s=`${e}/${n}`;const i=`${t}/${n}`;const a=yield c.lstat(s);if(a.isDirectory()){yield cpDirRecursive(s,i,r,o)}else{yield copyFile(s,i,o)}}yield c.chmod(t,(yield c.stat(e)).mode)})}function copyFile(e,t,r){return s(this,void 0,void 0,function*(){if((yield c.lstat(e)).isSymbolicLink()){try{yield c.lstat(t);yield c.unlink(t)}catch(e){if(e.code==="EPERM"){yield c.chmod(t,"0666");yield c.unlink(t)}}const r=yield c.readlink(e);yield c.symlink(r,t,c.IS_WINDOWS?"junction":null)}else if(!(yield c.exists(t))||r){yield c.copyFile(e,t)}})}},2:function(e,t,r){"use strict";const s=r(87);const o=r(118);const n=r(49);const i=(e,t)=>{if(!e&&t){throw new Error("You can't specify a `release` without specifying `platform`")}e=e||s.platform();let r;if(e==="darwin"){if(!t&&s.platform()==="darwin"){t=s.release()}const e=t?Number(t.split(".")[0])>15?"macOS":"OS X":"macOS";r=t?o(t).name:"";return e+(r?" "+r:"")}if(e==="linux"){if(!t&&s.platform()==="linux"){t=s.release()}r=t?t.replace(/^(\d+\.\d+).*/,"$1"):"";return"Linux"+(r?" "+r:"")}if(e==="win32"){if(!t&&s.platform()==="win32"){t=s.release()}r=t?n(t):"";return"Windows"+(r?" "+r:"")}return e};e.exports=i},9:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(s.next(e))}catch(e){o(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=o(r(87));const i=o(r(614));const c=o(r(129));const a=o(r(622));const u=o(r(1));const l=o(r(672));const p=process.platform==="win32";class ToolRunner extends i.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const s=this._getSpawnArgs(e);let o=t?"":"[command]";if(p){if(this._isCmdFile()){o+=r;for(const e of s){o+=` ${e}`}}else if(e.windowsVerbatimArguments){o+=`"${r}"`;for(const e of s){o+=` ${e}`}}else{o+=this._windowsQuoteCmdArg(r);for(const e of s){o+=` ${this._windowsQuoteCmdArg(e)}`}}}else{o+=r;for(const e of s){o+=` ${e}`}}return o}_processLineBuffer(e,t,r){try{let s=t+e.toString();let o=s.indexOf(n.EOL);while(o>-1){const e=s.substring(0,o);r(e);s=s.substring(o+n.EOL.length);o=s.indexOf(n.EOL)}t=s}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(p){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(p){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const s of e){if(t.some(e=>e===s)){r=true;break}}if(!r){return e}let s='"';let o=true;for(let t=e.length;t>0;t--){s+=e[t-1];if(o&&e[t-1]==="\\"){s+="\\"}else if(e[t-1]==='"'){o=true;s+='"'}else{o=false}}s+='"';return s.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let s=e.length;s>0;s--){t+=e[s-1];if(r&&e[s-1]==="\\"){t+="\\"}else if(e[s-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return s(this,void 0,void 0,function*(){if(!l.isRooted(this.toolPath)&&(this.toolPath.includes("/")||p&&this.toolPath.includes("\\"))){this.toolPath=a.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield u.which(this.toolPath,true);return new Promise((e,t)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+n.EOL)}const s=new ExecState(r,this.toolPath);s.on("debug",e=>{this._debug(e)});const o=this._getSpawnFileName();const i=c.spawn(o,this._getSpawnArgs(r),this._getSpawnOptions(this.options,o));const a="";if(i.stdout){i.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}this._processLineBuffer(e,a,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const u="";if(i.stderr){i.stderr.on("data",e=>{s.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}this._processLineBuffer(e,u,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}i.on("error",e=>{s.processError=e.message;s.processExited=true;s.processClosed=true;s.CheckComplete()});i.on("exit",e=>{s.processExitCode=e;s.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);s.CheckComplete()});i.on("close",e=>{s.processExitCode=e;s.processExited=true;s.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);s.CheckComplete()});s.on("done",(r,s)=>{if(a.length>0){this.emit("stdline",a)}if(u.length>0){this.emit("errline",u)}i.removeAllListeners();if(r){t(r)}else{e(s)}});if(this.options.input){if(!i.stdin){throw new Error("child process missing stdin")}i.stdin.end(this.options.input)}})})}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let s=false;let o="";function append(e){if(s&&e!=='"'){o+="\\"}o+=e;s=false}for(let n=0;n0){t.push(o);o=""}continue}append(i)}if(o.length>0){t.push(o.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends i.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},11:function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r{e=e||{};const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).find(e=>e.toUpperCase()==="PATH")||"Path"})},49:function(e,t,r){"use strict";const s=r(87);const o=r(955);const n=new Map([["10.0","10"],["6.3","8.1"],["6.2","8"],["6.1","7"],["6.0","Vista"],["5.2","Server 2003"],["5.1","XP"],["5.0","2000"],["4.9","ME"],["4.1","98"],["4.0","95"]]);const i=e=>{const t=/\d+\.\d/.exec(e||s.release());if(e&&!t){throw new Error("`release` argument doesn't match `n.n`")}const r=(t||[])[0];if((!e||e===s.release())&&["6.1","6.2","6.3","10.0"].includes(r)){let e;try{e=o.sync("wmic",["os","get","Caption"]).stdout||""}catch(t){e=o.sync("powershell",["(Get-CimInstance -ClassName Win32_OperatingSystem).caption"]).stdout||""}const t=(e.match(/2008|2012|2016|2019/)||[])[0];if(t){return`Server ${t}`}}return n.get(r)};e.exports=i},87:function(e){e.exports=require("os")},118:function(e,t,r){"use strict";const s=r(87);const o=new Map([[20,["Big Sur","11"]],[19,["Catalina","10.15"]],[18,["Mojave","10.14"]],[17,["High Sierra","10.13"]],[16,["Sierra","10.12"]],[15,["El Capitan","10.11"]],[14,["Yosemite","10.10"]],[13,["Mavericks","10.9"]],[12,["Mountain Lion","10.8"]],[11,["Lion","10.7"]],[10,["Snow Leopard","10.6"]],[9,["Leopard","10.5"]],[8,["Tiger","10.4"]],[7,["Panther","10.3"]],[6,["Jaguar","10.2"]],[5,["Puma","10.1"]]]);const n=e=>{e=Number((e||s.release()).split(".")[0]);const[t,r]=o.get(e);return{name:t,version:r}};e.exports=n;e.exports.default=n},121:function(e){e.exports={gitPrume:"git fetch --no-tags --prune origin +refs/pull/*/head:refs/remotes/origin/pr/*",gitNoTag:"git fetch --no-tags origin +refs/heads/*:refs/remotes/origin/*",getCommits:e=>`git log --no-merges origin/pr/${e} ^origin/master --pretty=oneline --no-abbrev-commit`,changeFiles:e=>`git diff-tree --no-commit-id --name-only -r ${e}`}},127:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))s(t,e,r);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const i=n(r(539));function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new i.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},129:function(e){e.exports=require("child_process")},141:function(e,t,r){"use strict";var s=r(631);var o=r(16);var n=r(605);var i=r(211);var c=r(614);var a=r(357);var u=r(669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=n.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=n.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||n.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",function onFree(e,r,s,o){var n=toOptions(r,s,o);for(var i=0,c=t.requests.length;i=this.maxSockets){o.requests.push(n);return}o.createSocket(n,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){o.emit("free",t,n)}function onCloseOrRemove(e){o.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var s={};r.sockets.push(s);var o=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){o.localAddress=e.localAddress}if(o.proxyAuth){o.headers=o.headers||{};o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")}l("making CONNECT request");var n=r.request(o);n.useChunkedEncodingByDefault=false;n.once("response",onResponse);n.once("upgrade",onUpgrade);n.once("connect",onConnect);n.once("error",onError);n.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(o,i,c){n.removeAllListeners();i.removeAllListeners();if(o.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",o.statusCode);i.destroy();var a=new Error("tunneling socket could not be established, "+"statusCode="+o.statusCode);a.code="ECONNRESET";e.request.emit("error",a);r.removeSocket(s);return}if(c.length>0){l("got illegal response body from proxy");i.destroy();var a=new Error("got illegal response body from proxy");a.code="ECONNRESET";e.request.emit("error",a);r.removeSocket(s);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(s)]=i;return t(i)}function onError(t){n.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, "+"cause="+t.message);o.code="ECONNRESET";e.request.emit("error",o);r.removeSocket(s)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,function(e){r.request.onSocket(e)})}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(s){var n=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):e.host});var c=o.connect(0,i);r.sockets[r.sockets.indexOf(s)]=c;t(c)})}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{const a=e=>{if(e){e.bufferedData=n.getBufferedValue()}c(e)};n=s(e,o(t),e=>{if(e){a(e);return}i()});n.on("data",()=>{if(n.getBufferedLength()>r){a(new MaxBufferError)}})}).then(()=>n.getBufferedValue())}e.exports=getStream;e.exports.buffer=((e,t)=>getStream(e,Object.assign({},t,{encoding:"buffer"})));e.exports.array=((e,t)=>getStream(e,Object.assign({},t,{array:true})));e.exports.MaxBufferError=MaxBufferError},157:function(e){let t="";const r=`\n`;let s=[];const o="changes";const n={"feat:":"feat","fix:":"fix","docs:":"docs","ci:":"ci","test:":"test","refactor:":"refactor"};const i=e=>{const t=e.split(" ")[0].indexOf(":");if(t<0){return{prefix:"",message:e}}const{prefix:r,scope:s}=c(e.substr(0,t+1));const o=e.substr(t+1).trim();return{prefix:r,message:o,scope:s}};const c=e=>{let t="";if(!e){return{scope:t,prefix:o}}const r=e.indexOf("(");if(r>-1){const r=e.indexOf(")");if(r>-1){let r=e.split("(");if(r[1]){let e=r[1].split(")")[0];if(e){t=e}}e=`${r[0]}:`}}return{scope:t,prefix:e}};const a=e=>{const t=n[e]||o;if(t){return t}return o};const u=(e,t)=>{const n=t.message;const c=t.files;const{prefix:u,scope:l,message:p}=i(n);if(!u&&!p){return}const f=a(u);if(!s[f]){s[f]=[]}const d=u?`**${u}** `:"";const h=c.map(e=>`- ${e}`);const m=f===o?d:"";s[f].push({scope:l||"no-scope",message:`
\n ${e.substr(0,7)} - ${m}${p}\n ${r}#### Changed files${r}\n ${h.join("\n")}\n
`})};const l=e=>{const t=s[e];const o={"no-scope":[]};t.forEach(({scope:e,message:t})=>{if(!o[e]){o[e]=[]}o[e].push(t)});const n=Object.keys(o).map(e=>{const t=o[e].join(r);if(e==="no-scope"){return`${r}${t}`}else{return`### - ${e}${r}${t}`}});return n.join(r)};e.exports=function MakeTemplate(e,n=""){t=n;Object.keys(e).forEach(t=>u(t,e[t]));let i="";const c=()=>{if(i){i+=r;i+=r}};const a=()=>{if(i){i+=`${r}${r}`}};if(s["feat"]){a();c();i+=`## โœจ Features${r}`;i+=l("feat")}if(s["fix"]){a();c();i+=`## ๐Ÿž Fixes${r}`;i+=l("fix")}if(s["ci"]){a();c();i+=`## ๐Ÿ— CI${r}`;i+=l("fix")}if(s["test"]){a();c();i+=`## ๐Ÿงช Tests${r}`;i+=l("fix")}if(s["refactor"]){a();c();i+=`## โ™ป๏ธ Refactors${r}`;i+=l("fix")}if(s[o]){a();c();i+=`## ๐Ÿ“‹ Changes${r}`;i+=l(o)}return i}},168:function(e){"use strict";const t=["stdin","stdout","stderr"];const r=e=>t.some(t=>Boolean(e[t]));e.exports=(e=>{if(!e){return null}if(e.stdio&&r(e)){throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(e=>`\`${e}\``).join(", ")}`)}if(typeof e.stdio==="string"){return e.stdio}const s=e.stdio||[];if(!Array.isArray(s)){throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof s}\``)}const o=[];const n=Math.max(s.length,t.length);for(let r=0;r)?=?)";var O=a++;c[O]=c[l]+"|x|X|\\*";var P=a++;c[P]=c[u]+"|x|X|\\*";var x=a++;c[x]="[v=\\s]*("+c[P]+")"+"(?:\\.("+c[P]+")"+"(?:\\.("+c[P]+")"+"(?:"+c[g]+")?"+c[E]+"?"+")?)?";var C=a++;c[C]="[v=\\s]*("+c[O]+")"+"(?:\\.("+c[O]+")"+"(?:\\.("+c[O]+")"+"(?:"+c[w]+")?"+c[E]+"?"+")?)?";var R=a++;c[R]="^"+c[S]+"\\s*"+c[x]+"$";var A=a++;c[A]="^"+c[S]+"\\s*"+c[C]+"$";var G=a++;c[G]="(?:^|[^\\d])"+"(\\d{1,"+n+"})"+"(?:\\.(\\d{1,"+n+"}))?"+"(?:\\.(\\d{1,"+n+"}))?"+"(?:$|[^\\d])";var k=a++;c[k]="(?:~>?)";var j=a++;c[j]="(\\s*)"+c[k]+"\\s+";i[j]=new RegExp(c[j],"g");var D="$1~";var F=a++;c[F]="^"+c[k]+c[x]+"$";var U=a++;c[U]="^"+c[k]+c[C]+"$";var q=a++;c[q]="(?:\\^)";var I=a++;c[I]="(\\s*)"+c[q]+"\\s+";i[I]=new RegExp(c[I],"g");var $="$1^";var B=a++;c[B]="^"+c[q]+c[x]+"$";var L=a++;c[L]="^"+c[q]+c[C]+"$";var H=a++;c[H]="^"+c[S]+"\\s*("+v+")$|^$";var N=a++;c[N]="^"+c[S]+"\\s*("+b+")$|^$";var V=a++;c[V]="(\\s*)"+c[S]+"\\s*("+v+"|"+c[x]+")";i[V]=new RegExp(c[V],"g");var W="$1$2$3";var z=a++;c[z]="^\\s*("+c[x]+")"+"\\s+-\\s+"+"("+c[x]+")"+"\\s*$";var X=a++;c[X]="^\\s*("+c[C]+")"+"\\s+-\\s+"+"("+c[C]+")"+"\\s*$";var K=a++;c[K]="(<|>)?=?\\s*\\*";for(var J=0;Js){return null}var r=t.loose?i[_]:i[y];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>s){throw new TypeError("version is longer than "+s+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var n=e.trim().match(t.loose?i[_]:i[y]);if(!n){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,s){if(typeof r==="string"){s=r;r=undefined}try{return new SemVer(e,r).inc(t,s).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var s=parse(t);var o="";if(r.prerelease.length||s.prerelease.length){o="pre";var n="prerelease"}for(var i in r){if(i==="major"||i==="minor"||i==="patch"){if(r[i]!==s[i]){return o+i}}}return n}}t.compareIdentifiers=compareIdentifiers;var Y=/^[0-9]+$/;function compareIdentifiers(e,t){var r=Y.test(e);var s=Y.test(t);if(r&&s){e=+e;t=+t}return e===t?0:r&&!s?-1:s&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,s){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,s);case"!=":return neq(e,r,s);case">":return gt(e,r,s);case">=":return gte(e,r,s);case"<":return lt(e,r,s);case"<=":return lte(e,r,s);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===Z){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var Z={};Comparator.prototype.parse=function(e){var t=this.options.loose?i[H]:i[N];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=Z}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===Z){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var s=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var o=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var n=this.semver.version===e.semver.version;var i=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var c=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var a=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return s||o||n&&i||c||a};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var s=t?i[X]:i[z];e=e.replace(s,hyphenReplace);r("hyphen replace",e);e=e.replace(i[V],W);r("comparator trim",e,i[V]);e=e.replace(i[j],D);e=e.replace(i[I],$);e=e.split(/\s+/).join(" ");var o=t?i[H]:i[N];var n=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){n=n.filter(function(e){return!!e.match(o)})}n=n.map(function(e){return new Comparator(e,this.options)},this);return n};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var s=t.loose?i[U]:i[F];return e.replace(s,function(t,s,o,n,i){r("tilde",e,t,s,o,n,i);var c;if(isX(s)){c=""}else if(isX(o)){c=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(isX(n)){c=">="+s+"."+o+".0 <"+s+"."+(+o+1)+".0"}else if(i){r("replaceTilde pr",i);c=">="+s+"."+o+"."+n+"-"+i+" <"+s+"."+(+o+1)+".0"}else{c=">="+s+"."+o+"."+n+" <"+s+"."+(+o+1)+".0"}r("tilde return",c);return c})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var s=t.loose?i[L]:i[B];return e.replace(s,function(t,s,o,n,i){r("caret",e,t,s,o,n,i);var c;if(isX(s)){c=""}else if(isX(o)){c=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(isX(n)){if(s==="0"){c=">="+s+"."+o+".0 <"+s+"."+(+o+1)+".0"}else{c=">="+s+"."+o+".0 <"+(+s+1)+".0.0"}}else if(i){r("replaceCaret pr",i);if(s==="0"){if(o==="0"){c=">="+s+"."+o+"."+n+"-"+i+" <"+s+"."+o+"."+(+n+1)}else{c=">="+s+"."+o+"."+n+"-"+i+" <"+s+"."+(+o+1)+".0"}}else{c=">="+s+"."+o+"."+n+"-"+i+" <"+(+s+1)+".0.0"}}else{r("no pr");if(s==="0"){if(o==="0"){c=">="+s+"."+o+"."+n+" <"+s+"."+o+"."+(+n+1)}else{c=">="+s+"."+o+"."+n+" <"+s+"."+(+o+1)+".0"}}else{c=">="+s+"."+o+"."+n+" <"+(+s+1)+".0.0"}}r("caret return",c);return c})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var s=t.loose?i[A]:i[R];return e.replace(s,function(t,s,o,n,i,c){r("xRange",e,t,s,o,n,i,c);var a=isX(o);var u=a||isX(n);var l=u||isX(i);var p=l;if(s==="="&&p){s=""}if(a){if(s===">"||s==="<"){t="<0.0.0"}else{t="*"}}else if(s&&p){if(u){n=0}i=0;if(s===">"){s=">=";if(u){o=+o+1;n=0;i=0}else{n=+n+1;i=0}}else if(s==="<="){s="<";if(u){o=+o+1}else{n=+n+1}}t=s+o+"."+n+"."+i}else if(u){t=">="+o+".0.0 <"+(+o+1)+".0.0"}else if(l){t=">="+o+"."+n+".0 <"+o+"."+(+n+1)+".0"}r("xRange return",t);return t})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(i[K],"")}function hyphenReplace(e,t,r,s,o,n,i,c,a,u,l,p,f){if(isX(r)){t=""}else if(isX(s)){t=">="+r+".0.0"}else if(isX(o)){t=">="+r+"."+s+".0"}else{t=">="+t}if(isX(a)){c=""}else if(isX(u)){c="<"+(+a+1)+".0.0"}else if(isX(l)){c="<"+a+"."+(+u+1)+".0"}else if(p){c="<="+a+"."+u+"."+l+"-"+p}else{c="<="+c}return(t+" "+c).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t0){var n=e[o].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var s=null;var o=null;try{var n=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(n.test(e)){if(!s||o.compare(e)===-1){s=e;o=new SemVer(s,r)}}});return s}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var s=null;var o=null;try{var n=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(n.test(e)){if(!s||o.compare(e)===1){s=e;o=new SemVer(s,r)}}});return s}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var s=0;s":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,s){e=new SemVer(e,s);t=new Range(t,s);var o,n,i,c,a;switch(r){case">":o=gt;n=lte;i=lt;c=">";a=">=";break;case"<":o=lt;n=gte;i=gt;c="<";a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,s)){return false}for(var u=0;u=0.0.0")}p=p||e;f=f||e;if(o(e.semver,p.semver,s)){p=e}else if(i(e.semver,f.semver,s)){f=e}});if(p.operator===c||p.operator===a){return false}if((!f.operator||f.operator===c)&&n(e,f.semver)){return false}else if(f.operator===a&&i(e,f.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(i[G]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},299:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="2.2.3";function normalizePaginatedListResponse(e){const t="total_count"in e.data&&!("url"in e.data);if(!t)return e;const r=e.data.incomplete_results;const s=e.data.repository_selection;const o=e.data.total_count;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;const n=Object.keys(e.data)[0];const i=e.data[n];e.data=i;if(typeof r!=="undefined"){e.data.incomplete_results=r}if(typeof s!=="undefined"){e.data.repository_selection=s}e.data.total_count=o;return e}function iterator(e,t,r){const s=typeof t==="function"?t.endpoint(r):e.request.endpoint(t,r);const o=typeof t==="function"?t:e.request;const n=s.method;const i=s.headers;let c=s.url;return{[Symbol.asyncIterator]:()=>({next(){if(!c){return Promise.resolve({done:true})}return o({method:n,url:c,headers:i}).then(normalizePaginatedListResponse).then(e=>{c=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:e}})}})}}function paginate(e,t,r,s){if(typeof r==="function"){s=r;r=undefined}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),s)}function gather(e,t,r,s){return r.next().then(o=>{if(o.done){return t}let n=false;function done(){n=true}t=t.concat(s?s(o.value,done):o.value.data);if(n){return t}return gather(e,t,r,s)})}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=r;t.paginateRest=paginateRest},323:function(e){"use strict";var t=e.exports=function(e){return e!==null&&typeof e==="object"&&typeof e.pipe==="function"};t.writable=function(e){return t(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object"};t.readable=function(e){return t(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object"};t.duplex=function(e){return t.writable(e)&&t.readable(e)};t.transform=function(e){return t.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object"}},357:function(e){e.exports=require("assert")},363:function(e){e.exports=register;function register(e,t,r,s){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!s){s={}}if(Array.isArray(t)){return t.reverse().reduce(function(t,r){return register.bind(null,e,r,t,s)},r)()}return Promise.resolve().then(function(){if(!e.registry[t]){return r(s)}return e.registry[t].reduce(function(e,t){return t.hook.bind(null,e,s)},r)()})}},385:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var s=_interopDefault(r(696));var o=r(796);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce((t,r)=>{t[r.toLowerCase()]=e[r];return t},{})}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach(o=>{if(s(t[o])){if(!(o in e))Object.assign(r,{[o]:t[o]});else r[o]=mergeDeep(e[o],t[o])}else{Object.assign(r,{[o]:t[o]})}});return r}function merge(e,t,r){if(typeof t==="string"){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);const s=mergeDeep(e||{},r);if(e&&e.mediaType.previews.length){s.mediaType.previews=e.mediaType.previews.filter(e=>!s.mediaType.previews.includes(e)).concat(s.mediaType.previews)}s.mediaType.previews=s.mediaType.previews.map(e=>e.replace(/-preview/,""));return s}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const s=Object.keys(t);if(s.length===0){return e}return e+r+s.map(e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`}).join("&")}const n=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(n);if(!t){return[]}return t.map(removeNonChars).reduce((e,t)=>e.concat(t),[])}function omit(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>{t[r]=e[r];return t},{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e}).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,s){var o=e[r],n=[];if(isDefined(o)&&o!==""){if(typeof o==="string"||typeof o==="number"||typeof o==="boolean"){o=o.toString();if(s&&s!=="*"){o=o.substring(0,parseInt(s,10))}n.push(encodeValue(t,o,isKeyOperator(t)?r:""))}else{if(s==="*"){if(Array.isArray(o)){o.filter(isDefined).forEach(function(e){n.push(encodeValue(t,e,isKeyOperator(t)?r:""))})}else{Object.keys(o).forEach(function(e){if(isDefined(o[e])){n.push(encodeValue(t,o[e],e))}})}}else{const e=[];if(Array.isArray(o)){o.filter(isDefined).forEach(function(r){e.push(encodeValue(t,r))})}else{Object.keys(o).forEach(function(r){if(isDefined(o[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,o[r].toString()))}})}if(isKeyOperator(t)){n.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){n.push(e.join(","))}}}}else{if(t===";"){if(isDefined(o)){n.push(encodeUnreserved(r))}}else if(o===""&&(t==="&"||t==="?")){n.push(encodeUnreserved(r)+"=")}else if(o===""){n.push("")}}return n}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,s,o){if(s){let e="";const o=[];if(r.indexOf(s.charAt(0))!==-1){e=s.charAt(0);s=s.substr(1)}s.split(/,/g).forEach(function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);o.push(getValues(t,e,s[1],s[2]||s[3]))});if(e&&e!=="+"){var n=",";if(e==="?"){n="&"}else if(e!=="#"){n=e}return(o.length!==0?e:"")+o.join(n)}else{return o.join(",")}}else{return encodeReserved(o)}})}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{+$1}");let s=Object.assign({},e.headers);let o;let n=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(n);if(!/^http/.test(r)){r=e.baseUrl+r}const c=Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl");const a=omit(n,c);const u=/application\/octet-stream/i.test(s.accept);if(!u){if(e.mediaType.format){s.accept=s.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")}if(e.mediaType.previews.length){const t=s.accept.match(/[\w-]+(?=-preview)/g)||[];s.accept=t.concat(e.mediaType.previews).map(t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`}).join(",")}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,a)}else{if("data"in a){o=a.data}else{if(Object.keys(a).length){o=a}else{s["content-length"]=0}}}if(!s["content-type"]&&typeof o!=="undefined"){s["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof o==="undefined"){o=""}return Object.assign({method:t,url:r,headers:s},typeof o!=="undefined"?{body:o}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const s=endpointWithDefaults.bind(null,r);return Object.assign(s,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}const i="6.0.3";const c=`octokit-endpoint.js/${i} ${o.getUserAgent()}`;const a={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":c},mediaType:{format:"",previews:[]}};const u=withDefaults(null,a);t.endpoint=u},389:function(e,t,r){"use strict";const s=r(747);const o=r(866);function readShebang(e){const t=150;let r;if(Buffer.alloc){r=Buffer.alloc(t)}else{r=new Buffer(t);r.fill(0)}let n;try{n=s.openSync(e,"r");s.readSync(n,r,0,t,0);s.closeSync(n)}catch(e){}return o(r.toString())}e.exports=readShebang},413:function(e){e.exports=require("stream")},427:function(e,t,r){"use strict";const s=r(669);let o;if(typeof s.getSystemErrorName==="function"){e.exports=s.getSystemErrorName}else{try{o=process.binding("uv");if(typeof o.errname!=="function"){throw new TypeError("uv.errname is not a function")}}catch(e){console.error("execa/lib/errname: unable to establish process.binding('uv')",e);o=null}e.exports=(e=>errname(o,e))}e.exports.__test__=errname;function errname(e,t){if(e){return e.errname(t)}if(!(t<0)){throw new Error("err >= 0")}return`Unknown system error ${t}`}},431:function(e,t,r){"use strict";var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=s(r(87));function issueCommand(e,t,r){const s=new Command(e,t,r);process.stdout.write(s.toString()+o.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const n="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=n+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const s=this.properties[r];if(s){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(s)}`}}}}e+=`${n}${escapeData(this.message)}`;return e}}function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function escapeData(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},448:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(796);var o=r(523);var n=r(753);var i=r(898);var c=r(813);function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);if(t)s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});r.push.apply(r,s)}return r}function _objectSpread2(e){for(var t=1;t{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=(async()=>({type:"unauthenticated"}))}else{const r=c.createTokenAuth(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const r=e.authStrategy(Object.assign({request:this.request},e.auth));t.wrap("request",r.hook);this.auth=r}const u=this.constructor;u.plugins.forEach(t=>{Object.assign(this,t(this,e))})}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugin(...e){var t;const r=this.plugins;const s=(t=class extends(this){},t.plugins=r.concat(e.filter(e=>!r.includes(e))),t);return s}}Octokit.VERSION=a;Octokit.plugins=[];t.Octokit=Octokit},453:function(e,t,r){var s=r(969);var o=r(562);var n=r(747);var i=function(){};var c=/^v?\.0/.test(process.version);var a=function(e){return typeof e==="function"};var u=function(e){if(!c)return false;if(!n)return false;return(e instanceof(n.ReadStream||i)||e instanceof(n.WriteStream||i))&&a(e.close)};var l=function(e){return e.setHeader&&a(e.abort)};var p=function(e,t,r,n){n=s(n);var c=false;e.on("close",function(){c=true});o(e,{readable:t,writable:r},function(e){if(e)return n(e);c=true;n()});var p=false;return function(t){if(c)return;if(p)return;p=true;if(u(e))return e.close(i);if(l(e))return e.abort();if(a(e.destroy))return e.destroy();n(t||new Error("stream was destroyed"))}};var f=function(e){e()};var d=function(e,t){return e.pipe(t)};var h=function(){var e=Array.prototype.slice.call(arguments);var t=a(e[e.length-1]||i)&&e.pop()||i;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var s=e.map(function(o,n){var i=n0;return p(o,i,c,function(e){if(!r)r=e;if(e)s.forEach(f);if(i)return;s.forEach(f);t(r)})});return e.reduce(d)};e.exports=h},454:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var s=_interopDefault(r(413));var o=_interopDefault(r(605));var n=_interopDefault(r(835));var i=_interopDefault(r(211));var c=_interopDefault(r(761));const a=s.Readable;const u=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const e=arguments[0];const t=arguments[1];const r=[];let s=0;if(e){const t=e;const o=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},o=r.size;let n=o===undefined?0:o;var i=r.timeout;let c=i===undefined?0:i;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e)) ;else if(Buffer.isBuffer(e)) ;else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof s) ;else{e=Buffer.from(String(e))}this[f]={body:e,disturbed:false,error:null};this.size=n;this.timeout=c;if(e instanceof s){e.on("error",function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[f].error=r})}}Body.prototype={get body(){return this[f].body},get bodyUsed(){return this[f].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[u]:t})})},json(){var e=this;return consumeBody.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(e){return e.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then(function(t){return convertBody(t,e.headers)})}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[f].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[f].disturbed=true;if(this[f].error){return Body.Promise.reject(this[f].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof s)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let o=0;let n=false;return new Body.Promise(function(s,i){let c;if(e.timeout){c=setTimeout(function(){n=true;i(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)}t.on("error",function(t){if(t.name==="AbortError"){n=true;i(t)}else{i(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}});t.on("data",function(t){if(n||t===null){return}if(e.size&&o+t.length>e.size){n=true;i(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}o+=t.length;r.push(t)});t.on("end",function(){if(n){return}clearTimeout(c);try{s(Buffer.concat(r,o))}catch(t){i(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}})})}function convertBody(e,t){if(typeof p!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let s="utf-8";let o,n;if(r){o=/charset=([^;]*)/i.exec(r)}n=e.slice(0,1024).toString();if(!o&&n){o=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[g]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null) ;else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[g],e);if(t===undefined){return null}return this[g][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let s=0;while(s1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[g]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[g][t].join(", ")}:function(t){return[t.toLowerCase(),e[g][t].join(", ")]})}const w=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(T);r[w]={target:e,kind:t,index:0};return r}const T=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==T){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[w];const t=e.target,r=e.kind,s=e.index;const o=getHeaders(t,r);const n=o.length;if(s>=n){return{value:undefined,done:true}}this[w].index=s+1;return{value:o[s],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(T,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[g]);const r=find(e[g],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(h.test(r)){continue}if(Array.isArray(e[r])){for(const s of e[r]){if(m.test(s)){continue}if(t[g][r]===undefined){t[g][r]=[s]}else{t[g][r].push(s)}}}else if(!m.test(e[r])){t[g][r]=[e[r]]}}return t}const E=Symbol("Response internals");const y=o.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;const s=new Headers(t.headers);if(e!=null&&!s.has("Content-Type")){const t=extractContentType(e);if(t){s.append("Content-Type",t)}}this[E]={url:t.url,status:r,statusText:t.statusText||y[r],headers:s,counter:t.counter}}get url(){return this[E].url||""}get status(){return this[E].status}get ok(){return this[E].status>=200&&this[E].status<300}get redirected(){return this[E].counter>0}get statusText(){return this[E].statusText}get headers(){return this[E].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const b=Symbol("Request internals");const v=n.parse;const _=n.format;const S="destroy"in s.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[b]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=v(e.href)}else{r=v(`${e}`)}e={}}else{r=v(e.url)}let s=t.method||e.method||"GET";s=s.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(s==="GET"||s==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let o=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,o,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const n=new Headers(t.headers||e.headers||{});if(o!=null&&!n.has("Content-Type")){const e=extractContentType(o);if(e){n.append("Content-Type",e)}}let i=isRequest(e)?e.signal:null;if("signal"in t)i=t.signal;if(i!=null&&!isAbortSignal(i)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[b]={method:s,redirect:t.redirect||e.redirect||"follow",headers:n,parsedURL:r,signal:i};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[b].method}get url(){return _(this[b].parsedURL)}get headers(){return this[b].headers}get redirect(){return this[b].redirect}get signal(){return this[b].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[b].parsedURL;const r=new Headers(e[b].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof s.Readable&&!S){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let o=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){o="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){o=String(t)}}if(o){r.set("Content-Length",o)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let n=e.agent;if(typeof n==="function"){n=n(t)}if(!r.has("Connection")&&!n){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:n})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const O=s.PassThrough;const P=n.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise(function(r,n){const a=new Request(e,t);const u=getNodeRequestOptions(a);const l=(u.protocol==="https:"?i:o).request;const p=a.signal;let f=null;const d=function abort(){let e=new AbortError("The user aborted a request.");n(e);if(a.body&&a.body instanceof s.Readable){a.body.destroy(e)}if(!f||!f.body)return;f.body.emit("error",e)};if(p&&p.aborted){d();return}const h=function abortAndFinalize(){d();finalize()};const m=l(u);let g;if(p){p.addEventListener("abort",h)}function finalize(){m.abort();if(p)p.removeEventListener("abort",h);clearTimeout(g)}if(a.timeout){m.once("socket",function(e){g=setTimeout(function(){n(new FetchError(`network timeout at: ${a.url}`,"request-timeout"));finalize()},a.timeout)})}m.on("error",function(e){n(new FetchError(`request to ${a.url} failed, reason: ${e.message}`,"system",e));finalize()});m.on("response",function(e){clearTimeout(g);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const s=t.get("Location");const o=s===null?null:P(a.url,s);switch(a.redirect){case"error":n(new FetchError(`redirect mode is set to error: ${a.url}`,"no-redirect"));finalize();return;case"manual":if(o!==null){try{t.set("Location",o)}catch(e){n(e)}}break;case"follow":if(o===null){break}if(a.counter>=a.follow){n(new FetchError(`maximum redirect reached at: ${a.url}`,"max-redirect"));finalize();return}const s={headers:new Headers(a.headers),follow:a.follow,counter:a.counter+1,agent:a.agent,compress:a.compress,method:a.method,body:a.body,signal:a.signal,timeout:a.timeout};if(e.statusCode!==303&&a.body&&getTotalBytes(a)===null){n(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&a.method==="POST"){s.method="GET";s.body=undefined;s.headers.delete("content-length")}r(fetch(new Request(o,s)));finalize();return}}e.once("end",function(){if(p)p.removeEventListener("abort",h)});let s=e.pipe(new O);const o={url:a.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:a.size,timeout:a.timeout,counter:a.counter};const i=t.get("Content-Encoding");if(!a.compress||a.method==="HEAD"||i===null||e.statusCode===204||e.statusCode===304){f=new Response(s,o);r(f);return}const u={flush:c.Z_SYNC_FLUSH,finishFlush:c.Z_SYNC_FLUSH};if(i=="gzip"||i=="x-gzip"){s=s.pipe(c.createGunzip(u));f=new Response(s,o);r(f);return}if(i=="deflate"||i=="x-deflate"){const t=e.pipe(new O);t.once("data",function(e){if((e[0]&15)===8){s=s.pipe(c.createInflate())}else{s=s.pipe(c.createInflateRaw())}f=new Response(s,o);r(f)});return}if(i=="br"&&typeof c.createBrotliDecompress==="function"){s=s.pipe(c.createBrotliDecompress());f=new Response(s,o);r(f);return}f=new Response(s,o);r(f)});writeToStream(m,a)})}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t.default=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},462:function(e){"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,r){e=`${e}`;e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(r){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},463:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var s=r(692);var o=_interopDefault(r(969));const n=o(e=>console.warn(e));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;Object.defineProperty(this,"code",{get(){n(new s.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=r.headers||{};const o=Object.assign({},r.request);if(r.request.headers.authorization){o.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=o}}t.RequestError=RequestError},469:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))s(t,e,r);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const i=n(r(262));const c=r(521);t.context=new i.Context;function getOctokit(e,t){return new c.GitHub(c.getOctokitOptions(e,t))}t.getOctokit=getOctokit},470:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(s.next(e))}catch(e){o(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=r(431);const i=o(r(87));const c=o(r(622));var a;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(a=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=n.toCommandValue(t);process.env[e]=r;n.issueCommand("set-env",{name:e},r)}t.exportVariable=exportVariable;function setSecret(e){n.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){n.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){n.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){n.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=a.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){n.issueCommand("debug",{},e)}t.debug=debug;function error(e){n.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){n.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+i.EOL)}t.info=info;function startGroup(e){n.issue("group",e)}t.startGroup=startGroup;function endGroup(){n.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){n.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},489:function(e,t,r){"use strict";const s=r(622);const o=r(814);const n=r(39)();function resolveCommandAttempt(e,t){const r=process.cwd();const i=e.options.cwd!=null;if(i){try{process.chdir(e.options.cwd)}catch(e){}}let c;try{c=o.sync(e.command,{path:(e.options.env||process.env)[n],pathExt:t?s.delimiter:undefined})}catch(e){}finally{process.chdir(r)}if(c){c=s.resolve(i?e.options.cwd:"",c)}return c}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},510:function(e){e.exports=addHook;function addHook(e,t,r,s){var o=s;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){s=function(e,t){return Promise.resolve().then(o.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){s=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then(function(e){r=e;return o(r,t)}).then(function(){return r})}}if(t==="error"){s=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return o(e,t)})}}e.registry[r].push({hook:s,orig:o})}},521:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))s(t,e,r);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.context=void 0;const i=n(r(262));const c=n(r(127));const a=r(448);const u=r(842);const l=r(299);t.context=new i.Context;const p=c.getApiBaseUrl();const f={baseUrl:p,request:{agent:c.getProxyAgent(p)}};t.GitHub=a.Octokit.plugin(u.restEndpointMethods,l.paginateRest).defaults(f);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const s=c.getAuthString(e,r);if(s){r.auth=s}return r}t.getOctokitOptions=getOctokitOptions},523:function(e,t,r){var s=r(363);var o=r(510);var n=r(763);var i=Function.bind;var c=i.bind(i);function bindApi(e,t,r){var s=c(n,null).apply(null,r?[t,r]:[t]);e.api={remove:s};e.remove=s;["before","error","after","wrap"].forEach(function(s){var n=r?[t,s,r]:[t,s];e[s]=e.api[s]=c(o,null).apply(null,n)})}function HookSingular(){var e="h";var t={registry:{}};var r=s.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=s.bind(null,e);bindApi(t,e);return t}var a=false;function Hook(){if(!a){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');a=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},539:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(835);const o=r(605);const n=r(211);const i=r(950);let c;var a;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(a=t.HttpCodes||(t.HttpCodes={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u=t.Headers||(t.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=i.getProxyUrl(s.parse(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const p=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect];const f=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout];const d=["OPTIONS","GET","DELETE","HEAD"];const h=10;const m=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",e=>{r=Buffer.concat([r,e])});this.message.on("end",()=>{e(r.toString())})})}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=s.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,s){return this.request(e,t,r,s)}async getJson(e,t={}){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,l.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let o=await this.post(e,s,r);return this._processResponse(o,this.requestOptions)}async putJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let o=await this.put(e,s,r);return this._processResponse(o,this.requestOptions)}async patchJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let o=await this.patch(e,s,r);return this._processResponse(o,this.requestOptions)}async request(e,t,r,o){if(this._disposed){throw new Error("Client has already been disposed.")}let n=s.parse(t);let i=this._prepareRequest(e,n,o);let c=this._allowRetries&&d.indexOf(e)!=-1?this._maxRetries+1:1;let u=0;let l;while(u0){const c=l.message.headers["location"];if(!c){break}let a=s.parse(c);if(n.protocol=="https:"&&n.protocol!=a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await l.readBody();if(a.hostname!==n.hostname){for(let e in o){if(e.toLowerCase()==="authorization"){delete o[e]}}}i=this._prepareRequest(e,a,o);l=await this.requestRaw(i,r);t--}if(f.indexOf(l.message.statusCode)==-1){return l}u+=1;if(u{let o=function(e,t){if(e){s(e)}r(t)};this.requestRawWithCallback(e,t,o)})}requestRawWithCallback(e,t,r){let s;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;let n=(e,t)=>{if(!o){o=true;r(e,t)}};let i=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);n(null,t)});i.on("socket",e=>{s=e});i.setTimeout(this._socketTimeout||3*6e4,()=>{if(s){s.end()}n(new Error("Request timeout: "+e.options.path),null)});i.on("error",function(e){n(e,null)});if(t&&typeof t==="string"){i.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){i.end()});t.pipe(i)}else{i.end()}}getAgent(e){let t=s.parse(e);return this._getAgent(t)}_prepareRequest(e,t,r){const s={};s.parsedUrl=t;const i=s.parsedUrl.protocol==="https:";s.httpModule=i?n:o;const c=i?443:80;s.options={};s.options.host=s.parsedUrl.hostname;s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):c;s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||"");s.options.method=e;s.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){s.options.headers["user-agent"]=this.userAgent}s.options.agent=this._getAgent(s.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(s.options)})}return s}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getExistingOrDefaultHeader(e,t,r){const s=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});let o;if(this.requestOptions&&this.requestOptions.headers){o=s(this.requestOptions.headers)[t]}return e[t]||o||r}_getAgent(e){let t;let s=i.getProxyUrl(e);let a=s&&s.hostname;if(this._keepAlive&&a){t=this._proxyAgent}if(this._keepAlive&&!a){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(a){if(!c){c=r(856)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:s.auth,host:s.hostname,port:s.port}};let o;const n=s.protocol==="https:";if(u){o=n?c.httpsOverHttps:c.httpsOverHttp}else{o=n?c.httpOverHttps:c.httpOverHttp}t=o(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new n.Agent(e):new o.Agent(e);this._agent=t}if(!t){t=u?n.globalAgent:o.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(h,e);const t=m*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise(async(r,s)=>{const o=e.message.statusCode;const n={statusCode:o,result:null,headers:{}};if(o==a.NotFound){r(n)}let i;let c;try{c=await e.readBody();if(c&&c.length>0){if(t&&t.deserializeDates){i=JSON.parse(c,HttpClient.dateTimeDeserializer)}else{i=JSON.parse(c)}n.result=i}n.headers=e.message.headers}catch(e){}if(o>299){let e;if(i&&i.message){e=i.message}else if(c&&c.length>0){e=c}else{e="Failed request: ("+o+")"}let t=new Error(e);t["statusCode"]=o;if(n.result){t["result"]=n.result}s(t)}else{r(n)}})}}t.HttpClient=HttpClient},562:function(e,t,r){var s=r(969);var o=function(){};var n=function(e){return e.setHeader&&typeof e.abort==="function"};var i=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var c=function(e,t,r){if(typeof t==="function")return c(e,null,t);if(!t)t={};r=s(r||o);var a=e._writableState;var u=e._readableState;var l=t.readable||t.readable!==false&&e.readable;var p=t.writable||t.writable!==false&&e.writable;var f=false;var d=function(){if(!e.writable)h()};var h=function(){p=false;if(!l)r.call(e)};var m=function(){l=false;if(!p)r.call(e)};var g=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var w=function(t){r.call(e,t)};var T=function(){process.nextTick(E)};var E=function(){if(f)return;if(l&&!(u&&(u.ended&&!u.destroyed)))return r.call(e,new Error("premature close"));if(p&&!(a&&(a.ended&&!a.destroyed)))return r.call(e,new Error("premature close"))};var y=function(){e.req.on("finish",h)};if(n(e)){e.on("complete",h);e.on("abort",T);if(e.req)y();else e.on("request",y)}else if(p&&!a){e.on("end",d);e.on("close",d)}if(i(e))e.on("exit",g);e.on("end",m);e.on("finish",h);if(t.error!==false)e.on("error",w);e.on("close",T);return function(){f=true;e.removeListener("complete",h);e.removeListener("abort",T);e.removeListener("request",y);if(e.req)e.req.removeListener("finish",h);e.removeListener("end",d);e.removeListener("close",d);e.removeListener("finish",h);e.removeListener("exit",g);e.removeListener("end",m);e.removeListener("error",w);e.removeListener("close",T)}};e.exports=c},568:function(e,t,r){"use strict";const s=r(622);const o=r(948);const n=r(489);const i=r(462);const c=r(389);const a=r(280);const u=process.platform==="win32";const l=/\.(?:com|exe)$/i;const p=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;const f=o(()=>a.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",true))||false;function detectShebang(e){e.file=n(e);const t=e.file&&c(e.file);if(t){e.args.unshift(e.file);e.command=t;return n(e)}return e.file}function parseNonShell(e){if(!u){return e}const t=detectShebang(e);const r=!l.test(t);if(e.options.forceShell||r){const r=p.test(t);e.command=s.normalize(e.command);e.command=i.command(e.command);e.args=e.args.map(e=>i.argument(e,r));const o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parseShell(e){if(f){return e}const t=[e.command].concat(e.args).join(" ");if(u){e.command=typeof e.options.shell==="string"?e.options.shell:process.env.comspec||"cmd.exe";e.args=["/d","/s","/c",`"${t}"`];e.options.windowsVerbatimArguments=true}else{if(typeof e.options.shell==="string"){e.command=e.options.shell}else if(process.platform==="android"){e.command="/system/bin/sh"}else{e.command="/bin/sh"}e.args=["-c",t]}return e}function parse(e,t,r){if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=Object.assign({},r);const s={command:e,args:t,options:r,file:undefined,original:{command:e,args:t}};return r.shell?parseShell(s):parseNonShell(s)}e.exports=parse},605:function(e){e.exports=require("http")},614:function(e){e.exports=require("events")},621:function(e,t,r){"use strict";const s=r(622);const o=r(39);e.exports=(e=>{e=Object.assign({cwd:process.cwd(),path:process.env[o()]},e);let t;let r=s.resolve(e.cwd);const n=[];while(t!==r){n.push(s.join(r,"node_modules/.bin"));t=r;r=s.resolve(r,"..")}n.push(s.dirname(process.execPath));return n.concat(e.path).join(s.delimiter)});e.exports.env=(t=>{t=Object.assign({env:process.env},t);const r=Object.assign({},t.env);const s=o({env:r});t.path=r[s];r[s]=e.exports(t);return r})},622:function(e){e.exports=require("path")},631:function(e){e.exports=require("net")},654:function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},669:function(e){e.exports=require("util")},672:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(s.next(e))}catch(e){o(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())})};var o;Object.defineProperty(t,"__esModule",{value:true});const n=r(357);const i=r(747);const c=r(622);o=i.promises,t.chmod=o.chmod,t.copyFile=o.copyFile,t.lstat=o.lstat,t.mkdir=o.mkdir,t.readdir=o.readdir,t.readlink=o.readlink,t.rename=o.rename,t.rmdir=o.rmdir,t.stat=o.stat,t.symlink=o.symlink,t.unlink=o.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return s(this,void 0,void 0,function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true})}t.exists=exists;function isDirectory(e,r=false){return s(this,void 0,void 0,function*(){const s=r?yield t.stat(e):yield t.lstat(e);return s.isDirectory()})}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function mkdirP(e,r=1e3,o=1){return s(this,void 0,void 0,function*(){n.ok(e,"a path argument must be provided");e=c.resolve(e);if(o>=r)return t.mkdir(e);try{yield t.mkdir(e);return}catch(s){switch(s.code){case"ENOENT":{yield mkdirP(c.dirname(e),r,o+1);yield t.mkdir(e);return}default:{let r;try{r=yield t.stat(e)}catch(e){throw s}if(!r.isDirectory())throw s}}}})}t.mkdirP=mkdirP;function tryGetExecutablePath(e,r){return s(this,void 0,void 0,function*(){let s=undefined;try{s=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(s&&s.isFile()){if(t.IS_WINDOWS){const t=c.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t)){return e}}else{if(isUnixExecutable(s)){return e}}}const o=e;for(const n of r){e=o+n;s=undefined;try{s=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(s&&s.isFile()){if(t.IS_WINDOWS){try{const r=c.dirname(e);const s=c.basename(e).toUpperCase();for(const o of yield t.readdir(r)){if(s===o.toUpperCase()){e=c.join(r,o);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(s)){return e}}}}return""})}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},676:function(e,t,r){const s=r(454);const o=r(986);const n=r(469);const i=r(470);const c=r(157);const{gitNoTag:a,changeFiles:u,getCommits:l,gitPrume:p}=r(121);const f=n.context.payload.pull_request;const d=f.number;const h=f.html_url;const m=f.comments_url;const g=i.getInput("token")||process.env.token;const w=async(e,t,r)=>{const o=await s(e,{method:"POST",headers:{Authorization:`token ${t}`,"Content-Type":"application/json"},body:JSON.stringify({body:r})});if(!o.ok){throw new Error(o.statusText)}const n=await o.json();return n};(async()=>{try{if(g===undefined){throw new Error("Missing auth thoken")}console.log("Generating changelog....");await o.exec(p);await o.exec(a);let e={};let t="";let r="";await o.exec(l(d),[],{listeners:{stdout:r=>{const s=r.toString().split("\n");s.forEach(t=>{if(t===""){return}const r=t.substr(0,40);if(r===""){return}const s=t.substr(41);e[r]={message:s}});t=`${t}${r.toString()}`},stderr:e=>{r=`${r}${e.toString()}`}}});if(r!==""){throw new Error(r)}const s=Object.keys(e).map(t=>new Promise((s,n)=>{o.exec(u(t),[],{listeners:{stdout:r=>{e[t].files=r.toString().split("\n").filter(e=>e);s()},stderr:e=>{r=`${r}${e.toString()}`}}})}));await Promise.all(s);await w(m,g,c(e,h))}catch(e){console.log(e);process.exit(1)}})()},692:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},696:function(e){"use strict";function isObject(e){return e!=null&&typeof e==="object"&&Array.isArray(e)===false}function isObjectObject(e){return isObject(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}e.exports=isPlainObject},697:function(e){"use strict";e.exports=((e,t)=>{t=t||(()=>{});return e.then(e=>new Promise(e=>{e(t())}).then(()=>e),e=>new Promise(e=>{e(t())}).then(()=>{throw e}))})},742:function(e,t,r){var s=r(747);var o;if(process.platform==="win32"||global.TESTING_WINDOWS){o=r(818)}else{o=r(197)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,r){if(typeof t==="function"){r=t;t={}}if(!r){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise(function(r,s){isexe(e,t||{},function(e,t){if(e){s(e)}else{r(t)}})})}o(e,t||{},function(e,s){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;s=false}}r(e,s)})}function sync(e,t){try{return o.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},747:function(e){e.exports=require("fs")},753:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var s=r(385);var o=r(796);var n=_interopDefault(r(696));var i=_interopDefault(r(454));var c=r(463);const a="5.4.5";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){if(n(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let t={};let r;let s;const o=e.request&&e.request.fetch||i;return o(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(o=>{s=o.url;r=o.status;for(const e of o.headers){t[e[0]]=e[1]}if(r===204||r===205){return}if(e.method==="HEAD"){if(r<400){return}throw new c.RequestError(o.statusText,r,{headers:t,request:e})}if(r===304){throw new c.RequestError("Not modified",r,{headers:t,request:e})}if(r>=400){return o.text().then(s=>{const o=new c.RequestError(s,r,{headers:t,request:e});try{let e=JSON.parse(o.message);Object.assign(o,e);let t=e.errors;o.message=o.message+": "+t.map(JSON.stringify).join(", ")}catch(e){}throw o})}const n=o.headers.get("content-type");if(/application\/json/.test(n)){return o.json()}if(!n||/^text\/|charset=utf-8$/.test(n)){return o.text()}return getBufferResponse(o)}).then(e=>{return{status:r,url:s,headers:t,data:e}}).catch(r=>{if(r instanceof c.RequestError){throw r}throw new c.RequestError(r.message,500,{headers:t,request:e})})}function withDefaults(e,t){const r=e.defaults(t);const s=function(e,t){const s=r.merge(e,t);if(!s.request||!s.request.hook){return fetchWrapper(r.parse(s))}const o=(e,t)=>{return fetchWrapper(r.parse(r.merge(e,t)))};Object.assign(o,{endpoint:r,defaults:withDefaults.bind(null,r)});return s.request.hook(o,s)};return Object.assign(s,{endpoint:r,defaults:withDefaults.bind(null,r)})}const u=withDefaults(s.endpoint,{headers:{"user-agent":`octokit-request.js/${a} ${o.getUserAgent()}`}});t.request=u},761:function(e){e.exports=require("zlib")},763:function(e){e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var s=e.registry[t].map(function(e){return e.orig}).indexOf(r);if(s===-1){return}e.registry[t].splice(s,1)}},768:function(e){"use strict";e.exports=function(e){var t=typeof e==="string"?"\n":"\n".charCodeAt();var r=typeof e==="string"?"\r":"\r".charCodeAt();if(e[e.length-1]===t){e=e.slice(0,e.length-1)}if(e[e.length-1]===r){e=e.slice(0,e.length-1)}return e}},796:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var s=_interopDefault(r(2));function getUserAgent(){try{return`Node.js/${process.version.substr(1)} (${s()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}return""}}t.getUserAgent=getUserAgent},813:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});async function auth(e){const t=e.split(/\./).length===3?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,s){const o=t.endpoint.merge(r,s);o.headers.authorization=withAuthorizationPrefix(e);return t(o)}const r=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=r},814:function(e,t,r){e.exports=which;which.sync=whichSync;var s=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";var o=r(622);var n=s?";":":";var i=r(742);function getNotFoundError(e){var t=new Error("not found: "+e);t.code="ENOENT";return t}function getPathInfo(e,t){var r=t.colon||n;var o=t.path||process.env.PATH||"";var i=[""];o=o.split(r);var c="";if(s){o.unshift(process.cwd());c=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM";i=c.split(r);if(e.indexOf(".")!==-1&&i[0]!=="")i.unshift("")}if(e.match(/\//)||s&&e.match(/\\/))o=[""];return{env:o,ext:i,extExe:c}}function which(e,t,r){if(typeof t==="function"){r=t;t={}}var s=getPathInfo(e,t);var n=s.env;var c=s.ext;var a=s.extExe;var u=[];(function F(s,l){if(s===l){if(t.all&&u.length)return r(null,u);else return r(getNotFoundError(e))}var p=n[s];if(p.charAt(0)==='"'&&p.slice(-1)==='"')p=p.slice(1,-1);var f=o.join(p,e);if(!p&&/^\.[\\\/]/.test(e)){f=e.slice(0,2)+f}(function E(e,o){if(e===o)return F(s+1,l);var n=c[e];i(f+n,{pathExt:a},function(s,i){if(!s&&i){if(t.all)u.push(f+n);else return r(null,f+n)}return E(e+1,o)})})(0,c.length)})(0,n.length)}function whichSync(e,t){t=t||{};var r=getPathInfo(e,t);var s=r.env;var n=r.ext;var c=r.extExe;var a=[];for(var u=0,l=s.length;u{if(i.includes(t)){e[t]=r[t];return e}if(!e.variables){e.variables={}}e.variables[t]=r[t];return e},{});return e(s).then(e=>{if(e.data.errors){throw new GraphqlError(s,{data:e.data})}return e.data.data})}function withDefaults(e,t){const r=e.defaults(t);const o=(e,t)=>{return graphql(r,e,t)};return Object.assign(o,{defaults:withDefaults.bind(null,r),endpoint:s.request.endpoint})}const c=withDefaults(s.request,{headers:{"user-agent":`octokit-graphql.js/${n} ${o.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.graphql=c;t.withCustomRequest=withCustomRequest},948:function(e){"use strict";e.exports=function(e){try{return e()}catch(e){}}},950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(835);function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let o;if(t){o=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{o=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(o){r=s.parse(o)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let s=[e.hostname.toUpperCase()];if(typeof r==="number"){s.push(`${s[0]}:${r}`)}for(let e of t.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)){if(s.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},955:function(e,t,r){"use strict";const s=r(622);const o=r(129);const n=r(20);const i=r(768);const c=r(621);const a=r(323);const u=r(145);const l=r(697);const p=r(260);const f=r(427);const d=r(168);const h=1e3*1e3*10;function handleArgs(e,t,r){let o;r=Object.assign({extendEnv:true,env:{}},r);if(r.extendEnv){r.env=Object.assign({},process.env,r.env)}if(r.__winShell===true){delete r.__winShell;o={command:e,args:t,options:r,file:e,original:{cmd:e,args:t}}}else{o=n._parse(e,t,r)}r=Object.assign({maxBuffer:h,buffer:true,stripEof:true,preferLocal:true,localDir:o.options.cwd||process.cwd(),encoding:"utf8",reject:true,cleanup:true},o.options);r.stdio=d(r);if(r.preferLocal){r.env=c.env(Object.assign({},r,{cwd:r.localDir}))}if(r.detached){r.cleanup=false}if(process.platform==="win32"&&s.basename(o.command)==="cmd.exe"){o.args.unshift("/q")}return{cmd:o.command,args:o.args,opts:r,parsed:o}}function handleInput(e,t){if(t===null||t===undefined){return}if(a(t)){t.pipe(e.stdin)}else{e.stdin.end(t)}}function handleOutput(e,t){if(t&&e.stripEof){t=i(t)}return t}function handleShell(e,t,r){let s="/bin/sh";let o=["-c",t];r=Object.assign({},r);if(process.platform==="win32"){r.__winShell=true;s=process.env.comspec||"cmd.exe";o=["/s","/c",`"${t}"`];r.windowsVerbatimArguments=true}if(r.shell){s=r.shell;delete r.shell}return e(s,o,r)}function getStream(e,t,{encoding:r,buffer:s,maxBuffer:o}){if(!e[t]){return null}let n;if(!s){n=new Promise((r,s)=>{e[t].once("end",r).once("error",s)})}else if(r){n=u(e[t],{encoding:r,maxBuffer:o})}else{n=u.buffer(e[t],{maxBuffer:o})}return n.catch(e=>{e.stream=t;e.message=`${t} ${e.message}`;throw e})}function makeError(e,t){const{stdout:r,stderr:s}=e;let o=e.error;const{code:n,signal:i}=e;const{parsed:c,joinedCmd:a}=t;const u=t.timedOut||false;if(!o){let e="";if(Array.isArray(c.opts.stdio)){if(c.opts.stdio[2]!=="inherit"){e+=e.length>0?s:`\n${s}`}if(c.opts.stdio[1]!=="inherit"){e+=`\n${r}`}}else if(c.opts.stdio!=="inherit"){e=`\n${s}${r}`}o=new Error(`Command failed: ${a}${e}`);o.code=n<0?f(n):n}o.stdout=r;o.stderr=s;o.failed=true;o.signal=i||null;o.cmd=a;o.timedOut=u;return o}function joinCmd(e,t){let r=e;if(Array.isArray(t)&&t.length>0){r+=" "+t.join(" ")}return r}e.exports=((e,t,r)=>{const s=handleArgs(e,t,r);const{encoding:i,buffer:c,maxBuffer:a}=s.opts;const u=joinCmd(e,t);let f;try{f=o.spawn(s.cmd,s.args,s.opts)}catch(e){return Promise.reject(e)}let d;if(s.opts.cleanup){d=p(()=>{f.kill()})}let h=null;let m=false;const g=()=>{if(h){clearTimeout(h);h=null}if(d){d()}};if(s.opts.timeout>0){h=setTimeout(()=>{h=null;m=true;f.kill(s.opts.killSignal)},s.opts.timeout)}const w=new Promise(e=>{f.on("exit",(t,r)=>{g();e({code:t,signal:r})});f.on("error",t=>{g();e({error:t})});if(f.stdin){f.stdin.on("error",t=>{g();e({error:t})})}});function destroy(){if(f.stdout){f.stdout.destroy()}if(f.stderr){f.stderr.destroy()}}const T=()=>l(Promise.all([w,getStream(f,"stdout",{encoding:i,buffer:c,maxBuffer:a}),getStream(f,"stderr",{encoding:i,buffer:c,maxBuffer:a})]).then(e=>{const t=e[0];t.stdout=e[1];t.stderr=e[2];if(t.error||t.code!==0||t.signal!==null){const e=makeError(t,{joinedCmd:u,parsed:s,timedOut:m});e.killed=e.killed||f.killed;if(!s.opts.reject){return e}throw e}return{stdout:handleOutput(s.opts,t.stdout),stderr:handleOutput(s.opts,t.stderr),code:0,failed:false,killed:false,signal:null,cmd:u,timedOut:false}}),destroy);n._enoent.hookChildProcess(f,s.parsed);handleInput(f,s.opts.input);f.then=((e,t)=>T().then(e,t));f.catch=(e=>T().catch(e));return f});e.exports.stdout=((...t)=>e.exports(...t).then(e=>e.stdout));e.exports.stderr=((...t)=>e.exports(...t).then(e=>e.stderr));e.exports.shell=((t,r)=>handleShell(e.exports,t,r));e.exports.sync=((e,t,r)=>{const s=handleArgs(e,t,r);const n=joinCmd(e,t);if(a(s.opts.input)){throw new TypeError("The `input` option cannot be a stream in sync mode")}const i=o.spawnSync(s.cmd,s.args,s.opts);i.code=i.status;if(i.error||i.status!==0||i.signal!==null){const e=makeError(i,{joinedCmd:n,parsed:s});if(!s.opts.reject){return e}throw e}return{stdout:handleOutput(s.opts,i.stdout),stderr:handleOutput(s.opts,i.stderr),code:0,failed:false,signal:null,cmd:n,timedOut:false}});e.exports.shellSync=((t,r)=>handleShell(e.exports.sync,t,r))},966:function(e,t,r){"use strict";const{PassThrough:s}=r(413);e.exports=(e=>{e=Object.assign({},e);const{array:t}=e;let{encoding:r}=e;const o=r==="buffer";let n=false;if(t){n=!(r||o)}else{r=r||"utf8"}if(o){r=null}let i=0;const c=[];const a=new s({objectMode:n});if(r){a.setEncoding(r)}a.on("data",e=>{c.push(e);if(n){i=c.length}else{i+=e.length}});a.getBufferedValue=(()=>{if(t){return c}return o?Buffer.concat(c,i):c.join("")});a.getBufferedLength=(()=>i);return a})},969:function(e,t,r){var s=r(11);e.exports=s(once);e.exports.strict=s(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";t.onceError=r+" shouldn't be called more than once";t.called=false;return t}},986:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(s.next(e))}catch(e){o(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=o(r(9));function exec(e,t,r){return s(this,void 0,void 0,function*(){const s=n.argStringToArray(e);if(s.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const o=s[0];t=s.slice(1).concat(t||[]);const i=new n.ToolRunner(o,t,r);return i.exec()})}t.exec=exec}}); \ No newline at end of file