From 03ffe20c98bc808af5c7d47f3303d18186ebfba6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 29 Aug 2021 16:17:06 +0000 Subject: [PATCH] feat: build for release --- README.ja.md | 31 +--------- README.md | 31 +--------- build.json | 2 +- lib/utils/github.js | 2 +- node_modules/.yarn-integrity | 33 +++++----- .../filter-github-action/package.json | 10 +-- .../github-action-helper/dist/api-helper.js | 36 +++++------ .../github-action-helper/dist/command.js | 8 +-- .../dist/context-helper.js | 14 ++--- .../github-action-helper/dist/git-helper.js | 50 +++++++-------- .../github-action-helper/dist/utils.js | 62 +++++++++---------- .../github-action-helper/package.json | 26 ++++---- .../github-action-log-helper/dist/logger.js | 10 +-- .../dist/logger.js.map | 2 +- .../github-action-log-helper/package.json | 20 +++--- 15 files changed, 141 insertions(+), 196 deletions(-) diff --git a/README.ja.md b/README.ja.md index b7b4939a..ed8d127f 100644 --- a/README.ja.md +++ b/README.ja.md @@ -1,9 +1,9 @@ # Assign Author [![CI Status](https://github.com/technote-space/assign-author/workflows/CI/badge.svg)](https://github.com/technote-space/assign-author/actions) -[![codecov](https://codecov.io/gh/technote-space/assign-author/branch/master/graph/badge.svg)](https://codecov.io/gh/technote-space/assign-author) +[![codecov](https://codecov.io/gh/technote-space/assign-author/branch/main/graph/badge.svg)](https://codecov.io/gh/technote-space/assign-author) [![CodeFactor](https://www.codefactor.io/repository/github/technote-space/assign-author/badge)](https://www.codefactor.io/repository/github/technote-space/assign-author) -[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/assign-author/blob/master/LICENSE) +[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/assign-author/blob/main/LICENSE) *Read this in other languages: [English](README.md), [日本語](README.ja.md).* @@ -20,7 +20,6 @@ Issue や Pull Request に Author をアサインする GitHub Actions です。 - [インストール](#%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB) - [Action イベント詳細](#action-%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%E8%A9%B3%E7%B4%B0) - [対象イベント](#%E5%AF%BE%E8%B1%A1%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88) -- [このアクションを使用しているリポジトリの例](#%E3%81%93%E3%81%AE%E3%82%A2%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%83%AA%E3%83%9D%E3%82%B8%E3%83%88%E3%83%AA%E3%81%AE%E4%BE%8B) - [Author](#author) @@ -67,32 +66,6 @@ Issue や Pull Request に Author をアサインする GitHub Actions です。 |pull_request, pull_request_target|opened, reopened| |issues|opened, reopened| -## このアクションを使用しているリポジトリの例 -- [Release GitHub Actions](https://github.com/technote-space/release-github-actions) - - [issue-opened.yml](https://github.com/technote-space/release-github-actions/blob/master/.github/workflows/issue-opened.yml) - - [pr-opened.yml](https://github.com/technote-space/release-github-actions/blob/master/.github/workflows/pr-opened.yml) -- [Auto card labeler](https://github.com/technote-space/auto-card-labeler) - - [issue-opened.yml](https://github.com/technote-space/auto-card-labeler/blob/master/.github/workflows/issue-opened.yml) - - [pr-opened.yml](https://github.com/technote-space/auto-card-labeler/blob/master/.github/workflows/pr-opened.yml) -- [Assign Author](https://github.com/technote-space/assign-author) - - [issue-opened.yml](https://github.com/technote-space/assign-author/blob/master/.github/workflows/issue-opened.yml) - - [pr-opened.yml](https://github.com/technote-space/assign-author/blob/master/.github/workflows/pr-opened.yml) -- [TOC Generator](https://github.com/technote-space/toc-generator) - - [issue-opened.yml](https://github.com/technote-space/toc-generator/blob/master/.github/workflows/issue-opened.yml) - - [pr-opened.yml](https://github.com/technote-space/toc-generator/blob/master/.github/workflows/pr-opened.yml) -- [Package Version Check Action](https://github.com/technote-space/package-version-check-action) - - [issue-opened.yml](https://github.com/technote-space/package-version-check-action/blob/master/.github/workflows/issue-opened.yml) - - [pr-opened.yml](https://github.com/technote-space/package-version-check-action/blob/master/.github/workflows/pr-opened.yml) -- [Get Diff Action](https://github.com/technote-space/get-diff-action) - - [issue-opened.yml](https://github.com/technote-space/get-diff-action/blob/master/.github/workflows/issue-opened.yml) - - [pr-opened.yml](https://github.com/technote-space/get-diff-action/blob/master/.github/workflows/pr-opened.yml) -- [Create Project Card Action](https://github.com/technote-space/create-project-card-action) - - [issue-opened.yml](https://github.com/technote-space/create-project-card-action/blob/master/.github/workflows/issue-opened.yml) - - [pr-opened.yml](https://github.com/technote-space/create-project-card-action/blob/master/.github/workflows/pr-opened.yml) -- [Get git comment action](https://github.com/technote-space/get-git-comment-action) - - [issue-opened.yml](https://github.com/technote-space/get-git-comment-action/blob/master/.github/workflows/issue-opened.yml) - - [pr-opened.yml](https://github.com/technote-space/get-git-comment-action/blob/master/.github/workflows/pr-opened.yml) - ## Author [GitHub (Technote)](https://github.com/technote-space) [Blog](https://technote.space) diff --git a/README.md b/README.md index 931415e8..81cf3300 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Assign Author [![CI Status](https://github.com/technote-space/assign-author/workflows/CI/badge.svg)](https://github.com/technote-space/assign-author/actions) -[![codecov](https://codecov.io/gh/technote-space/assign-author/branch/master/graph/badge.svg)](https://codecov.io/gh/technote-space/assign-author) +[![codecov](https://codecov.io/gh/technote-space/assign-author/branch/main/graph/badge.svg)](https://codecov.io/gh/technote-space/assign-author) [![CodeFactor](https://www.codefactor.io/repository/github/technote-space/assign-author/badge)](https://www.codefactor.io/repository/github/technote-space/assign-author) -[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/assign-author/blob/master/LICENSE) +[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/assign-author/blob/main/LICENSE) *Read this in other languages: [English](README.md), [日本語](README.ja.md).* @@ -20,7 +20,6 @@ - [Installation](#installation) - [Action event details](#action-event-details) - [Target events](#target-events) -- [Example repositories using this Action](#example-repositories-using-this-action) - [Author](#author) @@ -67,32 +66,6 @@ |pull_request, pull_request_target|opened, reopened| |issues|opened, reopened| -## Example repositories using this Action -- [Release GitHub Actions](https://github.com/technote-space/release-github-actions) - - [issue-opened.yml](https://github.com/technote-space/release-github-actions/blob/master/.github/workflows/issue-opened.yml) - - [pr-opened.yml](https://github.com/technote-space/release-github-actions/blob/master/.github/workflows/pr-opened.yml) -- [Auto card labeler](https://github.com/technote-space/auto-card-labeler) - - [issue-opened.yml](https://github.com/technote-space/auto-card-labeler/blob/master/.github/workflows/issue-opened.yml) - - [pr-opened.yml](https://github.com/technote-space/auto-card-labeler/blob/master/.github/workflows/pr-opened.yml) -- [Assign Author](https://github.com/technote-space/assign-author) - - [issue-opened.yml](https://github.com/technote-space/assign-author/blob/master/.github/workflows/issue-opened.yml) - - [pr-opened.yml](https://github.com/technote-space/assign-author/blob/master/.github/workflows/pr-opened.yml) -- [TOC Generator](https://github.com/technote-space/toc-generator) - - [issue-opened.yml](https://github.com/technote-space/toc-generator/blob/master/.github/workflows/issue-opened.yml) - - [pr-opened.yml](https://github.com/technote-space/toc-generator/blob/master/.github/workflows/pr-opened.yml) -- [Package Version Check Action](https://github.com/technote-space/package-version-check-action) - - [issue-opened.yml](https://github.com/technote-space/package-version-check-action/blob/master/.github/workflows/issue-opened.yml) - - [pr-opened.yml](https://github.com/technote-space/package-version-check-action/blob/master/.github/workflows/pr-opened.yml) -- [Get Diff Action](https://github.com/technote-space/get-diff-action) - - [issue-opened.yml](https://github.com/technote-space/get-diff-action/blob/master/.github/workflows/issue-opened.yml) - - [pr-opened.yml](https://github.com/technote-space/get-diff-action/blob/master/.github/workflows/pr-opened.yml) -- [Create Project Card Action](https://github.com/technote-space/create-project-card-action) - - [issue-opened.yml](https://github.com/technote-space/create-project-card-action/blob/master/.github/workflows/issue-opened.yml) - - [pr-opened.yml](https://github.com/technote-space/create-project-card-action/blob/master/.github/workflows/pr-opened.yml) -- [Get git comment action](https://github.com/technote-space/get-git-comment-action) - - [issue-opened.yml](https://github.com/technote-space/get-git-comment-action/blob/master/.github/workflows/issue-opened.yml) - - [pr-opened.yml](https://github.com/technote-space/get-git-comment-action/blob/master/.github/workflows/pr-opened.yml) - ## Author [GitHub (Technote)](https://github.com/technote-space) [Blog](https://technote.space) diff --git a/build.json b/build.json index 62f464f7..8bf1069d 100644 --- a/build.json +++ b/build.json @@ -1 +1 @@ -{"owner":"technote-space","repo":"assign-author","sha":"0fe58a1934ed99274fdebaf4db6a49a05f2cae74","ref":"refs/tags/test/v1.5.13.1176315217","tagName":"test/v1.5.13.1176315217","branch":"gh-actions","tags":["test/v1.5.13.1176315217","test/v1.5.13","test/v1.5","test/v1"],"updated_at":"2021-08-28T03:07:20.228Z"} \ No newline at end of file +{"owner":"technote-space","repo":"assign-author","sha":"bfe1e62c9cad2d20d1f91c5bf40ac917aa07c653","ref":"refs/tags/v1.5.13","tagName":"v1.5.13","branch":"gh-actions","tags":["v1.5.13","v1.5","v1"],"updated_at":"2021-08-29T16:17:06.170Z"} \ No newline at end of file diff --git a/lib/utils/github.js b/lib/utils/github.js index 71f9df21..9782bee7 100644 --- a/lib/utils/github.js +++ b/lib/utils/github.js @@ -29,7 +29,7 @@ const addAssignees = (assignees, octokit, logger, context) => __awaiter(void 0, assignees: assignees, }); } - catch (error) { + catch (error) { // eslint-disable-line @typescript-eslint/no-explicit-any if ('Resource not accessible by integration' === error.message) { logger.warn(error.message); } diff --git a/node_modules/.yarn-integrity b/node_modules/.yarn-integrity index 4ab92f0e..270f470c 100644 --- a/node_modules/.yarn-integrity +++ b/node_modules/.yarn-integrity @@ -12,13 +12,13 @@ "@actions/github@^5.0.0", "@commitlint/cli@^13.1.0", "@commitlint/config-conventional@^13.1.0", - "@technote-space/filter-github-action@^0.5.44", - "@technote-space/github-action-helper@^5.2.17", - "@technote-space/github-action-log-helper@^0.1.37", - "@technote-space/github-action-test-helper@^0.7.24", + "@technote-space/filter-github-action@^0.5.45", + "@technote-space/github-action-helper@^5.2.19", + "@technote-space/github-action-log-helper@^0.1.39", + "@technote-space/github-action-test-helper@^0.7.25", "@technote-space/release-github-actions-cli@^1.8.6", "@types/jest@^27.0.1", - "@types/node@^16.7.4", + "@types/node@^16.7.5", "@typescript-eslint/eslint-plugin@^4.29.3", "@typescript-eslint/parser@^4.29.3", "eslint@^7.32.0", @@ -150,15 +150,14 @@ "@octokit/types@^6.25.0": "https://registry.yarnpkg.com/@octokit/types/-/types-6.25.0.tgz#c8e37e69dbe7ce55ed98ee63f75054e7e808bf1a", "@sinonjs/commons@^1.7.0": "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.3.tgz#3802ddd21a50a949b6721ddd72da36e67e7f1b2d", "@sinonjs/fake-timers@^7.0.2": "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-7.1.2.tgz#2524eae70c4910edccf99b2f4e6efc5894aff7b5", - "@technote-space/filter-github-action@^0.5.27": "https://registry.yarnpkg.com/@technote-space/filter-github-action/-/filter-github-action-0.5.44.tgz#b5a2f9aa2a3c78e45a34a7ec97f4fb18296f6ef8", - "@technote-space/filter-github-action@^0.5.44": "https://registry.yarnpkg.com/@technote-space/filter-github-action/-/filter-github-action-0.5.44.tgz#b5a2f9aa2a3c78e45a34a7ec97f4fb18296f6ef8", - "@technote-space/github-action-helper@^5.2.17": "https://registry.yarnpkg.com/@technote-space/github-action-helper/-/github-action-helper-5.2.17.tgz#869117510d9424da311592d8751b580c14e9ac62", - "@technote-space/github-action-helper@^5.2.9": "https://registry.yarnpkg.com/@technote-space/github-action-helper/-/github-action-helper-5.2.17.tgz#869117510d9424da311592d8751b580c14e9ac62", - "@technote-space/github-action-log-helper@^0.1.27": "https://registry.yarnpkg.com/@technote-space/github-action-log-helper/-/github-action-log-helper-0.1.37.tgz#054a3fbfdc46d8fb363b1ba848ae9ad133d43b58", - "@technote-space/github-action-log-helper@^0.1.28": "https://registry.yarnpkg.com/@technote-space/github-action-log-helper/-/github-action-log-helper-0.1.37.tgz#054a3fbfdc46d8fb363b1ba848ae9ad133d43b58", - "@technote-space/github-action-log-helper@^0.1.36": "https://registry.yarnpkg.com/@technote-space/github-action-log-helper/-/github-action-log-helper-0.1.37.tgz#054a3fbfdc46d8fb363b1ba848ae9ad133d43b58", - "@technote-space/github-action-log-helper@^0.1.37": "https://registry.yarnpkg.com/@technote-space/github-action-log-helper/-/github-action-log-helper-0.1.37.tgz#054a3fbfdc46d8fb363b1ba848ae9ad133d43b58", - "@technote-space/github-action-test-helper@^0.7.24": "https://registry.yarnpkg.com/@technote-space/github-action-test-helper/-/github-action-test-helper-0.7.24.tgz#e95ad667b2911bcc57f1b0161e6c171fffaa2c1e", + "@technote-space/filter-github-action@^0.5.27": "https://registry.yarnpkg.com/@technote-space/filter-github-action/-/filter-github-action-0.5.45.tgz#1c6ff2ef490ad17a9f8ee25d244e6a3ef1281b81", + "@technote-space/filter-github-action@^0.5.45": "https://registry.yarnpkg.com/@technote-space/filter-github-action/-/filter-github-action-0.5.45.tgz#1c6ff2ef490ad17a9f8ee25d244e6a3ef1281b81", + "@technote-space/github-action-helper@^5.2.19": "https://registry.yarnpkg.com/@technote-space/github-action-helper/-/github-action-helper-5.2.19.tgz#4c9cb2fc102762c32ee7c16eab909d590ae67a79", + "@technote-space/github-action-helper@^5.2.9": "https://registry.yarnpkg.com/@technote-space/github-action-helper/-/github-action-helper-5.2.19.tgz#4c9cb2fc102762c32ee7c16eab909d590ae67a79", + "@technote-space/github-action-log-helper@^0.1.27": "https://registry.yarnpkg.com/@technote-space/github-action-log-helper/-/github-action-log-helper-0.1.39.tgz#5496d879100e0f924f4f2a55babd25e2cd5f93be", + "@technote-space/github-action-log-helper@^0.1.28": "https://registry.yarnpkg.com/@technote-space/github-action-log-helper/-/github-action-log-helper-0.1.39.tgz#5496d879100e0f924f4f2a55babd25e2cd5f93be", + "@technote-space/github-action-log-helper@^0.1.39": "https://registry.yarnpkg.com/@technote-space/github-action-log-helper/-/github-action-log-helper-0.1.39.tgz#5496d879100e0f924f4f2a55babd25e2cd5f93be", + "@technote-space/github-action-test-helper@^0.7.25": "https://registry.yarnpkg.com/@technote-space/github-action-test-helper/-/github-action-test-helper-0.7.25.tgz#5f88b24729ff3136da4315415093d10f9ffdc402", "@technote-space/release-github-actions-cli@^1.8.6": "https://registry.yarnpkg.com/@technote-space/release-github-actions-cli/-/release-github-actions-cli-1.8.6.tgz#e23b59db456935bea2dbc27e8bf61ec35e9e67bc", "@technote-space/release-github-actions@^7.0.6": "https://registry.yarnpkg.com/@technote-space/release-github-actions/-/release-github-actions-7.0.6.tgz#7c65e40e0ed2c41ec6a19816310ffece3f27dd1b", "@tootallnate/once@1": "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82", @@ -178,8 +177,8 @@ "@types/jest@^27.0.1": "https://registry.yarnpkg.com/@types/jest/-/jest-27.0.1.tgz#fafcc997da0135865311bb1215ba16dba6bdf4ca", "@types/json-schema@^7.0.7": "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.9.tgz#97edc9037ea0c38585320b28964dde3b39e4660d", "@types/minimist@^1.2.0": "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.2.tgz#ee771e2ba4b3dc5b372935d549fd9617bf345b8c", - "@types/node@*": "https://registry.yarnpkg.com/@types/node/-/node-16.7.4.tgz#68a9384694af63ceab8848e95d76d9a3519e84b6", - "@types/node@^16.7.4": "https://registry.yarnpkg.com/@types/node/-/node-16.7.4.tgz#68a9384694af63ceab8848e95d76d9a3519e84b6", + "@types/node@*": "https://registry.yarnpkg.com/@types/node/-/node-16.7.5.tgz#96142b243977b03d99c338fdb09241d286102711", + "@types/node@^16.7.5": "https://registry.yarnpkg.com/@types/node/-/node-16.7.5.tgz#96142b243977b03d99c338fdb09241d286102711", "@types/normalize-package-data@^2.4.0": "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301", "@types/parse-json@^4.0.0": "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0", "@types/prettier@^2.1.5": "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.3.2.tgz#fc8c2825e4ed2142473b4a81064e6e081463d1b3", @@ -693,7 +692,7 @@ "wrap-ansi@^7.0.0": "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43", "wrappy@1": "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f", "write-file-atomic@^3.0.0": "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8", - "ws@^7.4.6": "https://registry.yarnpkg.com/ws/-/ws-7.5.3.tgz#160835b63c7d97bfab418fc1b8a9fced2ac01a74", + "ws@^7.4.6": "https://registry.yarnpkg.com/ws/-/ws-7.5.4.tgz#56bfa20b167427e138a7795de68d134fe92e21f9", "xml-name-validator@^3.0.0": "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a", "xmlchars@^2.2.0": "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb", "y18n@^5.0.5": "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55", diff --git a/node_modules/@technote-space/filter-github-action/package.json b/node_modules/@technote-space/filter-github-action/package.json index d86da203..21859211 100644 --- a/node_modules/@technote-space/filter-github-action/package.json +++ b/node_modules/@technote-space/filter-github-action/package.json @@ -1,6 +1,6 @@ { "name": "@technote-space/filter-github-action", - "version": "0.5.44", + "version": "0.5.45", "description": "Helper to filter GitHub Action.", "keywords": [ "github", @@ -38,14 +38,14 @@ "@actions/github": "^5.0.0" }, "devDependencies": { - "@technote-space/github-action-test-helper": "^0.7.24", + "@technote-space/github-action-test-helper": "^0.7.25", "@types/jest": "^27.0.1", - "@types/node": "^16.7.2", + "@types/node": "^16.7.5", "@typescript-eslint/eslint-plugin": "^4.29.3", "@typescript-eslint/parser": "^4.29.3", "eslint": "^7.32.0", - "jest": "^27.0.6", - "jest-circus": "^27.0.6", + "jest": "^27.1.0", + "jest-circus": "^27.1.0", "ts-jest": "^27.0.5", "typescript": "^4.4.2" }, diff --git a/node_modules/@technote-space/github-action-helper/dist/api-helper.js b/node_modules/@technote-space/github-action-helper/dist/api-helper.js index d5d686fd..3f24f9ab 100644 --- a/node_modules/@technote-space/github-action-helper/dist/api-helper.js +++ b/node_modules/@technote-space/github-action-helper/dist/api-helper.js @@ -47,13 +47,13 @@ class ApiHelper { /** * @return {string|boolean} sender */ - this.getSender = () => this.sender ? this.sender : context_helper_1.getSender(this.context); + this.getSender = () => this.sender ? this.sender : (0, context_helper_1.getSender)(this.context); /** * @param {boolean} encode encode? * @return {string} ref for update */ this.getRefForUpdate = async (encode) => { - const ref = this.refForUpdate ? this.refForUpdate : (utils_1.isPrRef(this.context) ? ('heads/' + (await this.getPR()).head.ref) : utils_1.getRefForUpdate(this.context)); + const ref = this.refForUpdate ? this.refForUpdate : ((0, utils_1.isPrRef)(this.context) ? ('heads/' + (await this.getPR()).head.ref) : (0, utils_1.getRefForUpdate)(this.context)); return encode ? encodeURIComponent(ref) : ref; }; /** @@ -108,7 +108,7 @@ class ApiHelper { */ this.createTree = async (blobs) => this.getResponseData(this.octokit.rest.git.createTree({ ...this.context.repo, - 'base_tree': utils_1.ensureNotNull(utils_1.objectGet((await this.getCommit()), 'tree.sha')), + 'base_tree': (0, utils_1.ensureNotNull)((0, utils_1.objectGet)((await this.getCommit()), 'tree.sha')), tree: blobs.map(blob => ({ path: blob.path, type: 'blob', @@ -153,7 +153,7 @@ class ApiHelper { await this.octokit.rest.git.updateRef({ ...this.context.repo, ref: refName, - sha: utils_1.ensureNotNull(commit.sha), + sha: (0, utils_1.ensureNotNull)(commit.sha), force, }); return true; @@ -177,7 +177,7 @@ class ApiHelper { await this.octokit.rest.git.createRef({ ...this.context.repo, ref: refName, - sha: utils_1.ensureNotNull(commit.sha), + sha: (0, utils_1.ensureNotNull)(commit.sha), }); }; /** @@ -197,7 +197,7 @@ class ApiHelper { this.findPullRequest = async (branchName) => { const response = await this.octokit.rest.pulls.list({ ...this.context.repo, - head: `${this.context.repo.owner}:${utils_1.getBranch(branchName, false)}`, + head: `${this.context.repo.owner}:${(0, utils_1.getBranch)(branchName, false)}`, }); if (response.data.length) { return response.data[0]; @@ -221,7 +221,7 @@ class ApiHelper { */ this.pullsCreate = async (branchName, detail) => this.getResponseData(this.octokit.rest.pulls.create({ ...this.context.repo, - head: `${this.context.repo.owner}:${utils_1.getBranch(branchName, false)}`, + head: `${this.context.repo.owner}:${(0, utils_1.getBranch)(branchName, false)}`, base: (await this.getRefForUpdate(false)).replace(/^heads\//, ''), ...detail, })); @@ -241,7 +241,7 @@ class ApiHelper { * @return {object} branch info */ this.getBranchInfo = (branch) => { - const branchName = utils_1.getBranch(branch, false); + const branchName = (0, utils_1.getBranch)(branch, false); const headName = `heads/${branchName}`; const refName = `refs/${headName}`; return { branchName, headName, refName }; @@ -252,7 +252,7 @@ class ApiHelper { * @return {Promise} info */ this.createPulls = async (createBranchName, detail) => { - this.callLogger(async (logger) => logger.startProcess('Creating PullRequest... [%s] -> [%s]', utils_1.getBranch(createBranchName, false), await this.getRefForUpdate(false))); + this.callLogger(async (logger) => logger.startProcess('Creating PullRequest... [%s] -> [%s]', (0, utils_1.getBranch)(createBranchName, false), await this.getRefForUpdate(false))); const created = await this.pullsCreate(createBranchName, detail); this.callLogger(logger => logger.endProcess()); return Object.assign({ isPrCreated: true }, created); @@ -265,7 +265,7 @@ class ApiHelper { this.pullsCreateOrUpdate = async (createBranchName, detail) => { const pullRequest = await this.findPullRequest(createBranchName); if (pullRequest) { - this.callLogger(async (logger) => logger.startProcess('Updating PullRequest... [%s] -> [%s]', utils_1.getBranch(createBranchName, false), await this.getRefForUpdate(false))); + this.callLogger(async (logger) => logger.startProcess('Updating PullRequest... [%s] -> [%s]', (0, utils_1.getBranch)(createBranchName, false), await this.getRefForUpdate(false))); const updated = await this.pullsUpdate(pullRequest.number, detail); this.callLogger(logger => logger.endProcess()); return Object.assign({ isPrCreated: false }, updated); @@ -280,7 +280,7 @@ class ApiHelper { this.pullsCreateOrComment = async (createBranchName, detail) => { const pullRequest = await this.findPullRequest(createBranchName); if (pullRequest) { - this.callLogger(async (logger) => logger.startProcess('Creating comment to PullRequest... [%s] -> [%s]', utils_1.getBranch(createBranchName, false), await this.getRefForUpdate(false))); + this.callLogger(async (logger) => logger.startProcess('Creating comment to PullRequest... [%s] -> [%s]', (0, utils_1.getBranch)(createBranchName, false), await this.getRefForUpdate(false))); await this.createCommentToPr(createBranchName, detail.body); this.callLogger(logger => logger.endProcess()); return Object.assign({ isPrCreated: false }, pullRequest); @@ -352,7 +352,7 @@ class ApiHelper { this.callLogger(logger => logger.startProcess('Updating ref... [%s] [%s]', ref, commit.sha)); if (await this.updateRef(commit, ref, false)) { process.env.GITHUB_SHA = commit.sha; - core_1.exportVariable('GITHUB_SHA', commit.sha); + (0, core_1.exportVariable)('GITHUB_SHA', commit.sha); } this.callLogger(logger => logger.endProcess()); return true; @@ -424,8 +424,8 @@ class ApiHelper { const user = data; return { login: user.login, - email: utils_1.ensureNotNull(user.email), - name: utils_1.ensureNotNull(user.name), + email: (0, utils_1.ensureNotNull)(user.email), + name: (0, utils_1.ensureNotNull)(user.name), id: user.id, }; }; @@ -444,7 +444,7 @@ class ApiHelper { this.getTags = async () => (await this.octokit.paginate(this.octokit.rest.git.listMatchingRefs, { ...this.context.repo, ref: 'tags/', - })).map((item) => utils_1.trimRef(item.ref)); + })).map((item) => (0, utils_1.trimRef)(item.ref)); /** * @return {Promise} tag */ @@ -452,15 +452,15 @@ class ApiHelper { /** * @return {Promise} tag */ - this.getNewPatchVersion = async () => utils_1.generateNewPatchVersion(await this.getLastTag()); + this.getNewPatchVersion = async () => (0, utils_1.generateNewPatchVersion)(await this.getLastTag()); /** * @return {Promise} tag */ - this.getNewMinorVersion = async () => utils_1.generateNewMinorVersion(await this.getLastTag()); + this.getNewMinorVersion = async () => (0, utils_1.generateNewMinorVersion)(await this.getLastTag()); /** * @return {Promise} tag */ - this.getNewMajorVersion = async () => utils_1.generateNewMajorVersion(await this.getLastTag()); + this.getNewMajorVersion = async () => (0, utils_1.generateNewMajorVersion)(await this.getLastTag()); this.branch = options === null || options === void 0 ? void 0 : options.branch; this.sender = options === null || options === void 0 ? void 0 : options.sender; this.refForUpdate = options === null || options === void 0 ? void 0 : options.refForUpdate; diff --git a/node_modules/@technote-space/github-action-helper/dist/command.js b/node_modules/@technote-space/github-action-helper/dist/command.js index 8d1da376..c4e674d6 100644 --- a/node_modules/@technote-space/github-action-helper/dist/command.js +++ b/node_modules/@technote-space/github-action-helper/dist/command.js @@ -116,7 +116,7 @@ class Command { */ this.execCommand = (command, quiet, suppressOutput, stderrToStdout, cwd) => { return new Promise((resolve, reject) => { - const subProcess = child_process_1.spawn(command, [], { shell: true, cwd, stdio: [process.stdin, 'pipe', 'pipe'] }); + const subProcess = (0, child_process_1.spawn)(command, [], { shell: true, cwd, stdio: [process.stdin, 'pipe', 'pipe'] }); let stdout = ''; let stderr = ''; subProcess.stdout.on('data', (data) => { @@ -191,7 +191,7 @@ class Command { */ this.execAsync = async (options) => { const { command, args, cwd, altCommand, quiet = false, suppressError = false, suppressOutput = false, stderrToStdout = false } = options; - const commandArgs = undefined === args ? '' : shell_escape_1.default(args.map(item => item.trim()).filter(item => item.length)); + const commandArgs = undefined === args ? '' : (0, shell_escape_1.default)(args.map(item => item.trim()).filter(item => item.length)); const commandWithArgs = command + (commandArgs.length ? ' ' + commandArgs : ''); if (undefined !== altCommand) { if (altCommand) { @@ -204,10 +204,10 @@ class Command { if (this.useExec) { return new Promise((resolve, reject) => { if (typeof cwd === 'undefined') { - child_process_1.exec(this.getCommand(commandWithArgs, quiet, suppressError), this.execCallback(commandWithArgs, altCommand, quiet, suppressOutput, stderrToStdout, resolve, reject)); + (0, child_process_1.exec)(this.getCommand(commandWithArgs, quiet, suppressError), this.execCallback(commandWithArgs, altCommand, quiet, suppressOutput, stderrToStdout, resolve, reject)); } else { - child_process_1.exec(this.getCommand(commandWithArgs, quiet, suppressError), { cwd }, this.execCallback(commandWithArgs, altCommand, quiet, suppressOutput, stderrToStdout, resolve, reject)); + (0, child_process_1.exec)(this.getCommand(commandWithArgs, quiet, suppressError), { cwd }, this.execCallback(commandWithArgs, altCommand, quiet, suppressOutput, stderrToStdout, resolve, reject)); } }); } diff --git a/node_modules/@technote-space/github-action-helper/dist/context-helper.js b/node_modules/@technote-space/github-action-helper/dist/context-helper.js index f9579c38..806d7144 100644 --- a/node_modules/@technote-space/github-action-helper/dist/context-helper.js +++ b/node_modules/@technote-space/github-action-helper/dist/context-helper.js @@ -24,20 +24,20 @@ const isWorkflowRun = (context) => 'workflow_run' === context.eventName; exports.isWorkflowRun = isWorkflowRun; const isCreateTag = (context) => 'create' === context.eventName && 'tag' === context.payload.ref_type; exports.isCreateTag = isCreateTag; -const getTagName = (context) => exports.isRelease(context) ? context.payload.release.tag_name : (/^refs\/tags\//.test(context.ref) ? context.ref.replace(/^refs\/tags\//, '') : ''); +const getTagName = (context) => (0, exports.isRelease)(context) ? context.payload.release.tag_name : (/^refs\/tags\//.test(context.ref) ? context.ref.replace(/^refs\/tags\//, '') : ''); exports.getTagName = getTagName; const getSender = (context) => context.payload.sender && context.payload.sender.type === 'User' ? context.payload.sender.login : false; exports.getSender = getSender; const getRepository = (context) => `${context.repo.owner}/${context.repo.repo}`; exports.getRepository = getRepository; -const getGitUrlAuthInfo = (token) => token ? `${utils_1.getActor()}:${token}@` : ''; +const getGitUrlAuthInfo = (token) => token ? `${(0, utils_1.getActor)()}:${token}@` : ''; const getGitUrlWithToken = (context, token) => `https://${getGitUrlAuthInfo(token)}github.com/${context.repo.owner}/${context.repo.repo}.git`; exports.getGitUrlWithToken = getGitUrlWithToken; -const getGitUrl = (context, accessTokenRequired = true) => exports.getGitUrlWithToken(context, utils_1.getAccessToken(accessTokenRequired)); +const getGitUrl = (context, accessTokenRequired = true) => (0, exports.getGitUrlWithToken)(context, (0, utils_1.getAccessToken)(accessTokenRequired)); exports.getGitUrl = getGitUrl; const showActionInfo = (rootDir, logger, context) => { - const info = utils_1.getBuildInfo(path_1.default.resolve(rootDir, 'build.json')); - const tagName = exports.getTagName(context); + const info = (0, utils_1.getBuildInfo)(path_1.default.resolve(rootDir, 'build.json')); + const tagName = (0, exports.getTagName)(context); const separator = '=================================================='; logger.log(); logger.log(separator); @@ -70,9 +70,9 @@ const showActionInfo = (rootDir, logger, context) => { logger.log('repo: %s', context.repo.repo); logger.log(); logger.startProcess('Dump context'); - console.log(utils_1.mask(context)); + console.log((0, utils_1.mask)(context)); logger.startProcess('Dump Payload'); - console.log(utils_1.mask(context.payload)); + console.log((0, utils_1.mask)(context.payload)); logger.endProcess(); logger.log(separator); logger.log(); diff --git a/node_modules/@technote-space/github-action-helper/dist/git-helper.js b/node_modules/@technote-space/github-action-helper/dist/git-helper.js index c030400f..d47626d7 100644 --- a/node_modules/@technote-space/github-action-helper/dist/git-helper.js +++ b/node_modules/@technote-space/github-action-helper/dist/git-helper.js @@ -25,11 +25,11 @@ class GitHelper { /** * @return {boolean} should suppress error */ - this.shouldSuppressError = () => !utils_1.isCommandDebug(); + this.shouldSuppressError = () => !(0, utils_1.isCommandDebug)(); /** * @return {boolean} is quiet? */ - this.isQuiet = () => !utils_1.isOutputDebug() && (!this.origin || this.quietIfNotOrigin); + this.isQuiet = () => !(0, utils_1.isOutputDebug)() && (!this.origin || this.quietIfNotOrigin); /** * @param {string} workDir work dir * @param {string[]} commands commands @@ -43,16 +43,16 @@ class GitHelper { const output = (await this.command.execAsync({ command, cwd: workDir })); result.push({ command: output.command, - stdout: utils_1.split(output.stdout), - stderr: utils_1.split(output.stderr), + stdout: (0, utils_1.split)(output.stdout), + stderr: (0, utils_1.split)(output.stderr), }); } else { const output = (await this.command.execAsync({ cwd: workDir, ...command })); result.push({ command: output.command, - stdout: utils_1.split(output.stdout), - stderr: utils_1.split(output.stderr), + stdout: (0, utils_1.split)(output.stdout), + stderr: (0, utils_1.split)(output.stderr), }); } } @@ -70,7 +70,7 @@ class GitHelper { * @return {Promise} void */ this.initialize = async (workDir, refresh = true) => { - if (utils_1.isCloned(workDir) && !refresh) { + if ((0, utils_1.isCloned)(workDir) && !refresh) { return; } if (fs_1.default.existsSync(workDir)) { @@ -97,7 +97,7 @@ class GitHelper { * @param {Context} context context * @return {string} origin */ - this.getRemote = (context) => { var _a; return (_a = this.origin) !== null && _a !== void 0 ? _a : context_helper_1.getGitUrlWithToken(context, this.token); }; + this.getRemote = (context) => { var _a; return (_a = this.origin) !== null && _a !== void 0 ? _a : (0, context_helper_1.getGitUrlWithToken)(context, this.token); }; /** * @param {string} workDir work dir * @param {Context} context context @@ -107,7 +107,7 @@ class GitHelper { await this.initialize(workDir, false); await this.runCommand(workDir, { command: 'git remote add', - args: [this.getRemoteName(), context_helper_1.getGitUrlWithToken(context, this.token)], + args: [this.getRemoteName(), (0, context_helper_1.getGitUrlWithToken)(context, this.token)], stderrToStdout: this.isQuiet(), altCommand: `git remote add ${this.getRemoteName()}`, suppressError: this.shouldSuppressError(), @@ -119,7 +119,7 @@ class GitHelper { */ this.getCurrentBranchName = async (workDir) => { var _a, _b; - if (!utils_1.isCloned(workDir)) { + if (!(0, utils_1.isCloned)(workDir)) { return ''; } return (_b = (_a = (await this.runCommand(workDir, { @@ -177,13 +177,13 @@ class GitHelper { * @return {Promise} void */ this.clone = async (workDir, context) => { - if (utils_1.isCloned(workDir)) { + if ((0, utils_1.isCloned)(workDir)) { return; } - if (utils_1.isBranch(context)) { - await this.cloneBranch(workDir, utils_1.getBranch(context), context); + if ((0, utils_1.isBranch)(context)) { + await this.cloneBranch(workDir, (0, utils_1.getBranch)(context), context); } - else if (utils_1.isPrRef(context)) { + else if ((0, utils_1.isPrRef)(context)) { await this.clonePR(workDir, context); } else { @@ -225,7 +225,7 @@ class GitHelper { * @return {Promise} void */ this.checkout = async (workDir, context) => { - await this.fetchOrigin(workDir, context, ['--no-tags'], [utils_1.getRefspec(context)]); + await this.fetchOrigin(workDir, context, ['--no-tags'], [(0, utils_1.getRefspec)(context)]); await this.runCommand(workDir, [ { command: 'git checkout', @@ -241,7 +241,7 @@ class GitHelper { * @return {Promise} void */ this.fetchBranch = async (workDir, branch, context) => { - const branchName = utils_1.getBranch(branch, false); + const branchName = (0, utils_1.getBranch)(branch, false); await this.runCommand(workDir, { command: 'git fetch', args: ['--prune', '--no-tags', '--no-recurse-submodules', this.cloneDepth, this.getRemote(context), `+refs/heads/${branchName}:refs/remotes/${this.getRemoteName()}/${branchName}`], @@ -326,7 +326,7 @@ class GitHelper { * @return {Promise} diff */ this.getRefDiff = async (workDir, baseRef, compareRef, diffFilter, dot) => { - const toDiffRef = (ref) => 'HEAD' === ref ? 'HEAD' : (utils_1.isPrRef(ref) ? ref.replace(/^refs\//, '') : `${this.getRemoteName()}/${utils_1.getBranch(ref, false)}`); + const toDiffRef = (ref) => 'HEAD' === ref ? 'HEAD' : ((0, utils_1.isPrRef)(ref) ? ref.replace(/^refs\//, '') : `${this.getRemoteName()}/${(0, utils_1.getBranch)(ref, false)}`); return (await this.runCommand(workDir, { command: 'git diff', args: [`${toDiffRef(baseRef)}${dot !== null && dot !== void 0 ? dot : '...'}${toDiffRef(compareRef)}`, '--name-only', diffFilter ? `--diff-filter=${diffFilter}` : ''], @@ -392,7 +392,7 @@ class GitHelper { */ this.fetchTags = async (workDir, context, splitSize = 20) => { await this.runCommand(workDir, [ - ...utils_1.arrayChunk(await this.getTags(workDir, { quiet: true }), splitSize).map(tags => ({ + ...(0, utils_1.arrayChunk)(await this.getTags(workDir, { quiet: true }), splitSize).map(tags => ({ command: 'git tag', args: ['-d', ...tags], quiet: true, @@ -414,7 +414,7 @@ class GitHelper { */ this.deleteTag = async (workDir, tags, context, splitSize = 20) => { const getTagRef = (tag) => /^(refs\/)?tags\//.test(tag) ? tag : `tags/${tag}`; - await this.runCommand(workDir, utils_1.arrayChunk((typeof tags === 'string' ? [tags] : tags).map(getTagRef), splitSize).map(tags => ({ + await this.runCommand(workDir, (0, utils_1.arrayChunk)((typeof tags === 'string' ? [tags] : tags).map(getTagRef), splitSize).map(tags => ({ command: 'git push', args: [this.getRemote(context), '--delete', ...tags], stderrToStdout: this.isQuiet(), @@ -453,7 +453,7 @@ class GitHelper { */ this.deleteLocalTag = async (workDir, tags, splitSize = 20) => { const getTag = (tag) => tag.replace(/^(refs\/)?tags\//, ''); - await this.runCommand(workDir, utils_1.arrayChunk((typeof tags === 'string' ? [tags] : tags).map(getTag), splitSize).map(tags => ({ + await this.runCommand(workDir, (0, utils_1.arrayChunk)((typeof tags === 'string' ? [tags] : tags).map(getTag), splitSize).map(tags => ({ command: 'git tag', args: ['-d', ...tags], suppressError: this.shouldSuppressError(), @@ -513,7 +513,7 @@ class GitHelper { */ this.getLastTag = async (workDir) => { var _a, _b; - if (!utils_1.isCloned(workDir)) { + if (!(0, utils_1.isCloned)(workDir)) { throw new Error('Not a git repository'); } return 'v' + ((_b = (_a = (await this.getTags(workDir)).filter(tag => /^v?\d+(\.\d+)*$/.test(tag)).sort(utils_1.versionCompare).reverse()[0]) === null || _a === void 0 ? void 0 : _a.replace(/^v/, '')) !== null && _b !== void 0 ? _b : '0.0.0'); @@ -522,19 +522,19 @@ class GitHelper { * @param {string} workDir work dir * @return {string} tag */ - this.getNewPatchVersion = async (workDir) => utils_1.generateNewPatchVersion(await this.getLastTag(workDir)); + this.getNewPatchVersion = async (workDir) => (0, utils_1.generateNewPatchVersion)(await this.getLastTag(workDir)); /** * @param {string} workDir work dir * @return {string} tag */ - this.getNewMinorVersion = async (workDir) => utils_1.generateNewMinorVersion(await this.getLastTag(workDir)); + this.getNewMinorVersion = async (workDir) => (0, utils_1.generateNewMinorVersion)(await this.getLastTag(workDir)); /** * @param {string} workDir work dir * @return {string} tag */ - this.getNewMajorVersion = async (workDir) => utils_1.generateNewMajorVersion(await this.getLastTag(workDir)); + this.getNewMajorVersion = async (workDir) => (0, utils_1.generateNewMajorVersion)(await this.getLastTag(workDir)); this.command = new index_1.Command(logger); - this.token = (_a = options === null || options === void 0 ? void 0 : options.token) !== null && _a !== void 0 ? _a : utils_1.getAccessToken(true); + this.token = (_a = options === null || options === void 0 ? void 0 : options.token) !== null && _a !== void 0 ? _a : (0, utils_1.getAccessToken)(true); if (options && options.depth) { this.cloneDepth = options.depth > 0 ? `--depth=${options.depth}` : ''; // eslint-disable-line no-magic-numbers } diff --git a/node_modules/@technote-space/github-action-helper/dist/utils.js b/node_modules/@technote-space/github-action-helper/dist/utils.js index 78b83af8..09c6afbe 100644 --- a/node_modules/@technote-space/github-action-helper/dist/utils.js +++ b/node_modules/@technote-space/github-action-helper/dist/utils.js @@ -33,7 +33,7 @@ const parseVersion = (version, options) => { if (!matches) { return undefined; } - const fragments = exports.split(matches[1], '.'); + const fragments = (0, exports.split)(matches[1], '.'); // eslint-disable-next-line no-magic-numbers const length = (options === null || options === void 0 ? void 0 : options.slice) && options.slice < 0 ? ((_a = options.length) !== null && _a !== void 0 ? _a : 3) : ((_c = (_b = options === null || options === void 0 ? void 0 : options.slice) !== null && _b !== void 0 ? _b : options === null || options === void 0 ? void 0 : options.length) !== null && _c !== void 0 ? _c : 3); // eslint-disable-next-line no-magic-numbers @@ -50,7 +50,7 @@ const parseVersion = (version, options) => { }; exports.parseVersion = parseVersion; const normalizeVersion = (version, options) => { - const parsed = exports.parseVersion(version, options); + const parsed = (0, exports.parseVersion)(version, options); if (!parsed) { return options === null || options === void 0 ? void 0 : options.fallback; } @@ -60,7 +60,7 @@ const normalizeVersion = (version, options) => { return parsed.core + (parsed.preRelease ? `-${parsed.preRelease}` : '') + (parsed.build ? `+${parsed.build}` : ''); }; exports.normalizeVersion = normalizeVersion; -const isValidSemanticVersioning = (version, strict) => exports.parseVersion(version, { strict }) !== undefined; +const isValidSemanticVersioning = (version, strict) => (0, exports.parseVersion)(version, { strict }) !== undefined; exports.isValidSemanticVersioning = isValidSemanticVersioning; /* istanbul ignore next */ /* @@ -84,51 +84,51 @@ const getPrHeadRef = (ref) => getRef(ref).replace(/^refs\/pull\/(\d+)\/(merge|he exports.getPrHeadRef = getPrHeadRef; const getRefForUpdate = (ref) => getRef(ref).replace(/^refs\//, ''); exports.getRefForUpdate = getRefForUpdate; -const getBranch = (ref, defaultIsEmpty = true) => exports.isBranch(ref) ? +const getBranch = (ref, defaultIsEmpty = true) => (0, exports.isBranch)(ref) ? getRef(ref).replace(/^refs\/heads\//, '') : - (exports.isRemoteBranch(ref) ? getRef(ref).replace(/^refs\/remotes\/origin\//, '') : - (defaultIsEmpty ? '' : exports.getRefForUpdate(ref))); + ((0, exports.isRemoteBranch)(ref) ? getRef(ref).replace(/^refs\/remotes\/origin\//, '') : + (defaultIsEmpty ? '' : (0, exports.getRefForUpdate)(ref))); exports.getBranch = getBranch; const getPrBranch = (context) => { var _a, _b; return (_b = (_a = context.payload.pull_request) === null || _a === void 0 ? void 0 : _a.head.ref) !== null && _b !== void 0 ? _b : ''; }; exports.getPrBranch = getPrBranch; -const normalizeRef = (ref) => exports.isRef(ref) ? getRef(ref) : `refs/heads/${getRef(ref)}`; +const normalizeRef = (ref) => (0, exports.isRef)(ref) ? getRef(ref) : `refs/heads/${getRef(ref)}`; exports.normalizeRef = normalizeRef; const trimRef = (ref) => getRef(ref).replace(/^refs\/(heads|tags|pull)\//, ''); exports.trimRef = trimRef; -const getTag = (ref) => exports.isTagRef(ref) ? exports.trimRef(ref) : ''; +const getTag = (ref) => (0, exports.isTagRef)(ref) ? (0, exports.trimRef)(ref) : ''; exports.getTag = getTag; -const saveTarget = (ref, origin) => exports.isTagRef(ref) ? 'tags' : exports.isPrRef(ref) ? `${origin}/pull` : origin; +const saveTarget = (ref, origin) => (0, exports.isTagRef)(ref) ? 'tags' : (0, exports.isPrRef)(ref) ? `${origin}/pull` : origin; // e.g. // refs/heads/master // refs/pull/123/merge // refs/tags/v1.2.3 -const getRemoteRefspec = (ref) => exports.normalizeRef(ref); +const getRemoteRefspec = (ref) => (0, exports.normalizeRef)(ref); exports.getRemoteRefspec = getRemoteRefspec; // e.g. // origin/master // origin/pull/123/merge // tags/v1.2.3 -const getLocalRefspec = (ref, origin = 'origin') => `${saveTarget(ref, origin)}/${exports.trimRef(ref)}`; +const getLocalRefspec = (ref, origin = 'origin') => `${saveTarget(ref, origin)}/${(0, exports.trimRef)(ref)}`; exports.getLocalRefspec = getLocalRefspec; // e.g. // refs/heads/master:refs/remotes/origin/master // refs/pull/123/merge:refs/pull/123/merge // refs/tags/v1.2.3:refs/tags/v1.2.3 -const getRefspec = (ref, origin = 'origin') => `${exports.getRemoteRefspec(ref)}:refs/${exports.getLocalRefspec(ref, `remotes/${origin}`)}`; +const getRefspec = (ref, origin = 'origin') => `${(0, exports.getRemoteRefspec)(ref)}:refs/${(0, exports.getLocalRefspec)(ref, `remotes/${origin}`)}`; exports.getRefspec = getRefspec; -const getAccessToken = (required) => core_1.getInput('GITHUB_TOKEN', { required }); +const getAccessToken = (required) => (0, core_1.getInput)('GITHUB_TOKEN', { required }); exports.getAccessToken = getAccessToken; -const getOctokit = (token) => github_1.getOctokit(token !== null && token !== void 0 ? token : exports.getAccessToken(true), {}); +const getOctokit = (token) => (0, github_1.getOctokit)(token !== null && token !== void 0 ? token : (0, exports.getAccessToken)(true), {}); exports.getOctokit = getOctokit; const getActor = () => process.env.GITHUB_ACTOR || ''; exports.getActor = getActor; const escapeRegExp = (text) => text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); exports.escapeRegExp = escapeRegExp; -const getRegExp = (value) => new RegExp(exports.escapeRegExp(value)); +const getRegExp = (value) => new RegExp((0, exports.escapeRegExp)(value)); exports.getRegExp = getRegExp; -const getPrefixRegExp = (value, flags = '') => new RegExp('^' + exports.escapeRegExp(value), flags); +const getPrefixRegExp = (value, flags = '') => new RegExp('^' + (0, exports.escapeRegExp)(value), flags); exports.getPrefixRegExp = getPrefixRegExp; -const getSuffixRegExp = (value, flags = '') => new RegExp(exports.escapeRegExp(value) + '$', flags); +const getSuffixRegExp = (value, flags = '') => new RegExp((0, exports.escapeRegExp)(value) + '$', flags); exports.getSuffixRegExp = getSuffixRegExp; const getBoolValue = (input) => !['false', '0', '', 'no', 'n'].includes(input.trim().toLowerCase()); exports.getBoolValue = getBoolValue; @@ -139,8 +139,8 @@ exports.getWorkspace = getWorkspace; const split = (value, separator = /\r?\n/, limit) => value.length ? value.split(separator, limit) : []; exports.split = split; const getArrayInput = (name, required = false, separator = ',', unique = true) => { - const arrayInput = core_1.getInput(name, { required }).split(/\r?\n/).reduce((acc, line) => acc.concat(separator ? line.split(separator) : line).filter(item => item).map(item => item.trim()), []); - return unique ? exports.uniqueArray(arrayInput) : arrayInput; + const arrayInput = (0, core_1.getInput)(name, { required }).split(/\r?\n/).reduce((acc, line) => acc.concat(separator ? line.split(separator) : line).filter(item => item).map(item => item.trim()), []); + return unique ? (0, exports.uniqueArray)(arrayInput) : arrayInput; }; exports.getArrayInput = getArrayInput; const sleep = async (millisecond) => new Promise(resolve => setTimeout(resolve, millisecond)); @@ -152,7 +152,7 @@ exports.useNpm = useNpm; const replaceAll = (string, key, value) => string.split(key).join(value); exports.replaceAll = replaceAll; const generateNewVersion = (lastTag, position) => { - const parsed = exports.parseVersion(lastTag); + const parsed = (0, exports.parseVersion)(lastTag); if (!parsed) { throw new Error('Invalid versioning'); } @@ -162,11 +162,11 @@ const generateNewVersion = (lastTag, position) => { return 'v' + parsed.fragments.slice(0, 3).join('.'); // eslint-disable-line no-magic-numbers }; exports.generateNewVersion = generateNewVersion; -const generateNewPatchVersion = (lastTag) => exports.generateNewVersion(lastTag); +const generateNewPatchVersion = (lastTag) => (0, exports.generateNewVersion)(lastTag); exports.generateNewPatchVersion = generateNewPatchVersion; -const generateNewMinorVersion = (lastTag) => exports.generateNewVersion(lastTag, 1); // eslint-disable-line no-magic-numbers +const generateNewMinorVersion = (lastTag) => (0, exports.generateNewVersion)(lastTag, 1); // eslint-disable-line no-magic-numbers exports.generateNewMinorVersion = generateNewMinorVersion; -const generateNewMajorVersion = (lastTag) => exports.generateNewVersion(lastTag, 0); // eslint-disable-line no-magic-numbers +const generateNewMajorVersion = (lastTag) => (0, exports.generateNewVersion)(lastTag, 0); // eslint-disable-line no-magic-numbers exports.generateNewMajorVersion = generateNewMajorVersion; // eslint-disable-next-line no-magic-numbers const arrayChunk = (array, size = 100) => { @@ -200,7 +200,7 @@ exports.versionCompare = versionCompare; const mask = (value, target = 'token') => { Object.keys(value).forEach(key => { if (value[key] && typeof value[key] === 'object') { - value[key] = exports.mask(value[key], target); + value[key] = (0, exports.mask)(value[key], target); } else if (target === key) { value[key] = '***'; @@ -212,21 +212,21 @@ exports.mask = mask; const replaceVariables = async (string, variables) => { let replaced = string; for (const variable of variables) { - if (exports.getRegExp(`\${${variable.key}}`).test(replaced)) { + if ((0, exports.getRegExp)(`\${${variable.key}}`).test(replaced)) { if (typeof variable.replace === 'string') { - replaced = exports.replaceAll(replaced, `\${${variable.key}}`, variable.replace); + replaced = (0, exports.replaceAll)(replaced, `\${${variable.key}}`, variable.replace); } else { - replaced = exports.replaceAll(replaced, `\${${variable.key}}`, await variable.replace()); + replaced = (0, exports.replaceAll)(replaced, `\${${variable.key}}`, await variable.replace()); } } } return replaced; }; exports.replaceVariables = replaceVariables; -const isCommandDebug = () => core_1.getInput('UTILS_COMMAND_DEBUG') === 'true' || process.env.UTILS_COMMAND_DEBUG === 'true'; +const isCommandDebug = () => (0, core_1.getInput)('UTILS_COMMAND_DEBUG') === 'true' || process.env.UTILS_COMMAND_DEBUG === 'true'; exports.isCommandDebug = isCommandDebug; -const isOutputDebug = () => core_1.getInput('UTILS_OUTPUT_DEBUG') === 'true' || process.env.UTILS_OUTPUT_DEBUG === 'true'; +const isOutputDebug = () => (0, core_1.getInput)('UTILS_OUTPUT_DEBUG') === 'true' || process.env.UTILS_OUTPUT_DEBUG === 'true'; exports.isOutputDebug = isOutputDebug; // eslint-disable-next-line @typescript-eslint/no-explicit-any const objectGet = (value, key, defaultValue) => { @@ -237,12 +237,12 @@ const objectGet = (value, key, defaultValue) => { // eslint-disable-next-line no-magic-numbers if (keys.length > 1) { // eslint-disable-next-line no-magic-numbers - return exports.objectGet(value[keys[0]], keys.slice(1).join('.'), defaultValue); + return (0, exports.objectGet)(value[keys[0]], keys.slice(1).join('.'), defaultValue); } return value[keys[0]]; }; exports.objectGet = objectGet; const ensureNotNullValue = (value, defaultValue) => value !== null && value !== void 0 ? value : defaultValue; exports.ensureNotNullValue = ensureNotNullValue; -const ensureNotNull = (value) => exports.ensureNotNullValue(value, ''); +const ensureNotNull = (value) => (0, exports.ensureNotNullValue)(value, ''); exports.ensureNotNull = ensureNotNull; diff --git a/node_modules/@technote-space/github-action-helper/package.json b/node_modules/@technote-space/github-action-helper/package.json index 7bd418f9..e6ab2172 100644 --- a/node_modules/@technote-space/github-action-helper/package.json +++ b/node_modules/@technote-space/github-action-helper/package.json @@ -1,6 +1,6 @@ { "name": "@technote-space/github-action-helper", - "version": "5.2.17", + "version": "5.2.19", "description": "Helper for GitHub Action.", "keywords": [ "github", @@ -37,30 +37,30 @@ "postpublish": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/pinst ] || pinst --enable" }, "dependencies": { - "@actions/core": "^1.4.0", + "@actions/core": "^1.5.0", "@actions/github": "^5.0.0", "@octokit/openapi-types": "^9.7.0", "@octokit/plugin-rest-endpoint-methods": "^5.8.0", - "@technote-space/github-action-log-helper": "^0.1.36", + "@technote-space/github-action-log-helper": "^0.1.39", "shell-escape": "^0.2.0", "sprintf-js": "^1.1.2" }, "devDependencies": { "@commitlint/cli": "^13.1.0", "@commitlint/config-conventional": "^13.1.0", - "@technote-space/github-action-test-helper": "^0.7.22", + "@technote-space/github-action-test-helper": "^0.7.25", "@types/jest": "^27.0.1", - "@types/node": "^16.6.1", - "@typescript-eslint/eslint-plugin": "^4.29.1", - "@typescript-eslint/parser": "^4.29.1", + "@types/node": "^16.7.5", + "@typescript-eslint/eslint-plugin": "^4.29.3", + "@typescript-eslint/parser": "^4.29.3", "eslint": "^7.32.0", - "husky": "^7.0.1", - "jest": "^27.0.6", - "jest-circus": "^27.0.6", + "husky": "^7.0.2", + "jest": "^27.1.0", + "jest-circus": "^27.1.0", "lint-staged": "^11.1.2", - "nock": "^13.1.1", - "ts-jest": "^27.0.4", - "typescript": "^4.3.5" + "nock": "^13.1.3", + "ts-jest": "^27.0.5", + "typescript": "^4.4.2" }, "publishConfig": { "access": "public" diff --git a/node_modules/@technote-space/github-action-log-helper/dist/logger.js b/node_modules/@technote-space/github-action-log-helper/dist/logger.js index 2072c377..79c83622 100644 --- a/node_modules/@technote-space/github-action-log-helper/dist/logger.js +++ b/node_modules/@technote-space/github-action-log-helper/dist/logger.js @@ -40,7 +40,7 @@ class Logger { * @param {any[]} args args * @return {string} output string */ - this.getOutputString = (message, ...args) => args.length ? sprintf_js_1.sprintf(this.replacer(message), ...args.map(arg => 'string' === typeof arg ? this.replacer(arg) : arg)) : this.replacer(message); + this.getOutputString = (message, ...args) => args.length ? (0, sprintf_js_1.sprintf)(this.replacer(message), ...args.map(arg => 'string' === typeof arg ? this.replacer(arg) : arg)) : this.replacer(message); /** * @param {function} output output function * @param {function|null} replacer replacer @@ -117,7 +117,7 @@ class Logger { return; } this.endProcess(); - core_1.startGroup(this.getOutputString(message, ...args)); + (0, core_1.startGroup)(this.getOutputString(message, ...args)); Logger.isRequiredEndGroup = true; }; /** @@ -128,7 +128,7 @@ class Logger { return; } if (Logger.isRequiredEndGroup) { - core_1.endGroup(); + (0, core_1.endGroup)(); Logger.isRequiredEndGroup = false; } }; @@ -143,9 +143,9 @@ class Logger { const backColor = (_b = setting === null || setting === void 0 ? void 0 : setting.backColor) !== null && _b !== void 0 ? _b : 'black'; const attribute = (_c = setting === null || setting === void 0 ? void 0 : setting.attribute) !== null && _c !== void 0 ? _c : 'none'; if (attribute !== 'none') { - return sprintf_js_1.sprintf('\x1b[3%d;4%d;%dm%s\x1b[0m', COLOR_MAP[color], COLOR_MAP[backColor], ATTRIBUTE_MAP[attribute], string); + return (0, sprintf_js_1.sprintf)('\x1b[3%d;4%d;%dm%s\x1b[0m', COLOR_MAP[color], COLOR_MAP[backColor], ATTRIBUTE_MAP[attribute], string); } - return sprintf_js_1.sprintf('\x1b[3%d;4%dm%s\x1b[0m', COLOR_MAP[color], COLOR_MAP[backColor], string); + return (0, sprintf_js_1.sprintf)('\x1b[3%d;4%dm%s\x1b[0m', COLOR_MAP[color], COLOR_MAP[backColor], string); }; /** * @param {string} string string diff --git a/node_modules/@technote-space/github-action-log-helper/dist/logger.js.map b/node_modules/@technote-space/github-action-log-helper/dist/logger.js.map index a5249424..6584e890 100644 --- a/node_modules/@technote-space/github-action-log-helper/dist/logger.js.map +++ b/node_modules/@technote-space/github-action-log-helper/dist/logger.js.map @@ -1 +1 @@ -{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":";;AAAA,uDAAuD;AACvD,2CAAmC;AACnC,wCAAgF;AAEhF,MAAM,SAAS,GAAO;IACpB,OAAO,EAAE,CAAC;IACV,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,CAAC;IACX,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,CAAC;IACZ,MAAM,EAAE,CAAC;IACT,OAAO,EAAE,CAAC;CACF,CAAC;AACX,MAAM,aAAa,GAAG;IACpB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,WAAW,EAAE,CAAC;IACd,QAAQ,EAAE,CAAC;CACH,CAAC;AASX,MAAM,KAAK,GAAG,CAAC,KAAa,EAAY,EAAE,CAAC,K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mCAAI,OAAO,CAAC;YAC5C,MAAM,SAAS,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,mCAAI,OAAO,CAAC;YAChD,MAAM,SAAS,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,mCAAI,MAAM,CAAC;YAC/C,IAAI,SAAS,KAAK,MAAM,EAAE;gBACxB,OAAO,IAAA,oBAAO,EAAC,2BAA2B,EAAE,SAAS,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,CAAC;aACvH;YAED,OAAO,IAAA,oBAAO,EAAC,wBAAwB,EAAE,SAAS,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,CAAC;QAC3F,CAAC,CAAC;QAEF;;;;WAIG;QACI,MAAC,GAAG,CAAC,MAAc,EAAE,OAAiB,EAAU,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QA7I7F,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAY,EAAU,EAAE,CAAC,IAAI,CAAC;IACvE,CAAC;;AAXH,yBA+JC;AA5JgB,yBAAkB,GAAG,KAAK,CAAC;AAsJ1C;;GAEG;AACW,sBAAe,GAAG,GAAS,EAAE;IACzC,MAAM,CAAC,kBAAkB,GAAG,KAAK,CAAC;AACpC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@technote-space/github-action-log-helper/package.json b/node_modules/@technote-space/github-action-log-helper/package.json index ecfc712d..68cab1b4 100644 --- a/node_modules/@technote-space/github-action-log-helper/package.json +++ b/node_modules/@technote-space/github-action-log-helper/package.json @@ -1,6 +1,6 @@ { "name": "@technote-space/github-action-log-helper", - "version": "0.1.37", + "version": "0.1.39", "description": "Logging helpers for GitHub Actions.", "keywords": [ "github", @@ -37,25 +37,25 @@ "postpublish": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/pinst ] || pinst --enable" }, "dependencies": { - "@actions/core": "^1.4.0", + "@actions/core": "^1.5.0", "sprintf-js": "^1.1.2" }, "devDependencies": { "@commitlint/cli": "^13.1.0", "@commitlint/config-conventional": "^13.1.0", - "@technote-space/github-action-test-helper": "^0.7.23", + "@technote-space/github-action-test-helper": "^0.7.25", "@types/jest": "^27.0.1", - "@types/node": "^16.6.2", - "@typescript-eslint/eslint-plugin": "^4.29.2", - "@typescript-eslint/parser": "^4.29.2", + "@types/node": "^16.7.5", + "@typescript-eslint/eslint-plugin": "^4.29.3", + "@typescript-eslint/parser": "^4.29.3", "eslint": "^7.32.0", - "husky": "^7.0.1", - "jest": "^27.0.6", - "jest-circus": "^27.0.6", + "husky": "^7.0.2", + "jest": "^27.1.0", + "jest-circus": "^27.1.0", "lint-staged": "^11.1.2", "pinst": "^2.1.6", "ts-jest": "^27.0.5", - "typescript": "^4.3.5" + "typescript": "^4.4.2" }, "publishConfig": { "access": "public"