@@ -7191,27 +7191,27 @@ var require_signals2 = __commonJS({
71917191// node_modules/signal-exit/index.js
71927192var require_signal_exit = __commonJS({
71937193 "node_modules/signal-exit/index.js"(exports, module2) {
7194- var process3 = global.process;
7195- var processOk = function(process4 ) {
7196- return process4 && typeof process4 === "object" && typeof process4 .removeListener === "function" && typeof process4 .emit === "function" && typeof process4 .reallyExit === "function" && typeof process4 .listeners === "function" && typeof process4 .kill === "function" && typeof process4 .pid === "number" && typeof process4 .on === "function";
7194+ var process4 = global.process;
7195+ var processOk = function(process5 ) {
7196+ return process5 && typeof process5 === "object" && typeof process5 .removeListener === "function" && typeof process5 .emit === "function" && typeof process5 .reallyExit === "function" && typeof process5 .listeners === "function" && typeof process5 .kill === "function" && typeof process5 .pid === "number" && typeof process5 .on === "function";
71977197 };
7198- if (!processOk(process3 )) {
7198+ if (!processOk(process4 )) {
71997199 module2.exports = function() {
72007200 return function() {
72017201 };
72027202 };
72037203 } else {
72047204 assert = require("assert");
72057205 signals = require_signals2();
7206- isWin = /^win/i.test(process3 .platform);
7206+ isWin = /^win/i.test(process4 .platform);
72077207 EE = require("events");
72087208 if (typeof EE !== "function") {
72097209 EE = EE.EventEmitter;
72107210 }
7211- if (process3 .__signal_exit_emitter__) {
7212- emitter = process3 .__signal_exit_emitter__;
7211+ if (process4 .__signal_exit_emitter__) {
7212+ emitter = process4 .__signal_exit_emitter__;
72137213 } else {
7214- emitter = process3 .__signal_exit_emitter__ = new EE();
7214+ emitter = process4 .__signal_exit_emitter__ = new EE();
72157215 emitter.count = 0;
72167216 emitter.emitted = {};
72177217 }
@@ -7248,12 +7248,12 @@ var require_signal_exit = __commonJS({
72487248 loaded = false;
72497249 signals.forEach(function(sig) {
72507250 try {
7251- process3 .removeListener(sig, sigListeners[sig]);
7251+ process4 .removeListener(sig, sigListeners[sig]);
72527252 } catch (er) {
72537253 }
72547254 });
7255- process3 .emit = originalProcessEmit;
7256- process3 .reallyExit = originalProcessReallyExit;
7255+ process4 .emit = originalProcessEmit;
7256+ process4 .reallyExit = originalProcessReallyExit;
72577257 emitter.count -= 1;
72587258 };
72597259 module2.exports.unload = unload;
@@ -7270,15 +7270,15 @@ var require_signal_exit = __commonJS({
72707270 if (!processOk(global.process)) {
72717271 return;
72727272 }
7273- var listeners = process3 .listeners(sig);
7273+ var listeners = process4 .listeners(sig);
72747274 if (listeners.length === emitter.count) {
72757275 unload();
72767276 emit("exit", null, sig);
72777277 emit("afterexit", null, sig);
72787278 if (isWin && sig === "SIGHUP") {
72797279 sig = "SIGINT";
72807280 }
7281- process3 .kill(process3 .pid, sig);
7281+ process4 .kill(process4 .pid, sig);
72827282 }
72837283 };
72847284 });
@@ -7294,35 +7294,35 @@ var require_signal_exit = __commonJS({
72947294 emitter.count += 1;
72957295 signals = signals.filter(function(sig) {
72967296 try {
7297- process3 .on(sig, sigListeners[sig]);
7297+ process4 .on(sig, sigListeners[sig]);
72987298 return true;
72997299 } catch (er) {
73007300 return false;
73017301 }
73027302 });
7303- process3 .emit = processEmit;
7304- process3 .reallyExit = processReallyExit;
7303+ process4 .emit = processEmit;
7304+ process4 .reallyExit = processReallyExit;
73057305 };
73067306 module2.exports.load = load;
7307- originalProcessReallyExit = process3 .reallyExit;
7307+ originalProcessReallyExit = process4 .reallyExit;
73087308 processReallyExit = function processReallyExit2(code) {
73097309 if (!processOk(global.process)) {
73107310 return;
73117311 }
7312- process3 .exitCode = code || 0;
7313- emit("exit", process3 .exitCode, null);
7314- emit("afterexit", process3 .exitCode, null);
7315- originalProcessReallyExit.call(process3, process3 .exitCode);
7312+ process4 .exitCode = code || 0;
7313+ emit("exit", process4 .exitCode, null);
7314+ emit("afterexit", process4 .exitCode, null);
7315+ originalProcessReallyExit.call(process4, process4 .exitCode);
73167316 };
7317- originalProcessEmit = process3 .emit;
7317+ originalProcessEmit = process4 .emit;
73187318 processEmit = function processEmit2(ev, arg) {
73197319 if (ev === "exit" && processOk(global.process)) {
73207320 if (arg !== void 0) {
7321- process3 .exitCode = arg;
7321+ process4 .exitCode = arg;
73227322 }
73237323 var ret = originalProcessEmit.apply(this, arguments);
7324- emit("exit", process3 .exitCode, null);
7325- emit("afterexit", process3 .exitCode, null);
7324+ emit("exit", process4 .exitCode, null);
7325+ emit("afterexit", process4 .exitCode, null);
73267326 return ret;
73277327 } else {
73287328 return originalProcessEmit.apply(this, arguments);
@@ -15128,10 +15128,11 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
1512815128});
1512915129
1513015130// src/main.ts
15131- var import_process = __toESM(require("process"));
15131+ var import_process2 = __toESM(require("process"));
1513215132
1513315133// src/update.ts
1513415134var import_fs = require("fs");
15135+ var import_process = __toESM(require("process"));
1513515136var github = require_github();
1513615137var execa = require_execa();
1513715138var readPackage = require_read_pkg();
@@ -15159,10 +15160,11 @@ var getUserDetails = (mailList, user) => {
1515915160var matchExisting = (cont, name, fullName, email, url) => cont.name === fullName || cont.name.startsWith(name) || cont.email && cont.email === email || cont.url && cont.url === url;
1516015161var getGitHubContributors = async (token) => {
1516115162 const octokit = github.getOctokit(token);
15163+ const [owner, repo] = import_process.default.env.GITHUB_REPOSITORY.split("/");
1516215164 const contributorList = await octokit.paginate("GET /repos/{owner}/{repo}/contributors", {
1516315165 per_page: 100,
15164- owner: "netlify" ,
15165- repo: "cli"
15166+ owner,
15167+ repo
1516615168 });
1516715169 const contributors = await Promise.all(contributorList.filter(({ type }) => type === "User").map((user) => octokit.request("GET /users/{username}", { username: user.login }).then(({ data }) => data)));
1516815170 return contributors;
@@ -15194,7 +15196,7 @@ var updateContributors = async (token) => {
1519415196// src/main.ts
1519515197var core = require_core5();
1519615198var getInputs = () => {
15197- const githubToken = core.getInput("github-token") || import_process .default.env.GITHUB_TOKEN || "";
15199+ const githubToken = core.getInput("github-token") || import_process2 .default.env.GITHUB_TOKEN || "";
1519815200 return { githubToken };
1519915201};
1520015202var validateInputs = ({ githubToken }) => {
0 commit comments