diff --git a/dist/0.index.js b/dist/0.index.js index 3c21d6295..4a5374991 100644 --- a/dist/0.index.js +++ b/dist/0.index.js @@ -136,10 +136,10 @@ class SetLatestPipelineStatus extends _types_generated__WEBPACK_IMPORTED_MODULE_ this.sha = ''; } } -const setLatestPipelineStatus = ({ sha, context = _constants__WEBPACK_IMPORTED_MODULE_1__/* .DEFAULT_PIPELINE_STATUS */ .$9, environment = _constants__WEBPACK_IMPORTED_MODULE_1__/* .PRODUCTION_ENVIRONMENT */ .Hc }) => __awaiter(void 0, void 0, void 0, function* () { - var _a, _b; +const setLatestPipelineStatus = (_a) => __awaiter(void 0, [_a], void 0, function* ({ sha, context = _constants__WEBPACK_IMPORTED_MODULE_1__/* .DEFAULT_PIPELINE_STATUS */ .$9, environment = _constants__WEBPACK_IMPORTED_MODULE_1__/* .PRODUCTION_ENVIRONMENT */ .Hc }) { + var _b, _c; const { data: deployments } = yield _octokit__WEBPACK_IMPORTED_MODULE_3__/* .octokit.repos.listDeployments */ .K.repos.listDeployments(Object.assign(Object.assign({ environment }, _actions_github__WEBPACK_IMPORTED_MODULE_2__.context.repo), _constants__WEBPACK_IMPORTED_MODULE_1__/* .GITHUB_OPTIONS */ .Cc)); - const deployment_id = (_a = deployments.find(Boolean)) === null || _a === void 0 ? void 0 : _a.id; + const deployment_id = (_b = deployments.find(Boolean)) === null || _b === void 0 ? void 0 : _b.id; if (!deployment_id) { _actions_core__WEBPACK_IMPORTED_MODULE_0__.info('No deployments found. Pipeline is clear!'); return; @@ -152,7 +152,7 @@ const setLatestPipelineStatus = ({ sha, context = _constants__WEBPACK_IMPORTED_M } const { state, description, target_url } = deploymentStatus; return _octokit__WEBPACK_IMPORTED_MODULE_3__/* .octokit.repos.createCommitStatus */ .K.repos.createCommitStatus(Object.assign({ sha, - context, state: (_b = deploymentStateToPipelineStateMap[state]) !== null && _b !== void 0 ? _b : 'pending', description, + context, state: (_c = deploymentStateToPipelineStateMap[state]) !== null && _c !== void 0 ? _c : 'pending', description, target_url }, _actions_github__WEBPACK_IMPORTED_MODULE_2__.context.repo)); }); const deploymentStateToPipelineStateMap = { diff --git a/dist/101.index.js b/dist/101.index.js index 56d022865..d8bd1685e 100644 --- a/dist/101.index.js +++ b/dist/101.index.js @@ -132,7 +132,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume class NotifyPipelineComplete extends _types_generated__WEBPACK_IMPORTED_MODULE_4__/* .HelperInputs */ .s { } -const notifyPipelineComplete = ({ context = _constants__WEBPACK_IMPORTED_MODULE_0__/* .DEFAULT_PIPELINE_STATUS */ .$9, description = _constants__WEBPACK_IMPORTED_MODULE_0__/* .DEFAULT_PIPELINE_DESCRIPTION */ .Km, target_url }) => __awaiter(void 0, void 0, void 0, function* () { +const notifyPipelineComplete = (_a) => __awaiter(void 0, [_a], void 0, function* ({ context = _constants__WEBPACK_IMPORTED_MODULE_0__/* .DEFAULT_PIPELINE_STATUS */ .$9, description = _constants__WEBPACK_IMPORTED_MODULE_0__/* .DEFAULT_PIPELINE_DESCRIPTION */ .Km, target_url }) { const { data } = yield _octokit__WEBPACK_IMPORTED_MODULE_3__/* .octokit.pulls.list */ .K.pulls.list(Object.assign({ state: 'open', per_page: 100 }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); const commitHashes = data.map(pullRequest => pullRequest.head.sha); return (0,bluebird__WEBPACK_IMPORTED_MODULE_2__.map)(commitHashes, (sha) => __awaiter(void 0, void 0, void 0, function* () { diff --git a/dist/12.index.js b/dist/12.index.js index 484f2f3d5..7001b3e14 100644 --- a/dist/12.index.js +++ b/dist/12.index.js @@ -134,11 +134,11 @@ class DeleteDeployment extends _types_generated__WEBPACK_IMPORTED_MODULE_3__/* . this.environment = ''; } } -const deleteDeployment = ({ sha, environment }) => __awaiter(void 0, void 0, void 0, function* () { - var _a; +const deleteDeployment = (_a) => __awaiter(void 0, [_a], void 0, function* ({ sha, environment }) { + var _b; const { data } = yield _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.repos.listDeployments */ .K.repos.listDeployments(Object.assign(Object.assign({ sha, environment }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo), _constants__WEBPACK_IMPORTED_MODULE_0__/* .GITHUB_OPTIONS */ .Cc)); - const deployment_id = (_a = data.find(Boolean)) === null || _a === void 0 ? void 0 : _a.id; + const deployment_id = (_b = data.find(Boolean)) === null || _b === void 0 ? void 0 : _b.id; if (deployment_id) { yield _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.repos.createDeploymentStatus */ .K.repos.createDeploymentStatus(Object.assign(Object.assign({ state: 'inactive', deployment_id }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo), _constants__WEBPACK_IMPORTED_MODULE_0__/* .GITHUB_OPTIONS */ .Cc)); return Promise.all([ diff --git a/dist/124.index.js b/dist/124.index.js index 981e94d95..f3e9c826b 100644 --- a/dist/124.index.js +++ b/dist/124.index.js @@ -139,10 +139,10 @@ class CreateProjectCardProps extends _types_generated__WEBPACK_IMPORTED_MODULE_5 this.project_destination_column_name = ''; } } -const createProjectCard = ({ project_name, project_destination_column_name, note }) => __awaiter(void 0, void 0, void 0, function* () { - var _a; +const createProjectCard = (_a) => __awaiter(void 0, [_a], void 0, function* ({ project_name, project_destination_column_name, note }) { + var _b; const columnsList = yield (0,_utils_get_project_columns__WEBPACK_IMPORTED_MODULE_1__/* .getProjectColumns */ .N)({ project_name }); - if (!((_a = columnsList === null || columnsList === void 0 ? void 0 : columnsList.data) === null || _a === void 0 ? void 0 : _a.length)) { + if (!((_b = columnsList === null || columnsList === void 0 ? void 0 : columnsList.data) === null || _b === void 0 ? void 0 : _b.length)) { _actions_core__WEBPACK_IMPORTED_MODULE_0__.error(`There are no columns associated to ${project_name} project.`); return; } @@ -259,7 +259,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume -const getProjectColumns = ({ project_name }) => __awaiter(void 0, void 0, void 0, function* () { +const getProjectColumns = (_a) => __awaiter(void 0, [_a], void 0, function* ({ project_name }) { const projectList = yield _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.projects.listForRepo */ .K.projects.listForRepo(Object.assign(Object.assign({ state: 'open', per_page: 100 }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo), _constants__WEBPACK_IMPORTED_MODULE_0__/* .GITHUB_OPTIONS */ .Cc)); const project = findProjectToModify(projectList, project_name); if (!project) { diff --git a/dist/150.index.js b/dist/150.index.js index bffeb2f86..6339b0b45 100644 --- a/dist/150.index.js +++ b/dist/150.index.js @@ -48,7 +48,7 @@ class CreatePR extends _types_generated__WEBPACK_IMPORTED_MODULE_3__/* .HelperIn this.body = ''; } } -const createPr = ({ title, body, head = _actions_github__WEBPACK_IMPORTED_MODULE_0__.context.ref.replace('refs/heads/', ''), base, return_full_payload }) => __awaiter(void 0, void 0, void 0, function* () { +const createPr = (_a) => __awaiter(void 0, [_a], void 0, function* ({ title, body, head = _actions_github__WEBPACK_IMPORTED_MODULE_0__.context.ref.replace('refs/heads/', ''), base, return_full_payload }) { const pr_base = base || (yield (0,_utils_get_default_branch__WEBPACK_IMPORTED_MODULE_2__/* .getDefaultBranch */ ._)()); yield updateHeadWithBaseBranch(pr_base, head); const { data } = yield _octokit__WEBPACK_IMPORTED_MODULE_1__/* .octokit.pulls.create */ .K.pulls.create(Object.assign({ title, diff --git a/dist/153.index.js b/dist/153.index.js index a599a3020..ca8bd6a67 100644 --- a/dist/153.index.js +++ b/dist/153.index.js @@ -142,7 +142,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume class AssignPrReviewer extends _types_generated__WEBPACK_IMPORTED_MODULE_8__/* .HelperInputs */ .s { } -const assignPrReviewers = ({ teams, login, number_of_assignees = '1', slack_webhook_url, pull_number = String(_actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number) }) => __awaiter(void 0, void 0, void 0, function* () { +const assignPrReviewers = (_a) => __awaiter(void 0, [_a], void 0, function* ({ teams, login, number_of_assignees = '1', slack_webhook_url, pull_number = String(_actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number) }) { const coreMemberLogins = yield (0,_utils_get_core_member_logins__WEBPACK_IMPORTED_MODULE_2__/* .getCoreMemberLogins */ .c)(_actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number, teams === null || teams === void 0 ? void 0 : teams.split('\n')); const { data: { user, labels } } = yield _octokit__WEBPACK_IMPORTED_MODULE_5__/* .octokit.pulls.get */ .K.pulls.get(Object.assign({ pull_number: _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); if (login && coreMemberLogins.includes(login)) { @@ -289,7 +289,7 @@ const getChangedFilepaths = (pull_number, ignore_deleted) => __awaiter(void 0, v const filesToMap = ignore_deleted ? changedFiles.filter(file => file.status !== 'removed') : changedFiles; return filesToMap.map(file => file.filename); }); -const paginateAllChangedFilepaths = (pull_number, page = 1) => __awaiter(void 0, void 0, void 0, function* () { +const paginateAllChangedFilepaths = (pull_number_1, ...args_1) => __awaiter(void 0, [pull_number_1, ...args_1], void 0, function* (pull_number, page = 1) { const response = yield _octokit__WEBPACK_IMPORTED_MODULE_1__/* .octokit.pulls.listFiles */ .K.pulls.listFiles(Object.assign({ pull_number, per_page: 100, page }, _actions_github__WEBPACK_IMPORTED_MODULE_0__.context.repo)); if (!response.data.length) { return []; @@ -423,7 +423,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume -const notifyUser = ({ login, pull_number, slack_webhook_url }) => __awaiter(void 0, void 0, void 0, function* () { +const notifyUser = (_a) => __awaiter(void 0, [_a], void 0, function* ({ login, pull_number, slack_webhook_url }) { _actions_core__WEBPACK_IMPORTED_MODULE_0__.info(`Notifying user ${login}...`); const { data: { email } } = yield _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.users.getByUsername */ .K.users.getByUsername({ username: login }); if (!email) { diff --git a/dist/180.index.js b/dist/180.index.js index e2d85b3f3..c67c8a1c2 100644 --- a/dist/180.index.js +++ b/dist/180.index.js @@ -106,14 +106,14 @@ const checkForExistingFailureStatus = (pullRequest, context) => __awaiter(void 0 } return false; }); -const getMergeSafetyStateAndMessage = (pullRequest, { paths, ignore_globs, override_filter_paths, override_filter_globs }) => __awaiter(void 0, void 0, void 0, function* () { - var _b; +const getMergeSafetyStateAndMessage = (pullRequest_1, _b) => __awaiter(void 0, [pullRequest_1, _b], void 0, function* (pullRequest, { paths, ignore_globs, override_filter_paths, override_filter_globs }) { + var _c; const { base: { repo: { default_branch, owner: { login: baseOwner } } }, head: { ref, user: { login: username } } } = pullRequest; const branchName = `${username}:${ref}`; const truncatedRef = ref.length > maxBranchNameLength ? `${ref.substring(0, maxBranchNameLength)}...` : ref; const truncatedBranchName = `${username}:${truncatedRef}`; const { data: { files: filesWhichBranchIsBehindOn } } = yield _octokit__WEBPACK_IMPORTED_MODULE_1__/* .octokit.repos.compareCommitsWithBasehead */ .K.repos.compareCommitsWithBasehead(Object.assign(Object.assign({}, _actions_github__WEBPACK_IMPORTED_MODULE_0__.context.repo), { basehead: `${branchName}...${baseOwner}:${default_branch}` })); - const fileNamesWhichBranchIsBehindOn = (_b = filesWhichBranchIsBehindOn === null || filesWhichBranchIsBehindOn === void 0 ? void 0 : filesWhichBranchIsBehindOn.map(file => file.filename)) !== null && _b !== void 0 ? _b : []; + const fileNamesWhichBranchIsBehindOn = (_c = filesWhichBranchIsBehindOn === null || filesWhichBranchIsBehindOn === void 0 ? void 0 : filesWhichBranchIsBehindOn.map(file => file.filename)) !== null && _c !== void 0 ? _c : []; const globalFilesOutdatedOnBranch = override_filter_globs ? micromatch__WEBPACK_IMPORTED_MODULE_2___default()(fileNamesWhichBranchIsBehindOn, override_filter_globs.split(/[\n,]/)) : override_filter_paths @@ -206,7 +206,7 @@ class SetCommitStatus extends _types_generated__WEBPACK_IMPORTED_MODULE_4__/* .H this.state = ''; } } -const setCommitStatus = ({ sha, context, state, description, target_url, skip_if_already_set }) => __awaiter(void 0, void 0, void 0, function* () { +const setCommitStatus = (_a) => __awaiter(void 0, [_a], void 0, function* ({ sha, context, state, description, target_url, skip_if_already_set }) { yield (0,bluebird__WEBPACK_IMPORTED_MODULE_2__.map)(context.split('\n').filter(Boolean), (context) => __awaiter(void 0, void 0, void 0, function* () { if (skip_if_already_set === 'true') { const check_runs = yield _octokit__WEBPACK_IMPORTED_MODULE_3__/* .octokit.checks.listForRef */ .K.checks.listForRef(Object.assign(Object.assign({}, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo), { ref: sha })); @@ -316,7 +316,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume }; -const paginateAllOpenPullRequests = (page = 1) => __awaiter(void 0, void 0, void 0, function* () { +const paginateAllOpenPullRequests = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (page = 1) { const response = yield _octokit__WEBPACK_IMPORTED_MODULE_0__/* .octokit.pulls.list */ .K.pulls.list(Object.assign({ state: 'open', sort: 'updated', direction: 'desc', per_page: 100, page }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); if (!response.data.length) { return []; diff --git a/dist/209.index.js b/dist/209.index.js index 31da9dd75..be07cbc02 100644 --- a/dist/209.index.js +++ b/dist/209.index.js @@ -53,7 +53,7 @@ class SetCommitStatus extends _types_generated__WEBPACK_IMPORTED_MODULE_4__/* .H this.state = ''; } } -const setCommitStatus = ({ sha, context, state, description, target_url, skip_if_already_set }) => __awaiter(void 0, void 0, void 0, function* () { +const setCommitStatus = (_a) => __awaiter(void 0, [_a], void 0, function* ({ sha, context, state, description, target_url, skip_if_already_set }) { yield (0,bluebird__WEBPACK_IMPORTED_MODULE_2__.map)(context.split('\n').filter(Boolean), (context) => __awaiter(void 0, void 0, void 0, function* () { if (skip_if_already_set === 'true') { const check_runs = yield _octokit__WEBPACK_IMPORTED_MODULE_3__/* .octokit.checks.listForRef */ .K.checks.listForRef(Object.assign(Object.assign({}, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo), { ref: sha })); diff --git a/dist/263.index.js b/dist/263.index.js index 02991c25a..cd483c2c2 100644 --- a/dist/263.index.js +++ b/dist/263.index.js @@ -140,10 +140,10 @@ class MoveProjectCardProps extends _types_generated__WEBPACK_IMPORTED_MODULE_5__ this.project_origin_column_name = ''; } } -const moveProjectCard = ({ project_destination_column_name, project_origin_column_name, project_name }) => __awaiter(void 0, void 0, void 0, function* () { - var _a; +const moveProjectCard = (_a) => __awaiter(void 0, [_a], void 0, function* ({ project_destination_column_name, project_origin_column_name, project_name }) { + var _b; const columnsList = yield (0,_utils_get_project_columns__WEBPACK_IMPORTED_MODULE_1__/* .getProjectColumns */ .N)({ project_name }); - if (!((_a = columnsList === null || columnsList === void 0 ? void 0 : columnsList.data) === null || _a === void 0 ? void 0 : _a.length)) { + if (!((_b = columnsList === null || columnsList === void 0 ? void 0 : columnsList.data) === null || _b === void 0 ? void 0 : _b.length)) { _actions_core__WEBPACK_IMPORTED_MODULE_0__.error(`There are no columns associated to ${project_name} project.`); return; } @@ -265,7 +265,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume -const getProjectColumns = ({ project_name }) => __awaiter(void 0, void 0, void 0, function* () { +const getProjectColumns = (_a) => __awaiter(void 0, [_a], void 0, function* ({ project_name }) { const projectList = yield _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.projects.listForRepo */ .K.projects.listForRepo(Object.assign(Object.assign({ state: 'open', per_page: 100 }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo), _constants__WEBPACK_IMPORTED_MODULE_0__/* .GITHUB_OPTIONS */ .Cc)); const project = findProjectToModify(projectList, project_name); if (!project) { diff --git a/dist/374.index.js b/dist/374.index.js index edec0d739..51fe02662 100644 --- a/dist/374.index.js +++ b/dist/374.index.js @@ -46,7 +46,7 @@ class IsUserInTeam extends _types_generated__WEBPACK_IMPORTED_MODULE_2__/* .Help this.team = ''; } } -const isUserInTeam = ({ login = _actions_github__WEBPACK_IMPORTED_MODULE_0__.context.actor, team }) => __awaiter(void 0, void 0, void 0, function* () { +const isUserInTeam = (_a) => __awaiter(void 0, [_a], void 0, function* ({ login = _actions_github__WEBPACK_IMPORTED_MODULE_0__.context.actor, team }) { const response = yield _octokit__WEBPACK_IMPORTED_MODULE_1__/* .octokit.teams.listMembersInOrg */ .K.teams.listMembersInOrg({ org: _actions_github__WEBPACK_IMPORTED_MODULE_0__.context.repo.owner, team_slug: team diff --git a/dist/420.index.js b/dist/420.index.js index de56f627f..ee7d3ff9b 100644 --- a/dist/420.index.js +++ b/dist/420.index.js @@ -134,7 +134,7 @@ class InitiateDeployment extends _types_generated__WEBPACK_IMPORTED_MODULE_3__/* this.environment = ''; } } -const initiateDeployment = ({ sha, state = 'in_progress', environment, environment_url, description, target_url }) => __awaiter(void 0, void 0, void 0, function* () { +const initiateDeployment = (_a) => __awaiter(void 0, [_a], void 0, function* ({ sha, state = 'in_progress', environment, environment_url, description, target_url }) { const { data } = yield _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.repos.createDeployment */ .K.repos.createDeployment(Object.assign(Object.assign({ ref: sha, environment, auto_merge: false, required_contexts: [] }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo), _constants__WEBPACK_IMPORTED_MODULE_0__/* .GITHUB_OPTIONS */ .Cc)); const deployment_id = 'ref' in data ? data.id : undefined; if (deployment_id) { diff --git a/dist/431.index.js b/dist/431.index.js index 0d0cad44e..a0a8ca510 100644 --- a/dist/431.index.js +++ b/dist/431.index.js @@ -53,7 +53,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume }; -const paginateAllReviews = (prNumber, page = 1) => __awaiter(void 0, void 0, void 0, function* () { +const paginateAllReviews = (prNumber_1, ...args_1) => __awaiter(void 0, [prNumber_1, ...args_1], void 0, function* (prNumber, page = 1) { const response = yield octokit/* octokit.pulls.listReviews */.K.pulls.listReviews(Object.assign({ pull_number: prNumber, per_page: 100, page }, github.context.repo)); if (!response.data.length) { return []; @@ -93,7 +93,7 @@ var approvals_satisfied_awaiter = (undefined && undefined.__awaiter) || function class ApprovalsSatisfied extends generated/* HelperInputs */.s { } -const approvalsSatisfied = ({ teams, number_of_reviewers = '1', pull_number } = {}) => approvals_satisfied_awaiter(void 0, void 0, void 0, function* () { +const approvalsSatisfied = (...args_1) => approvals_satisfied_awaiter(void 0, [...args_1], void 0, function* ({ teams, number_of_reviewers = '1', pull_number } = {}) { const prNumber = pull_number ? Number(pull_number) : github.context.issue.number; const reviews = yield paginateAllReviews(prNumber); const approverLogins = reviews @@ -247,7 +247,7 @@ const getChangedFilepaths = (pull_number, ignore_deleted) => __awaiter(void 0, v const filesToMap = ignore_deleted ? changedFiles.filter(file => file.status !== 'removed') : changedFiles; return filesToMap.map(file => file.filename); }); -const paginateAllChangedFilepaths = (pull_number, page = 1) => __awaiter(void 0, void 0, void 0, function* () { +const paginateAllChangedFilepaths = (pull_number_1, ...args_1) => __awaiter(void 0, [pull_number_1, ...args_1], void 0, function* (pull_number, page = 1) { const response = yield _octokit__WEBPACK_IMPORTED_MODULE_1__/* .octokit.pulls.listFiles */ .K.pulls.listFiles(Object.assign({ pull_number, per_page: 100, page }, _actions_github__WEBPACK_IMPORTED_MODULE_0__.context.repo)); if (!response.data.length) { return []; diff --git a/dist/461.index.js b/dist/461.index.js index aaa7393a1..964970349 100644 --- a/dist/461.index.js +++ b/dist/461.index.js @@ -148,13 +148,13 @@ const getCommentByUser = (login) => __awaiter(void 0, void 0, void 0, function* emptyResponse; return (_b = comments.data.find(comment => { var _a; return ((_a = comment === null || comment === void 0 ? void 0 : comment.user) === null || _a === void 0 ? void 0 : _a.login) === login; })) === null || _b === void 0 ? void 0 : _b.id; }); -const createPrComment = ({ body, sha, login }) => __awaiter(void 0, void 0, void 0, function* () { - var _c; +const createPrComment = (_c) => __awaiter(void 0, [_c], void 0, function* ({ body, sha, login }) { + var _d; if (!sha && !login) { return _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.issues.createComment */ .K.issues.createComment(Object.assign({ body, issue_number: _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); } const defaultPrNumber = _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number; - const prNumber = (_c = (yield getPrsByCommit(sha))) !== null && _c !== void 0 ? _c : defaultPrNumber; + const prNumber = (_d = (yield getPrsByCommit(sha))) !== null && _d !== void 0 ? _d : defaultPrNumber; const commentId = yield getCommentByUser(login); if (commentId) { return _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.issues.updateComment */ .K.issues.updateComment(Object.assign({ comment_id: commentId, body }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); diff --git a/dist/465.index.js b/dist/465.index.js index e0b1339bc..41e41ac64 100644 --- a/dist/465.index.js +++ b/dist/465.index.js @@ -48,7 +48,7 @@ class AreReviewersRequired extends _types_generated__WEBPACK_IMPORTED_MODULE_3__ this.teams = ''; } } -const areReviewersRequired = ({ teams }) => __awaiter(void 0, void 0, void 0, function* () { +const areReviewersRequired = (_a) => __awaiter(void 0, [_a], void 0, function* ({ teams }) { const prNumber = _actions_github__WEBPACK_IMPORTED_MODULE_2__.context.issue.number; const teamsList = teams === null || teams === void 0 ? void 0 : teams.split('\n'); const requiredCodeOwnersEntries = (yield (0,_utils_get_core_member_logins__WEBPACK_IMPORTED_MODULE_1__/* .getRequiredCodeOwnersEntries */ .q)(prNumber)).map(({ owners }) => owners).flat(); @@ -181,7 +181,7 @@ const getChangedFilepaths = (pull_number, ignore_deleted) => __awaiter(void 0, v const filesToMap = ignore_deleted ? changedFiles.filter(file => file.status !== 'removed') : changedFiles; return filesToMap.map(file => file.filename); }); -const paginateAllChangedFilepaths = (pull_number, page = 1) => __awaiter(void 0, void 0, void 0, function* () { +const paginateAllChangedFilepaths = (pull_number_1, ...args_1) => __awaiter(void 0, [pull_number_1, ...args_1], void 0, function* (pull_number, page = 1) { const response = yield _octokit__WEBPACK_IMPORTED_MODULE_1__/* .octokit.pulls.listFiles */ .K.pulls.listFiles(Object.assign({ pull_number, per_page: 100, page }, _actions_github__WEBPACK_IMPORTED_MODULE_0__.context.repo)); if (!response.data.length) { return []; diff --git a/dist/471.index.js b/dist/471.index.js index 4d6859777..6e8b01af6 100644 --- a/dist/471.index.js +++ b/dist/471.index.js @@ -139,13 +139,13 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume class DeleteStaleBranches extends _types_generated__WEBPACK_IMPORTED_MODULE_7__/* .HelperInputs */ .s { } -const deleteStaleBranches = ({ days = '30' } = {}) => __awaiter(void 0, void 0, void 0, function* () { +const deleteStaleBranches = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* ({ days = '30' } = {}) { const openPullRequests = yield (0,_utils_paginate_open_pull_requests__WEBPACK_IMPORTED_MODULE_4__/* .paginateAllOpenPullRequests */ .P)(); const openPullRequestBranches = new Set(openPullRequests.map(pr => pr.head.ref)); const allBranches = yield paginateAllUnprotectedBranches(); const defaultBranch = yield (0,_utils_get_default_branch__WEBPACK_IMPORTED_MODULE_5__/* .getDefaultBranch */ ._)(); const featureBranchesWithNoOpenPullRequest = allBranches.filter(({ name }) => !openPullRequestBranches.has(name) && name !== defaultBranch); - const branchesWithUpdatedDates = yield (0,bluebird__WEBPACK_IMPORTED_MODULE_3__.map)(featureBranchesWithNoOpenPullRequest, ({ name, commit: { sha } }) => __awaiter(void 0, void 0, void 0, function* () { + const branchesWithUpdatedDates = yield (0,bluebird__WEBPACK_IMPORTED_MODULE_3__.map)(featureBranchesWithNoOpenPullRequest, (_a) => __awaiter(void 0, [_a], void 0, function* ({ name, commit: { sha } }) { const { data: { committer: { date } } } = yield _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.git.getCommit */ .K.git.getCommit(Object.assign({ commit_sha: sha }, _actions_github__WEBPACK_IMPORTED_MODULE_0__.context.repo)); return { name, @@ -165,7 +165,7 @@ const branchIsTooOld = (dateLastUpdated, daysThreshold) => { const threshold = Number(daysThreshold) * _constants__WEBPACK_IMPORTED_MODULE_6__/* .SECONDS_IN_A_DAY */ .K5; return timeSinceLastUpdated > threshold; }; -const paginateAllUnprotectedBranches = (page = 1) => __awaiter(void 0, void 0, void 0, function* () { +const paginateAllUnprotectedBranches = (...args_2) => __awaiter(void 0, [...args_2], void 0, function* (page = 1) { const response = yield _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.repos.listBranches */ .K.repos.listBranches(Object.assign({ protected: false, per_page: 100, page }, _actions_github__WEBPACK_IMPORTED_MODULE_0__.context.repo)); if (!response.data.length) { return []; @@ -306,7 +306,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume }; -const paginateAllOpenPullRequests = (page = 1) => __awaiter(void 0, void 0, void 0, function* () { +const paginateAllOpenPullRequests = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (page = 1) { const response = yield _octokit__WEBPACK_IMPORTED_MODULE_0__/* .octokit.pulls.list */ .K.pulls.list(Object.assign({ state: 'open', sort: 'updated', direction: 'desc', per_page: 100, page }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); if (!response.data.length) { return []; diff --git a/dist/533.index.js b/dist/533.index.js index f6d58ac13..c16db488d 100644 --- a/dist/533.index.js +++ b/dist/533.index.js @@ -50,14 +50,14 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume class GeneratePathMatrix extends _types_generated__WEBPACK_IMPORTED_MODULE_5__/* .HelperInputs */ .s { } -const generatePathMatrix = ({ paths, globs, +const generatePathMatrix = (_a) => __awaiter(void 0, [_a], void 0, function* ({ paths, globs, /** paths that override the changed files filter, causing the action to return all paths */ override_filter_paths, override_filter_globs, /** paths that will be returned regardless of their adherence to the filter */ paths_no_filter, /** number of evenly-sized batches to separate matching paths into (returns comma-separated result) */ -batches }) => __awaiter(void 0, void 0, void 0, function* () { - var _a; +batches }) { + var _b; const pathsToUse = paths || globs; if (!pathsToUse) { _actions_core__WEBPACK_IMPORTED_MODULE_0__.error('Must supply one of paths, globs'); @@ -73,7 +73,7 @@ batches }) => __awaiter(void 0, void 0, void 0, function* () { : paths ? splitPaths.filter(path => changedFiles.some(changedFile => changedFile.startsWith(path))) : splitPaths.filter(glob => micromatch__WEBPACK_IMPORTED_MODULE_4___default()(changedFiles, glob).length > 0); - const extraPaths = (_a = paths_no_filter === null || paths_no_filter === void 0 ? void 0 : paths_no_filter.split(/[\n,]/)) !== null && _a !== void 0 ? _a : []; + const extraPaths = (_b = paths_no_filter === null || paths_no_filter === void 0 ? void 0 : paths_no_filter.split(/[\n,]/)) !== null && _b !== void 0 ? _b : []; const matrixValues = (0,lodash__WEBPACK_IMPORTED_MODULE_1__.uniq)(basePaths.concat(extraPaths)); if (batches) { return { @@ -183,7 +183,7 @@ const getChangedFilepaths = (pull_number, ignore_deleted) => __awaiter(void 0, v const filesToMap = ignore_deleted ? changedFiles.filter(file => file.status !== 'removed') : changedFiles; return filesToMap.map(file => file.filename); }); -const paginateAllChangedFilepaths = (pull_number, page = 1) => __awaiter(void 0, void 0, void 0, function* () { +const paginateAllChangedFilepaths = (pull_number_1, ...args_1) => __awaiter(void 0, [pull_number_1, ...args_1], void 0, function* (pull_number, page = 1) { const response = yield _octokit__WEBPACK_IMPORTED_MODULE_1__/* .octokit.pulls.listFiles */ .K.pulls.listFiles(Object.assign({ pull_number, per_page: 100, page }, _actions_github__WEBPACK_IMPORTED_MODULE_0__.context.repo)); if (!response.data.length) { return []; diff --git a/dist/61.index.js b/dist/61.index.js index 593354f03..af56e2dc7 100644 --- a/dist/61.index.js +++ b/dist/61.index.js @@ -49,7 +49,7 @@ class RemoveLabel extends _types_generated__WEBPACK_IMPORTED_MODULE_3__/* .Helpe this.label = ''; } } -const removeLabel = ({ label }) => __awaiter(void 0, void 0, void 0, function* () { return removeLabelIfExists(label, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number); }); +const removeLabel = (_a) => __awaiter(void 0, [_a], void 0, function* ({ label }) { return removeLabelIfExists(label, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number); }); const removeLabelIfExists = (labelName, issue_number) => __awaiter(void 0, void 0, void 0, function* () { try { yield _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.issues.removeLabel */ .K.issues.removeLabel(Object.assign({ name: labelName, issue_number }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); diff --git a/dist/676.index.js b/dist/676.index.js index 4af6d37ce..f1df4955f 100644 --- a/dist/676.index.js +++ b/dist/676.index.js @@ -139,7 +139,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume }; -const paginateAllReviews = (prNumber, page = 1) => __awaiter(void 0, void 0, void 0, function* () { +const paginateAllReviews = (prNumber_1, ...args_1) => __awaiter(void 0, [prNumber_1, ...args_1], void 0, function* (prNumber, page = 1) { const response = yield octokit/* octokit.pulls.listReviews */.K.pulls.listReviews(Object.assign({ pull_number: prNumber, per_page: 100, page }, github.context.repo)); if (!response.data.length) { return []; @@ -179,7 +179,7 @@ var approvals_satisfied_awaiter = (undefined && undefined.__awaiter) || function class ApprovalsSatisfied extends generated/* HelperInputs */.s { } -const approvalsSatisfied = ({ teams, number_of_reviewers = '1', pull_number } = {}) => approvals_satisfied_awaiter(void 0, void 0, void 0, function* () { +const approvalsSatisfied = (...args_1) => approvals_satisfied_awaiter(void 0, [...args_1], void 0, function* ({ teams, number_of_reviewers = '1', pull_number } = {}) { const prNumber = pull_number ? Number(pull_number) : github.context.issue.number; const reviews = yield paginateAllReviews(prNumber); const approverLogins = reviews @@ -274,13 +274,13 @@ const getCommentByUser = (login) => __awaiter(void 0, void 0, void 0, function* emptyResponse; return (_b = comments.data.find(comment => { var _a; return ((_a = comment === null || comment === void 0 ? void 0 : comment.user) === null || _a === void 0 ? void 0 : _a.login) === login; })) === null || _b === void 0 ? void 0 : _b.id; }); -const createPrComment = ({ body, sha, login }) => __awaiter(void 0, void 0, void 0, function* () { - var _c; +const createPrComment = (_c) => __awaiter(void 0, [_c], void 0, function* ({ body, sha, login }) { + var _d; if (!sha && !login) { return _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.issues.createComment */ .K.issues.createComment(Object.assign({ body, issue_number: _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); } const defaultPrNumber = _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number; - const prNumber = (_c = (yield getPrsByCommit(sha))) !== null && _c !== void 0 ? _c : defaultPrNumber; + const prNumber = (_d = (yield getPrsByCommit(sha))) !== null && _d !== void 0 ? _d : defaultPrNumber; const commentId = yield getCommentByUser(login); if (commentId) { return _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.issues.updateComment */ .K.issues.updateComment(Object.assign({ comment_id: commentId, body }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); @@ -452,7 +452,7 @@ var manage_merge_queue_awaiter = (undefined && undefined.__awaiter) || function class ManageMergeQueue extends generated/* HelperInputs */.s { } -const manageMergeQueue = ({ login, slack_webhook_url, skip_auto_merge } = {}) => manage_merge_queue_awaiter(void 0, void 0, void 0, function* () { +const manageMergeQueue = (...args_1) => manage_merge_queue_awaiter(void 0, [...args_1], void 0, function* ({ login, slack_webhook_url, skip_auto_merge } = {}) { const { data: pullRequest } = yield octokit/* octokit.pulls.get */.K.pulls.get(Object.assign({ pull_number: github.context.issue.number }, github.context.repo)); if (pullRequest.merged || !pullRequest.labels.find(label => label.name === constants/* READY_FOR_MERGE_PR_LABEL */.Ak)) { core.info('This PR is not in the merge queue.'); @@ -516,7 +516,7 @@ const getQueuedPullRequests = () => manage_merge_queue_awaiter(void 0, void 0, v const openPullRequests = yield (0,paginate_open_pull_requests/* paginateAllOpenPullRequests */.P)(); return openPullRequests.filter(pr => pr.labels.some(label => label.name === constants/* READY_FOR_MERGE_PR_LABEL */.Ak)); }); -const enableAutoMerge = (pullRequestId, mergeMethod = 'SQUASH') => manage_merge_queue_awaiter(void 0, void 0, void 0, function* () { +const enableAutoMerge = (pullRequestId_1, ...args_2) => manage_merge_queue_awaiter(void 0, [pullRequestId_1, ...args_2], void 0, function* (pullRequestId, mergeMethod = 'SQUASH') { try { return yield (0,octokit/* octokitGraphql */.o)(` mutation { @@ -667,7 +667,7 @@ class RemoveLabel extends _types_generated__WEBPACK_IMPORTED_MODULE_3__/* .Helpe this.label = ''; } } -const removeLabel = ({ label }) => __awaiter(void 0, void 0, void 0, function* () { return removeLabelIfExists(label, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number); }); +const removeLabel = (_a) => __awaiter(void 0, [_a], void 0, function* ({ label }) { return removeLabelIfExists(label, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number); }); const removeLabelIfExists = (labelName, issue_number) => __awaiter(void 0, void 0, void 0, function* () { try { yield _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.issues.removeLabel */ .K.issues.removeLabel(Object.assign({ name: labelName, issue_number }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); @@ -732,7 +732,7 @@ class SetCommitStatus extends _types_generated__WEBPACK_IMPORTED_MODULE_4__/* .H this.state = ''; } } -const setCommitStatus = ({ sha, context, state, description, target_url, skip_if_already_set }) => __awaiter(void 0, void 0, void 0, function* () { +const setCommitStatus = (_a) => __awaiter(void 0, [_a], void 0, function* ({ sha, context, state, description, target_url, skip_if_already_set }) { yield (0,bluebird__WEBPACK_IMPORTED_MODULE_2__.map)(context.split('\n').filter(Boolean), (context) => __awaiter(void 0, void 0, void 0, function* () { if (skip_if_already_set === 'true') { const check_runs = yield _octokit__WEBPACK_IMPORTED_MODULE_3__/* .octokit.checks.listForRef */ .K.checks.listForRef(Object.assign(Object.assign({}, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo), { ref: sha })); @@ -870,7 +870,7 @@ const getChangedFilepaths = (pull_number, ignore_deleted) => __awaiter(void 0, v const filesToMap = ignore_deleted ? changedFiles.filter(file => file.status !== 'removed') : changedFiles; return filesToMap.map(file => file.filename); }); -const paginateAllChangedFilepaths = (pull_number, page = 1) => __awaiter(void 0, void 0, void 0, function* () { +const paginateAllChangedFilepaths = (pull_number_1, ...args_1) => __awaiter(void 0, [pull_number_1, ...args_1], void 0, function* (pull_number, page = 1) { const response = yield _octokit__WEBPACK_IMPORTED_MODULE_1__/* .octokit.pulls.listFiles */ .K.pulls.listFiles(Object.assign({ pull_number, per_page: 100, page }, _actions_github__WEBPACK_IMPORTED_MODULE_0__.context.repo)); if (!response.data.length) { return []; @@ -1004,7 +1004,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume -const notifyUser = ({ login, pull_number, slack_webhook_url }) => __awaiter(void 0, void 0, void 0, function* () { +const notifyUser = (_a) => __awaiter(void 0, [_a], void 0, function* ({ login, pull_number, slack_webhook_url }) { _actions_core__WEBPACK_IMPORTED_MODULE_0__.info(`Notifying user ${login}...`); const { data: { email } } = yield _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.users.getByUsername */ .K.users.getByUsername({ username: login }); if (!email) { @@ -1061,7 +1061,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume }; -const paginateAllOpenPullRequests = (page = 1) => __awaiter(void 0, void 0, void 0, function* () { +const paginateAllOpenPullRequests = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (page = 1) { const response = yield _octokit__WEBPACK_IMPORTED_MODULE_0__/* .octokit.pulls.list */ .K.pulls.list(Object.assign({ state: 'open', sort: 'updated', direction: 'desc', per_page: 100, page }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); if (!response.data.length) { return []; diff --git a/dist/766.index.js b/dist/766.index.js index f4a1f6f87..9e48dedf5 100644 --- a/dist/766.index.js +++ b/dist/766.index.js @@ -57,7 +57,7 @@ const rerunPrChecks = () => __awaiter(void 0, void 0, void 0, function* () { } const latestWorkflowRuns = workflowRuns.filter(({ head_sha }) => head_sha === latestHash); _actions_core__WEBPACK_IMPORTED_MODULE_0__.info(`There are ${latestWorkflowRuns.length} checks associated with the latest commit, triggering reruns...`); - return (0,bluebird__WEBPACK_IMPORTED_MODULE_2__.map)(latestWorkflowRuns, ({ id, name, rerun_url }) => __awaiter(void 0, void 0, void 0, function* () { + return (0,bluebird__WEBPACK_IMPORTED_MODULE_2__.map)(latestWorkflowRuns, (_a) => __awaiter(void 0, [_a], void 0, function* ({ id, name, rerun_url }) { _actions_core__WEBPACK_IMPORTED_MODULE_0__.info(`- Rerunning ${name} (${id})`); yield (0,_octokit_request__WEBPACK_IMPORTED_MODULE_4__.request)(`POST ${rerun_url}`, { headers: { diff --git a/dist/794.index.js b/dist/794.index.js index 437276ab6..9f977cad6 100644 --- a/dist/794.index.js +++ b/dist/794.index.js @@ -47,7 +47,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume class FilterPaths extends _types_generated__WEBPACK_IMPORTED_MODULE_4__/* .HelperInputs */ .s { } -const filterPaths = ({ paths, globs }) => __awaiter(void 0, void 0, void 0, function* () { +const filterPaths = (_a) => __awaiter(void 0, [_a], void 0, function* ({ paths, globs }) { const { data } = yield _octokit__WEBPACK_IMPORTED_MODULE_3__/* .octokit.pulls.listFiles */ .K.pulls.listFiles(Object.assign({ per_page: 100, pull_number: _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); const fileNames = data.map(file => file.filename); if (globs) { diff --git a/dist/807.index.js b/dist/807.index.js index 4bd5c0555..27c07637a 100644 --- a/dist/807.index.js +++ b/dist/807.index.js @@ -134,11 +134,11 @@ class SetDeploymentStatus extends _types_generated__WEBPACK_IMPORTED_MODULE_3__/ this.environment = ''; } } -const setDeploymentStatus = ({ sha, state, environment, description, target_url, environment_url }) => __awaiter(void 0, void 0, void 0, function* () { - var _a; +const setDeploymentStatus = (_a) => __awaiter(void 0, [_a], void 0, function* ({ sha, state, environment, description, target_url, environment_url }) { + var _b; const { data } = yield _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.repos.listDeployments */ .K.repos.listDeployments(Object.assign(Object.assign({ sha, environment }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo), _constants__WEBPACK_IMPORTED_MODULE_0__/* .GITHUB_OPTIONS */ .Cc)); - const deployment_id = (_a = data.find(Boolean)) === null || _a === void 0 ? void 0 : _a.id; + const deployment_id = (_b = data.find(Boolean)) === null || _b === void 0 ? void 0 : _b.id; if (deployment_id) { return _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.repos.createDeploymentStatus */ .K.repos.createDeploymentStatus(Object.assign(Object.assign({ state: state, deployment_id, description, diff --git a/dist/830.index.js b/dist/830.index.js index a7b618c24..127a4d630 100644 --- a/dist/830.index.js +++ b/dist/830.index.js @@ -129,7 +129,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume class ClosePr extends _types_generated__WEBPACK_IMPORTED_MODULE_3__/* .HelperInputs */ .s { } -const closePr = ({ body } = {}) => __awaiter(void 0, void 0, void 0, function* () { +const closePr = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* ({ body } = {}) { if (body) { yield (0,_create_pr_comment__WEBPACK_IMPORTED_MODULE_2__.createPrComment)({ body }); } @@ -198,13 +198,13 @@ const getCommentByUser = (login) => __awaiter(void 0, void 0, void 0, function* emptyResponse; return (_b = comments.data.find(comment => { var _a; return ((_a = comment === null || comment === void 0 ? void 0 : comment.user) === null || _a === void 0 ? void 0 : _a.login) === login; })) === null || _b === void 0 ? void 0 : _b.id; }); -const createPrComment = ({ body, sha, login }) => __awaiter(void 0, void 0, void 0, function* () { - var _c; +const createPrComment = (_c) => __awaiter(void 0, [_c], void 0, function* ({ body, sha, login }) { + var _d; if (!sha && !login) { return _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.issues.createComment */ .K.issues.createComment(Object.assign({ body, issue_number: _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); } const defaultPrNumber = _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number; - const prNumber = (_c = (yield getPrsByCommit(sha))) !== null && _c !== void 0 ? _c : defaultPrNumber; + const prNumber = (_d = (yield getPrsByCommit(sha))) !== null && _d !== void 0 ? _d : defaultPrNumber; const commentId = yield getCommentByUser(login); if (commentId) { return _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.issues.updateComment */ .K.issues.updateComment(Object.assign({ comment_id: commentId, body }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); diff --git a/dist/867.index.js b/dist/867.index.js index 2d9ae3be6..1e68b5323 100644 --- a/dist/867.index.js +++ b/dist/867.index.js @@ -134,7 +134,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume class AddLateReviewLabel extends _types_generated__WEBPACK_IMPORTED_MODULE_5__/* .HelperInputs */ .s { } -const addLateReviewLabel = ({ days = '1' }) => __awaiter(void 0, void 0, void 0, function* () { +const addLateReviewLabel = (_a) => __awaiter(void 0, [_a], void 0, function* ({ days = '1' }) { const openPullRequests = yield (0,_utils_paginate_open_pull_requests__WEBPACK_IMPORTED_MODULE_4__/* .paginateAllOpenPullRequests */ .P)(); return (0,bluebird__WEBPACK_IMPORTED_MODULE_3__.map)(openPullRequests, pr => { if (!isLabelNeeded(pr, Number(days))) { @@ -245,7 +245,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume }; -const paginateAllOpenPullRequests = (page = 1) => __awaiter(void 0, void 0, void 0, function* () { +const paginateAllOpenPullRequests = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (page = 1) { const response = yield _octokit__WEBPACK_IMPORTED_MODULE_0__/* .octokit.pulls.list */ .K.pulls.list(Object.assign({ state: 'open', sort: 'updated', direction: 'desc', per_page: 100, page }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); if (!response.data.length) { return []; diff --git a/dist/905.index.js b/dist/905.index.js index 5afb5cfd5..645fac9b6 100644 --- a/dist/905.index.js +++ b/dist/905.index.js @@ -135,7 +135,7 @@ class AddPrApprovalLabel extends _types_generated__WEBPACK_IMPORTED_MODULE_4__/* this.login = ''; } } -const addPrApprovalLabel = ({ teams, login }) => __awaiter(void 0, void 0, void 0, function* () { +const addPrApprovalLabel = (_a) => __awaiter(void 0, [_a], void 0, function* ({ teams, login }) { const coreMemberLogins = yield (0,_utils_get_core_member_logins__WEBPACK_IMPORTED_MODULE_2__/* .getCoreMemberLogins */ .c)(_actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number, teams === null || teams === void 0 ? void 0 : teams.split('\n')); const approvalLabel = coreMemberLogins.includes(login) ? _constants__WEBPACK_IMPORTED_MODULE_0__/* .CORE_APPROVED_PR_LABEL */ ._d : _constants__WEBPACK_IMPORTED_MODULE_0__/* .PEER_APPROVED_PR_LABEL */ .Xt; return _octokit__WEBPACK_IMPORTED_MODULE_3__/* .octokit.issues.addLabels */ .K.issues.addLabels(Object.assign({ labels: [approvalLabel], issue_number: _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); @@ -262,7 +262,7 @@ const getChangedFilepaths = (pull_number, ignore_deleted) => __awaiter(void 0, v const filesToMap = ignore_deleted ? changedFiles.filter(file => file.status !== 'removed') : changedFiles; return filesToMap.map(file => file.filename); }); -const paginateAllChangedFilepaths = (pull_number, page = 1) => __awaiter(void 0, void 0, void 0, function* () { +const paginateAllChangedFilepaths = (pull_number_1, ...args_1) => __awaiter(void 0, [pull_number_1, ...args_1], void 0, function* (pull_number, page = 1) { const response = yield _octokit__WEBPACK_IMPORTED_MODULE_1__/* .octokit.pulls.listFiles */ .K.pulls.listFiles(Object.assign({ pull_number, per_page: 100, page }, _actions_github__WEBPACK_IMPORTED_MODULE_0__.context.repo)); if (!response.data.length) { return []; diff --git a/dist/913.index.js b/dist/913.index.js index 48d499abd..d7f2c5f35 100644 --- a/dist/913.index.js +++ b/dist/913.index.js @@ -41,7 +41,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume class GetChangedFiles extends _types_generated__WEBPACK_IMPORTED_MODULE_2__/* .HelperInputs */ .s { } -const getChangedFiles = ({ pattern, delimiter = ',', ignore_deleted }) => __awaiter(void 0, void 0, void 0, function* () { +const getChangedFiles = (_a) => __awaiter(void 0, [_a], void 0, function* ({ pattern, delimiter = ',', ignore_deleted }) { const filePaths = yield (0,_utils_get_changed_filepaths__WEBPACK_IMPORTED_MODULE_1__/* .getChangedFilepaths */ .s)(_actions_github__WEBPACK_IMPORTED_MODULE_0__.context.issue.number, Boolean(ignore_deleted)); const filteredFilePaths = pattern ? filePaths.filter(fileName => fileName.match(pattern)) : filePaths; return filteredFilePaths.join(delimiter); @@ -145,7 +145,7 @@ const getChangedFilepaths = (pull_number, ignore_deleted) => __awaiter(void 0, v const filesToMap = ignore_deleted ? changedFiles.filter(file => file.status !== 'removed') : changedFiles; return filesToMap.map(file => file.filename); }); -const paginateAllChangedFilepaths = (pull_number, page = 1) => __awaiter(void 0, void 0, void 0, function* () { +const paginateAllChangedFilepaths = (pull_number_1, ...args_1) => __awaiter(void 0, [pull_number_1, ...args_1], void 0, function* (pull_number, page = 1) { const response = yield _octokit__WEBPACK_IMPORTED_MODULE_1__/* .octokit.pulls.listFiles */ .K.pulls.listFiles(Object.assign({ pull_number, per_page: 100, page }, _actions_github__WEBPACK_IMPORTED_MODULE_0__.context.repo)); if (!response.data.length) { return []; diff --git a/dist/950.index.js b/dist/950.index.js index 50f59427b..5193d09aa 100644 --- a/dist/950.index.js +++ b/dist/950.index.js @@ -138,7 +138,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume const paginateAllPrioritizedIssues = () => __awaiter(void 0, void 0, void 0, function* () { return (yield (0,bluebird.map)(constants/* PRIORITY_LABELS */.rF, (label) => __awaiter(void 0, void 0, void 0, function* () { return yield paginateIssuesOfSpecificPriority(label); }))).flat(); }); -const paginateIssuesOfSpecificPriority = (label, page = 1) => __awaiter(void 0, void 0, void 0, function* () { +const paginateIssuesOfSpecificPriority = (label_1, ...args_1) => __awaiter(void 0, [label_1, ...args_1], void 0, function* (label, page = 1) { var _a; const response = yield octokit/* octokit.issues.listForRepo */.K.issues.listForRepo(Object.assign({ state: 'open', sort: 'created', direction: 'desc', per_page: 100, labels: label, page }, github.context.repo)); if (!((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.length)) { @@ -171,7 +171,7 @@ var paginate_comments_on_issue_awaiter = (undefined && undefined.__awaiter) || f }; -const paginateAllCommentsOnIssue = (issue_number, page = 1) => paginate_comments_on_issue_awaiter(void 0, void 0, void 0, function* () { +const paginateAllCommentsOnIssue = (issue_number_1, ...args_1) => paginate_comments_on_issue_awaiter(void 0, [issue_number_1, ...args_1], void 0, function* (issue_number, page = 1) { var _a; const response = yield octokit/* octokit.issues.listComments */.K.issues.listComments(Object.assign({ issue_number, sort: 'created', direction: 'desc', per_page: 100, page }, github.context.repo)); if (!((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.length)) { @@ -257,7 +257,7 @@ var manage_issue_due_dates_awaiter = (undefined && undefined.__awaiter) || funct class ManageIssueDueDates extends generated/* HelperInputs */.s { } -const manageIssueDueDates = ({ days = '7' }) => manage_issue_due_dates_awaiter(void 0, void 0, void 0, function* () { +const manageIssueDueDates = (_a) => manage_issue_due_dates_awaiter(void 0, [_a], void 0, function* ({ days = '7' }) { const openIssues = yield paginateAllPrioritizedIssues(); const warningThreshold = Number(days); const getFirstPriorityLabelFoundOnIssue = (issueLabels) => constants/* PRIORITY_LABELS.find */.rF.find(priorityLabel => issueLabels.some(issueLabel => { @@ -339,7 +339,7 @@ class RemoveLabel extends _types_generated__WEBPACK_IMPORTED_MODULE_3__/* .Helpe this.label = ''; } } -const removeLabel = ({ label }) => __awaiter(void 0, void 0, void 0, function* () { return removeLabelIfExists(label, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number); }); +const removeLabel = (_a) => __awaiter(void 0, [_a], void 0, function* ({ label }) { return removeLabelIfExists(label, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number); }); const removeLabelIfExists = (labelName, issue_number) => __awaiter(void 0, void 0, void 0, function* () { try { yield _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.issues.removeLabel */ .K.issues.removeLabel(Object.assign({ name: labelName, issue_number }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); diff --git a/dist/956.index.js b/dist/956.index.js index b162dd0bf..f440a9eb2 100644 --- a/dist/956.index.js +++ b/dist/956.index.js @@ -132,7 +132,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume class CheckPrTitle extends _types_generated__WEBPACK_IMPORTED_MODULE_4__/* .HelperInputs */ .s { } -const checkPrTitle = ({ pattern = _constants__WEBPACK_IMPORTED_MODULE_0__/* .DEFAULT_PR_TITLE_REGEX */ .HW }) => __awaiter(void 0, void 0, void 0, function* () { +const checkPrTitle = (_a) => __awaiter(void 0, [_a], void 0, function* ({ pattern = _constants__WEBPACK_IMPORTED_MODULE_0__/* .DEFAULT_PR_TITLE_REGEX */ .HW }) { const regex = new RegExp(pattern); const { data: { title } } = yield _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.pulls.get */ .K.pulls.get(Object.assign({ pull_number: _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); if (regex.test(title)) { diff --git a/dist/974.index.js b/dist/974.index.js index b5d7bfe01..1dce17517 100644 --- a/dist/974.index.js +++ b/dist/974.index.js @@ -135,7 +135,7 @@ class RemoveLabel extends _types_generated__WEBPACK_IMPORTED_MODULE_3__/* .Helpe this.label = ''; } } -const removeLabel = ({ label }) => __awaiter(void 0, void 0, void 0, function* () { return removeLabelIfExists(label, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number); }); +const removeLabel = (_a) => __awaiter(void 0, [_a], void 0, function* ({ label }) { return removeLabelIfExists(label, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.issue.number); }); const removeLabelIfExists = (labelName, issue_number) => __awaiter(void 0, void 0, void 0, function* () { try { yield _octokit__WEBPACK_IMPORTED_MODULE_2__/* .octokit.issues.removeLabel */ .K.issues.removeLabel(Object.assign({ name: labelName, issue_number }, _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo)); @@ -202,7 +202,7 @@ class RemovePrFromMergeQueue extends _types_generated__WEBPACK_IMPORTED_MODULE_6 this.seconds = ''; } } -const removePrFromMergeQueue = ({ seconds }) => __awaiter(void 0, void 0, void 0, function* () { +const removePrFromMergeQueue = (_a) => __awaiter(void 0, [_a], void 0, function* ({ seconds }) { const { data: pullRequests } = yield _octokit__WEBPACK_IMPORTED_MODULE_3__/* .octokit.pulls.list */ .K.pulls.list(Object.assign({ state: 'open', per_page: 100 }, _actions_github__WEBPACK_IMPORTED_MODULE_2__.context.repo)); const firstQueuedPr = pullRequests.find(pr => pr.labels.some(label => label.name === _constants__WEBPACK_IMPORTED_MODULE_1__/* .FIRST_QUEUED_PR_LABEL */ .IH)); if (!firstQueuedPr) { diff --git a/package-lock.json b/package-lock.json index 637776414..465fd423e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "lodash.union": "4.6.0", "lodash.uniq": "4.5.0", "micromatch": "4.0.5", - "typescript": "5.3.3" + "typescript": "5.4.2" }, "devDependencies": { "@octokit/plugin-rest-endpoint-methods": "11.0.1", @@ -9079,9 +9079,9 @@ } }, "node_modules/typescript": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", - "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", + "version": "5.4.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz", + "integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/package.json b/package.json index 1c1bc2657..92b32af9f 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "lodash.union": "4.6.0", "lodash.uniq": "4.5.0", "micromatch": "4.0.5", - "typescript": "5.3.3" + "typescript": "5.4.2" }, "devDependencies": { "@octokit/plugin-rest-endpoint-methods": "11.0.1",