mirror of
https://github.com/actions/labeler.git
synced 2025-12-11 12:07:32 +00:00
Bump typescript from 5.4.3 to 5.7.2 (#819)
* Bump typescript from 5.4.3 to 5.7.2 Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.4.3 to 5.7.2. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml) - [Commits](https://github.com/microsoft/TypeScript/compare/v5.4.3...v5.7.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * npm run build --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aparna Jyothi <aparnajyothi-y@github.com>
This commit is contained in:
289
dist/index.js
vendored
289
dist/index.js
vendored
@@ -22,13 +22,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
return new (P || (P = Promise))(function (resolve, reject) {
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
@@ -82,18 +92,28 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
||||||
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
||||||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
||||||
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
||||||
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
||||||
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
||||||
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
||||||
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
||||||
@@ -103,7 +123,7 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
|
|||||||
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.getPullRequests = void 0;
|
exports.getPullRequests = getPullRequests;
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const github = __importStar(__nccwpck_require__(5438));
|
const github = __importStar(__nccwpck_require__(5438));
|
||||||
const get_changed_files_1 = __nccwpck_require__(8622);
|
const get_changed_files_1 = __nccwpck_require__(8622);
|
||||||
@@ -138,7 +158,6 @@ function getPullRequests(client, prNumbers) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.getPullRequests = getPullRequests;
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@@ -164,13 +183,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
return new (P || (P = Promise))(function (resolve, reject) {
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
@@ -218,18 +247,30 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.toMatchConfig = exports.getLabelConfigMapFromObject = exports.getLabelConfigs = void 0;
|
exports.getLabelConfigs = void 0;
|
||||||
|
exports.getLabelConfigMapFromObject = getLabelConfigMapFromObject;
|
||||||
|
exports.toMatchConfig = toMatchConfig;
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const yaml = __importStar(__nccwpck_require__(1917));
|
const yaml = __importStar(__nccwpck_require__(1917));
|
||||||
const fs_1 = __importDefault(__nccwpck_require__(7147));
|
const fs_1 = __importDefault(__nccwpck_require__(7147));
|
||||||
@@ -308,13 +349,11 @@ function getLabelConfigMapFromObject(configObject) {
|
|||||||
}
|
}
|
||||||
return labelMap;
|
return labelMap;
|
||||||
}
|
}
|
||||||
exports.getLabelConfigMapFromObject = getLabelConfigMapFromObject;
|
|
||||||
function toMatchConfig(config) {
|
function toMatchConfig(config) {
|
||||||
const changedFilesConfig = (0, changedFiles_1.toChangedFilesMatchConfig)(config);
|
const changedFilesConfig = (0, changedFiles_1.toChangedFilesMatchConfig)(config);
|
||||||
const branchConfig = (0, branch_1.toBranchMatchConfig)(config);
|
const branchConfig = (0, branch_1.toBranchMatchConfig)(config);
|
||||||
return Object.assign(Object.assign({}, changedFilesConfig), branchConfig);
|
return Object.assign(Object.assign({}, changedFilesConfig), branchConfig);
|
||||||
}
|
}
|
||||||
exports.toMatchConfig = toMatchConfig;
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@@ -370,13 +409,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
return new (P || (P = Promise))(function (resolve, reject) {
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
@@ -433,15 +482,28 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.checkAllBranch = exports.checkAnyBranch = exports.getBranchName = exports.toBranchMatchConfig = void 0;
|
exports.toBranchMatchConfig = toBranchMatchConfig;
|
||||||
|
exports.getBranchName = getBranchName;
|
||||||
|
exports.checkAnyBranch = checkAnyBranch;
|
||||||
|
exports.checkAllBranch = checkAllBranch;
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const github = __importStar(__nccwpck_require__(5438));
|
const github = __importStar(__nccwpck_require__(5438));
|
||||||
function toBranchMatchConfig(config) {
|
function toBranchMatchConfig(config) {
|
||||||
@@ -459,7 +521,6 @@ function toBranchMatchConfig(config) {
|
|||||||
}
|
}
|
||||||
return branchConfig;
|
return branchConfig;
|
||||||
}
|
}
|
||||||
exports.toBranchMatchConfig = toBranchMatchConfig;
|
|
||||||
function getBranchName(branchBase) {
|
function getBranchName(branchBase) {
|
||||||
var _a, _b;
|
var _a, _b;
|
||||||
const pullRequest = github.context.payload.pull_request;
|
const pullRequest = github.context.payload.pull_request;
|
||||||
@@ -473,7 +534,6 @@ function getBranchName(branchBase) {
|
|||||||
return (_b = pullRequest.head) === null || _b === void 0 ? void 0 : _b.ref;
|
return (_b = pullRequest.head) === null || _b === void 0 ? void 0 : _b.ref;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.getBranchName = getBranchName;
|
|
||||||
function checkAnyBranch(regexps, branchBase) {
|
function checkAnyBranch(regexps, branchBase) {
|
||||||
const branchName = getBranchName(branchBase);
|
const branchName = getBranchName(branchBase);
|
||||||
if (!branchName) {
|
if (!branchName) {
|
||||||
@@ -491,7 +551,6 @@ function checkAnyBranch(regexps, branchBase) {
|
|||||||
core.debug(` "branch" patterns did not match against ${branchName}`);
|
core.debug(` "branch" patterns did not match against ${branchName}`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
exports.checkAnyBranch = checkAnyBranch;
|
|
||||||
function checkAllBranch(regexps, branchBase) {
|
function checkAllBranch(regexps, branchBase) {
|
||||||
const branchName = getBranchName(branchBase);
|
const branchName = getBranchName(branchBase);
|
||||||
if (!branchName) {
|
if (!branchName) {
|
||||||
@@ -509,7 +568,6 @@ function checkAllBranch(regexps, branchBase) {
|
|||||||
core.debug(` "branch" patterns matched against ${branchName}`);
|
core.debug(` "branch" patterns matched against ${branchName}`);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
exports.checkAllBranch = checkAllBranch;
|
|
||||||
function matchBranchPattern(matcher, branchName) {
|
function matchBranchPattern(matcher, branchName) {
|
||||||
core.debug(` - ${matcher}`);
|
core.debug(` - ${matcher}`);
|
||||||
if (matcher.test(branchName)) {
|
if (matcher.test(branchName)) {
|
||||||
@@ -544,13 +602,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
return new (P || (P = Promise))(function (resolve, reject) {
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
@@ -561,7 +629,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.checkIfAllGlobsMatchAllFiles = exports.checkIfAnyGlobMatchesAllFiles = exports.checkIfAllGlobsMatchAnyFile = exports.checkIfAnyGlobMatchesAnyFile = exports.checkAllChangedFiles = exports.checkAnyChangedFiles = exports.toChangedFilesMatchConfig = exports.getChangedFiles = void 0;
|
exports.getChangedFiles = getChangedFiles;
|
||||||
|
exports.toChangedFilesMatchConfig = toChangedFilesMatchConfig;
|
||||||
|
exports.checkAnyChangedFiles = checkAnyChangedFiles;
|
||||||
|
exports.checkAllChangedFiles = checkAllChangedFiles;
|
||||||
|
exports.checkIfAnyGlobMatchesAnyFile = checkIfAnyGlobMatchesAnyFile;
|
||||||
|
exports.checkIfAllGlobsMatchAnyFile = checkIfAllGlobsMatchAnyFile;
|
||||||
|
exports.checkIfAnyGlobMatchesAllFiles = checkIfAnyGlobMatchesAllFiles;
|
||||||
|
exports.checkIfAllGlobsMatchAllFiles = checkIfAllGlobsMatchAllFiles;
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const github = __importStar(__nccwpck_require__(5438));
|
const github = __importStar(__nccwpck_require__(5438));
|
||||||
const minimatch_1 = __nccwpck_require__(4501);
|
const minimatch_1 = __nccwpck_require__(4501);
|
||||||
@@ -588,7 +663,6 @@ function getChangedFiles(client, prNumber) {
|
|||||||
return changedFiles;
|
return changedFiles;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.getChangedFiles = getChangedFiles;
|
|
||||||
function toChangedFilesMatchConfig(config) {
|
function toChangedFilesMatchConfig(config) {
|
||||||
if (!config['changed-files'] || !config['changed-files'].length) {
|
if (!config['changed-files'] || !config['changed-files'].length) {
|
||||||
return {};
|
return {};
|
||||||
@@ -618,7 +692,6 @@ function toChangedFilesMatchConfig(config) {
|
|||||||
changedFiles: validChangedFilesConfigs
|
changedFiles: validChangedFilesConfigs
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
exports.toChangedFilesMatchConfig = toChangedFilesMatchConfig;
|
|
||||||
function checkAnyChangedFiles(changedFiles, globPatternsConfigs, dot) {
|
function checkAnyChangedFiles(changedFiles, globPatternsConfigs, dot) {
|
||||||
core.debug(` checking "changed-files" patterns`);
|
core.debug(` checking "changed-files" patterns`);
|
||||||
for (const globPatternsConfig of globPatternsConfigs) {
|
for (const globPatternsConfig of globPatternsConfigs) {
|
||||||
@@ -650,7 +723,6 @@ function checkAnyChangedFiles(changedFiles, globPatternsConfigs, dot) {
|
|||||||
core.debug(` "changed-files" did not match`);
|
core.debug(` "changed-files" did not match`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
exports.checkAnyChangedFiles = checkAnyChangedFiles;
|
|
||||||
function checkAllChangedFiles(changedFiles, globPatternsConfigs, dot) {
|
function checkAllChangedFiles(changedFiles, globPatternsConfigs, dot) {
|
||||||
core.debug(` checking "changed-files" patterns`);
|
core.debug(` checking "changed-files" patterns`);
|
||||||
for (const globPatternsConfig of globPatternsConfigs) {
|
for (const globPatternsConfig of globPatternsConfigs) {
|
||||||
@@ -682,7 +754,6 @@ function checkAllChangedFiles(changedFiles, globPatternsConfigs, dot) {
|
|||||||
core.debug(` "changed-files" patterns matched`);
|
core.debug(` "changed-files" patterns matched`);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
exports.checkAllChangedFiles = checkAllChangedFiles;
|
|
||||||
function checkIfAnyGlobMatchesAnyFile(changedFiles, globs, dot) {
|
function checkIfAnyGlobMatchesAnyFile(changedFiles, globs, dot) {
|
||||||
core.debug(` checking "any-glob-to-any-file" config patterns`);
|
core.debug(` checking "any-glob-to-any-file" config patterns`);
|
||||||
const matchers = globs.map(g => new minimatch_1.Minimatch(g, { dot }));
|
const matchers = globs.map(g => new minimatch_1.Minimatch(g, { dot }));
|
||||||
@@ -699,7 +770,6 @@ function checkIfAnyGlobMatchesAnyFile(changedFiles, globs, dot) {
|
|||||||
core.debug(` none of the patterns matched any of the files`);
|
core.debug(` none of the patterns matched any of the files`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
exports.checkIfAnyGlobMatchesAnyFile = checkIfAnyGlobMatchesAnyFile;
|
|
||||||
function checkIfAllGlobsMatchAnyFile(changedFiles, globs, dot) {
|
function checkIfAllGlobsMatchAnyFile(changedFiles, globs, dot) {
|
||||||
core.debug(` checking "all-globs-to-any-file" config patterns`);
|
core.debug(` checking "all-globs-to-any-file" config patterns`);
|
||||||
const matchers = globs.map(g => new minimatch_1.Minimatch(g, { dot }));
|
const matchers = globs.map(g => new minimatch_1.Minimatch(g, { dot }));
|
||||||
@@ -718,7 +788,6 @@ function checkIfAllGlobsMatchAnyFile(changedFiles, globs, dot) {
|
|||||||
core.debug(` none of the files matched all patterns`);
|
core.debug(` none of the files matched all patterns`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
exports.checkIfAllGlobsMatchAnyFile = checkIfAllGlobsMatchAnyFile;
|
|
||||||
function checkIfAnyGlobMatchesAllFiles(changedFiles, globs, dot) {
|
function checkIfAnyGlobMatchesAllFiles(changedFiles, globs, dot) {
|
||||||
core.debug(` checking "any-glob-to-all-files" config patterns`);
|
core.debug(` checking "any-glob-to-all-files" config patterns`);
|
||||||
const matchers = globs.map(g => new minimatch_1.Minimatch(g, { dot }));
|
const matchers = globs.map(g => new minimatch_1.Minimatch(g, { dot }));
|
||||||
@@ -737,7 +806,6 @@ function checkIfAnyGlobMatchesAllFiles(changedFiles, globs, dot) {
|
|||||||
core.debug(` none of the patterns matched all files`);
|
core.debug(` none of the patterns matched all files`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
exports.checkIfAnyGlobMatchesAllFiles = checkIfAnyGlobMatchesAllFiles;
|
|
||||||
function checkIfAllGlobsMatchAllFiles(changedFiles, globs, dot) {
|
function checkIfAllGlobsMatchAllFiles(changedFiles, globs, dot) {
|
||||||
core.debug(` checking "all-globs-to-all-files" config patterns`);
|
core.debug(` checking "all-globs-to-all-files" config patterns`);
|
||||||
const matchers = globs.map(g => new minimatch_1.Minimatch(g, { dot }));
|
const matchers = globs.map(g => new minimatch_1.Minimatch(g, { dot }));
|
||||||
@@ -754,7 +822,6 @@ function checkIfAllGlobsMatchAllFiles(changedFiles, globs, dot) {
|
|||||||
core.debug(` all patterns matched all files`);
|
core.debug(` all patterns matched all files`);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
exports.checkIfAllGlobsMatchAllFiles = checkIfAllGlobsMatchAllFiles;
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@@ -780,13 +847,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.getInputs = void 0;
|
exports.getInputs = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
@@ -824,13 +901,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.getPrNumbers = void 0;
|
exports.getPrNumbers = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
@@ -903,13 +990,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
return new (P || (P = Promise))(function (resolve, reject) {
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
@@ -930,7 +1027,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.checkAll = exports.checkAny = exports.checkMatchConfigs = exports.run = void 0;
|
exports.run = void 0;
|
||||||
|
exports.checkMatchConfigs = checkMatchConfigs;
|
||||||
|
exports.checkAny = checkAny;
|
||||||
|
exports.checkAll = checkAll;
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const github = __importStar(__nccwpck_require__(5438));
|
const github = __importStar(__nccwpck_require__(5438));
|
||||||
const pluginRetry = __importStar(__nccwpck_require__(6298));
|
const pluginRetry = __importStar(__nccwpck_require__(6298));
|
||||||
@@ -1018,7 +1118,6 @@ function checkMatchConfigs(changedFiles, matchConfigs, dot) {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
exports.checkMatchConfigs = checkMatchConfigs;
|
|
||||||
function checkMatch(changedFiles, matchConfig, dot) {
|
function checkMatch(changedFiles, matchConfig, dot) {
|
||||||
if (!Object.keys(matchConfig).length) {
|
if (!Object.keys(matchConfig).length) {
|
||||||
core.debug(` no "any" or "all" patterns to check`);
|
core.debug(` no "any" or "all" patterns to check`);
|
||||||
@@ -1067,7 +1166,6 @@ function checkAny(matchConfigs, changedFiles, dot) {
|
|||||||
core.debug(` "any" patterns did not match any configs`);
|
core.debug(` "any" patterns did not match any configs`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
exports.checkAny = checkAny;
|
|
||||||
// equivalent to "Array.every()" but expanded for debugging and clarity
|
// equivalent to "Array.every()" but expanded for debugging and clarity
|
||||||
function checkAll(matchConfigs, changedFiles, dot) {
|
function checkAll(matchConfigs, changedFiles, dot) {
|
||||||
core.debug(` checking "all" patterns`);
|
core.debug(` checking "all" patterns`);
|
||||||
@@ -1103,7 +1201,6 @@ function checkAll(matchConfigs, changedFiles, dot) {
|
|||||||
core.debug(` "all" patterns matched all configs`);
|
core.debug(` "all" patterns matched all configs`);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
exports.checkAll = checkAll;
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@@ -1114,7 +1211,8 @@ exports.checkAll = checkAll;
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.isObject = exports.kebabToCamel = exports.printPattern = void 0;
|
exports.kebabToCamel = exports.printPattern = void 0;
|
||||||
|
exports.isObject = isObject;
|
||||||
const printPattern = (matcher) => {
|
const printPattern = (matcher) => {
|
||||||
return (matcher.negate ? '!' : '') + matcher.pattern;
|
return (matcher.negate ? '!' : '') + matcher.pattern;
|
||||||
};
|
};
|
||||||
@@ -1126,7 +1224,6 @@ exports.kebabToCamel = kebabToCamel;
|
|||||||
function isObject(obj) {
|
function isObject(obj) {
|
||||||
return obj !== null && typeof obj === 'object' && !Array.isArray(obj);
|
return obj !== null && typeof obj === 'object' && !Array.isArray(obj);
|
||||||
}
|
}
|
||||||
exports.isObject = isObject;
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|||||||
8
package-lock.json
generated
8
package-lock.json
generated
@@ -32,7 +32,7 @@
|
|||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"prettier": "^3.2.5",
|
"prettier": "^3.2.5",
|
||||||
"ts-jest": "^29.1.2",
|
"ts-jest": "^29.1.2",
|
||||||
"typescript": "^5.4.3"
|
"typescript": "^5.7.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@aashutoshrathi/word-wrap": {
|
"node_modules/@aashutoshrathi/word-wrap": {
|
||||||
@@ -5301,9 +5301,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/typescript": {
|
"node_modules/typescript": {
|
||||||
"version": "5.4.3",
|
"version": "5.7.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz",
|
||||||
"integrity": "sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==",
|
"integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsc": "bin/tsc",
|
"tsc": "bin/tsc",
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"prettier": "^3.2.5",
|
"prettier": "^3.2.5",
|
||||||
"ts-jest": "^29.1.2",
|
"ts-jest": "^29.1.2",
|
||||||
"typescript": "^5.4.3"
|
"typescript": "^5.7.2"
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user