From 73dbe609f1c2b3abc0929279ec53bf8cdbd268b4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 11:19:12 +0900 Subject: [PATCH 1/2] Update Node.js to v20.18.1 (#125) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .node-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.node-version b/.node-version index 3516580..d4b7699 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -20.17.0 +20.18.1 From 7c57e1a8c747bc4616dd705010576da1cf1ba627 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 11:27:42 +0900 Subject: [PATCH 2/2] Update dependency simple-git to v3.27.0 (#120) * Update dependency simple-git to v3.27.0 * Update dist --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: sqbot <30003564+sqbot@users.noreply.github.com> --- dist/index.js | 31 +++++++++++++++---------------- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 3 files changed, 21 insertions(+), 22 deletions(-) diff --git a/dist/index.js b/dist/index.js index 42bf3a5..3dbde88 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4342,7 +4342,7 @@ const external_child_process_namespaceObject = require("child_process"); var promise_deferred_dist = __nccwpck_require__(8156); ;// CONCATENATED MODULE: external "node:events" const external_node_events_namespaceObject = require("node:events"); -;// CONCATENATED MODULE: ./node_modules/.pnpm/simple-git@3.25.0/node_modules/simple-git/dist/esm/index.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/simple-git@3.27.0/node_modules/simple-git/dist/esm/index.js var __defProp = Object.defineProperty; var __defProps = Object.defineProperties; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; @@ -6327,15 +6327,17 @@ var init_parse_diff_summary = __esm({ nameStatusParser = [ new LineParser( /([ACDMRTUXB])([0-9]{0,3})\t(.[^\t]*)(\t(.[^\t]*))?$/, - (result, [status, _similarity, from, _to, to]) => { + (result, [status, similarity, from, _to, to]) => { result.changed++; result.files.push({ file: to != null ? to : from, changes: 0, - status: orVoid(isDiffNameStatus(status) && status), insertions: 0, deletions: 0, - binary: false + binary: false, + status: orVoid(isDiffNameStatus(status) && status), + from: orVoid(!!to && from !== to && from), + similarity: asNumber(similarity) }); } ) @@ -6364,15 +6366,12 @@ function createListLogSummaryParser(splitter = SPLITTER, fields = defaultFieldNa const parseDiffResult = getDiffParser(logFormat); return function(stdOut) { const all = toLinesWithContent( - stdOut, - true, + stdOut.trim(), + false, START_BOUNDARY ).map(function(item) { - const lineDetail = item.trim().split(COMMIT_BOUNDARY); - const listLogLine = lineBuilder( - lineDetail[0].trim().split(splitter), - fields - ); + const lineDetail = item.split(COMMIT_BOUNDARY); + const listLogLine = lineBuilder(lineDetail[0].split(splitter), fields); if (lineDetail.length > 1 && !!lineDetail[1].trim()) { listLogLine.diff = parseDiffResult(lineDetail[1]); } @@ -6994,16 +6993,16 @@ var fromPathRegex, FileStatusSummary; var init_FileStatusSummary = __esm({ "src/lib/responses/FileStatusSummary.ts"() { "use strict"; - fromPathRegex = /^(.+) -> (.+)$/; + fromPathRegex = /^(.+)\0(.+)$/; FileStatusSummary = class { constructor(path, index, working_dir) { this.path = path; this.index = index; this.working_dir = working_dir; - if ("R" === index + working_dir) { + if (index === "R" || working_dir === "R") { const detail = fromPathRegex.exec(path) || [null, path, path]; - this.from = detail[1] || ""; - this.path = detail[2] || ""; + this.from = detail[2] || ""; + this.path = detail[1] || ""; } } }; @@ -7041,7 +7040,7 @@ function splitLine(result, lineStr) { handler(result, path); } if (raw !== "##" && raw !== "!!") { - result.files.push(new FileStatusSummary(path.replace(/\0.+$/, ""), index, workingDir)); + result.files.push(new FileStatusSummary(path, index, workingDir)); } } } diff --git a/package.json b/package.json index e561e5d..d0a32a4 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "dependencies": { "@actions/core": "1.10.1", "extract-pr-titles": "1.1.0", - "simple-git": "3.25.0" + "simple-git": "3.27.0" }, "devDependencies": { "@eslint/js": "^9.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6179895..2837446 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: 1.1.0 version: 1.1.0 simple-git: - specifier: 3.25.0 - version: 3.25.0 + specifier: 3.27.0 + version: 3.27.0 devDependencies: '@eslint/js': specifier: ^9.0.0 @@ -393,8 +393,8 @@ packages: simple-git@1.132.0: resolution: {integrity: sha512-xauHm1YqCTom1sC9eOjfq3/9RKiUA9iPnxBbrY2DdL8l4ADMu0jjM5l5lphQP5YWNqAL2aXC/OeuQ76vHtW5fg==} - simple-git@3.25.0: - resolution: {integrity: sha512-KIY5sBnzc4yEcJXW7Tdv4viEz8KyG+nU0hay+DWZasvdFOYKeUZ6Xc25LUHHjw0tinPT7O1eY6pzX7pRT1K8rw==} + simple-git@3.27.0: + resolution: {integrity: sha512-ivHoFS9Yi9GY49ogc6/YAi3Fl9ROnF4VyubNylgCkA+RVqLaKWnDSzXOVzya8csELIaWaYNutsEuAhZrtOjozA==} strip-json-comments@3.1.1: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} @@ -780,7 +780,7 @@ snapshots: transitivePeerDependencies: - supports-color - simple-git@3.25.0: + simple-git@3.27.0: dependencies: '@kwsites/file-exists': 1.1.1 '@kwsites/promise-deferred': 1.1.1