From 363c6f6eae92cc5c3a66e95ba016fc771bb38943 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 8 Oct 2023 11:33:18 +0200 Subject: [PATCH 1/9] chore(deps-dev): bump @vercel/ncc from 0.36.1 to 0.38.0 (#283) Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.36.1 to 0.38.0. - [Release notes](https://github.com/vercel/ncc/releases) - [Commits](https://github.com/vercel/ncc/compare/0.36.1...0.38.0) --- updated-dependencies: - dependency-name: "@vercel/ncc" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index f78b919..4edf45f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "devDependencies": { "@tsconfig/node16": "^16.1.1", "@types/node": "^18.16.2", - "@vercel/ncc": "^0.36.1", + "@vercel/ncc": "^0.38.0", "prettier": "^3.0.3", "typescript": "^5.2.2" } @@ -200,9 +200,9 @@ "dev": true }, "node_modules/@vercel/ncc": { - "version": "0.36.1", - "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.36.1.tgz", - "integrity": "sha512-S4cL7Taa9yb5qbv+6wLgiKVZ03Qfkc4jGRuiUQMQ8HGBD5pcNRnHeYM33zBvJE4/zJGjJJ8GScB+WmTsn9mORw==", + "version": "0.38.0", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.0.tgz", + "integrity": "sha512-B4YKZMm/EqMptKSFyAq4q2SlgJe+VCmEH6Y8gf/E1pTlWbsUJpuH1ymik2Ex3aYO5mCWwV1kaSYHSQOT8+4vHA==", "dev": true, "bin": { "ncc": "dist/ncc/cli.js" @@ -505,9 +505,9 @@ "dev": true }, "@vercel/ncc": { - "version": "0.36.1", - "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.36.1.tgz", - "integrity": "sha512-S4cL7Taa9yb5qbv+6wLgiKVZ03Qfkc4jGRuiUQMQ8HGBD5pcNRnHeYM33zBvJE4/zJGjJJ8GScB+WmTsn9mORw==", + "version": "0.38.0", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.0.tgz", + "integrity": "sha512-B4YKZMm/EqMptKSFyAq4q2SlgJe+VCmEH6Y8gf/E1pTlWbsUJpuH1ymik2Ex3aYO5mCWwV1kaSYHSQOT8+4vHA==", "dev": true }, "before-after-hook": { diff --git a/package.json b/package.json index 2195921..5c4a3c7 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "devDependencies": { "@tsconfig/node16": "^16.1.1", "@types/node": "^18.16.2", - "@vercel/ncc": "^0.36.1", + "@vercel/ncc": "^0.38.0", "prettier": "^3.0.3", "typescript": "^5.2.2" } From 5c591f7f556ba8ed023fdcb5e50b84dd088c2703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=A9rence=20Hollander?= Date: Sat, 21 Oct 2023 09:16:27 +0200 Subject: [PATCH 2/9] feat(output): add some action outputs (#297) - id, body, html_url --- .github/workflows/ci.yaml | 7 ++++ README.md | 29 +++++++++++++++ lib/index.js | 45 +++++++++++++++++++---- src/main.ts | 77 ++++++++++++++++++++++++++++++++++----- 4 files changed, 142 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d6dd879..e82eec0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,6 +15,7 @@ jobs: - name: Comment PR with message uses: ./ + id: nrt_message with: message: | Current branch is `${{ github.head_ref }}`. @@ -55,5 +56,11 @@ jobs: comment_tag: nrt_create_if_not_exists create_if_not_exists: false + - name: Check outputs + run: | + echo "id : ${{ steps.nrt_message.outputs.id }}" + echo "body : ${{ steps.nrt_message.outputs.body }}" + echo "html_url : ${{ steps.nrt_message.outputs.html_url }}" + - name: (AFTER) Setup test cases run: rm /tmp/foobar.txt \ No newline at end of file diff --git a/README.md b/README.md index 959abc8..f116ad1 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,35 @@ This will delete the comment at the end of the job. | `mode` | Mode that will be used to update comment (upsert/recreate/delete) | | upsert | | `create_if_not_exists` | Whether a comment should be created even if `comment_tag` is not found | | true | + +## Outputs + +### Action outputs + +You can get some outputs from this actions : + +| Name | Description | +| --- | --- | +| `id` | Comment id that was created or updated | +| `body` | Comment body | +| `html_url` | URL of the comment created or updated | + +## Example + +```yaml +- name: Comment PR + uses: thollander/actions-comment-pull-request@v2 + id: hello + with: + message: | + Hello world ! :wave: +- name: Check outputs + run: | + echo "id : ${{ steps.hello.outputs.id }}" + echo "body : ${{ steps.hello.outputs.body }}" + echo "html_url : ${{ steps.hello.outputs.html_url }}" +``` + ## Permissions Depending on the permissions granted to your token, you may lack some rights. diff --git a/lib/index.js b/lib/index.js index 1969ff3..6ad0635 100644 --- a/lib/index.js +++ b/lib/index.js @@ -9582,6 +9582,40 @@ async function run() { }); })); } + async function createComment({ owner, repo, issue_number, body, }) { + const { data: comment } = await octokit.rest.issues.createComment({ + owner, + repo, + issue_number, + body, + }); + core.setOutput('id', comment.id); + core.setOutput('body', comment.body); + core.setOutput('html_url', comment.html_url); + await addReactions(comment.id, reactions); + return comment; + } + async function updateComment({ owner, repo, comment_id, body, }) { + const { data: comment } = await octokit.rest.issues.updateComment({ + owner, + repo, + comment_id, + body, + }); + core.setOutput('id', comment.id); + core.setOutput('body', comment.body); + core.setOutput('html_url', comment.html_url); + await addReactions(comment.id, reactions); + return comment; + } + async function deleteComment({ owner, repo, comment_id }) { + const { data: comment } = await octokit.rest.issues.deleteComment({ + owner, + repo, + comment_id, + }); + return comment; + } const comment_tag_pattern = comment_tag ? `` : null; @@ -9598,25 +9632,23 @@ async function run() { } if (comment) { if (mode === 'upsert') { - await octokit.rest.issues.updateComment({ + await updateComment({ ...context.repo, comment_id: comment.id, body, }); - await addReactions(comment.id, reactions); return; } else if (mode === 'recreate') { - await octokit.rest.issues.deleteComment({ + await deleteComment({ ...context.repo, comment_id: comment.id, }); - const { data: newComment } = await octokit.rest.issues.createComment({ + await createComment({ ...context.repo, issue_number, body, }); - await addReactions(newComment.id, reactions); return; } else if (mode === 'delete') { @@ -9635,12 +9667,11 @@ async function run() { return; } } - const { data: comment } = await octokit.rest.issues.createComment({ + await createComment({ ...context.repo, issue_number, body, }); - await addReactions(comment.id, reactions); } catch (error) { if (error instanceof Error) { diff --git a/src/main.ts b/src/main.ts index 4e05a8c..62e1ee8 100644 --- a/src/main.ts +++ b/src/main.ts @@ -55,6 +55,70 @@ async function run() { ); } + async function createComment({ + owner, + repo, + issue_number, + body, + }: { + owner: string; + repo: string; + issue_number: number; + body: string; + }) { + const { data: comment } = await octokit.rest.issues.createComment({ + owner, + repo, + issue_number, + body, + }); + + core.setOutput('id', comment.id); + core.setOutput('body', comment.body); + core.setOutput('html_url', comment.html_url); + + await addReactions(comment.id, reactions); + + return comment; + } + + async function updateComment({ + owner, + repo, + comment_id, + body, + }: { + owner: string; + repo: string; + comment_id: number; + body: string; + }) { + const { data: comment } = await octokit.rest.issues.updateComment({ + owner, + repo, + comment_id, + body, + }); + + core.setOutput('id', comment.id); + core.setOutput('body', comment.body); + core.setOutput('html_url', comment.html_url); + + await addReactions(comment.id, reactions); + + return comment; + } + + async function deleteComment({ owner, repo, comment_id }: { owner: string; repo: string; comment_id: number }) { + const { data: comment } = await octokit.rest.issues.deleteComment({ + owner, + repo, + comment_id, + }); + + return comment; + } + const comment_tag_pattern = comment_tag ? `` : null; @@ -75,26 +139,23 @@ async function run() { if (comment) { if (mode === 'upsert') { - await octokit.rest.issues.updateComment({ + await updateComment({ ...context.repo, comment_id: comment.id, body, }); - await addReactions(comment.id, reactions); return; } else if (mode === 'recreate') { - await octokit.rest.issues.deleteComment({ + await deleteComment({ ...context.repo, comment_id: comment.id, }); - const { data: newComment } = await octokit.rest.issues.createComment({ + await createComment({ ...context.repo, issue_number, body, }); - - await addReactions(newComment.id, reactions); return; } else if (mode === 'delete') { core.debug('Registering this comment to be deleted.'); @@ -112,13 +173,11 @@ async function run() { } } - const { data: comment } = await octokit.rest.issues.createComment({ + await createComment({ ...context.repo, issue_number, body, }); - - await addReactions(comment.id, reactions); } catch (error) { if (error instanceof Error) { core.setFailed(error.message); From c9581a4c85f1b2c4e12f9e6e3d3e12f244d2b440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=A9rence=20Hollander?= Date: Sat, 21 Oct 2023 09:17:13 +0200 Subject: [PATCH 3/9] chore: bump to v2.4.3 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4edf45f..6df1c29 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "actions-comment-pull-request", - "version": "2.4.2", + "version": "2.4.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "actions-comment-pull-request", - "version": "2.4.2", + "version": "2.4.3", "license": "MIT", "dependencies": { "@actions/core": "^1.10.1", diff --git a/package.json b/package.json index 5c4a3c7..068bdc5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "actions-comment-pull-request", - "version": "2.4.2", + "version": "2.4.3", "description": "GitHub action for commenting pull-request", "main": "lib/main.js", "scripts": { From 1d3973dc4b8e1399c0620d3f2b1aa5e795465308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=A9rence=20Hollander?= Date: Sat, 21 Oct 2023 09:19:13 +0200 Subject: [PATCH 4/9] chore: fix build and lint --- lib/cleanup/index.js | 2 +- lib/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cleanup/index.js b/lib/cleanup/index.js index c38436a..4916287 100644 --- a/lib/cleanup/index.js +++ b/lib/cleanup/index.js @@ -558,7 +558,7 @@ class OidcClient { .catch(error => { throw new Error(`Failed to get ID Token. \n Error Code : ${error.statusCode}\n - Error Message: ${error.result.message}`); + Error Message: ${error.message}`); }); const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; if (!id_token) { diff --git a/lib/index.js b/lib/index.js index 6ad0635..c7410c4 100644 --- a/lib/index.js +++ b/lib/index.js @@ -558,7 +558,7 @@ class OidcClient { .catch(error => { throw new Error(`Failed to get ID Token. \n Error Code : ${error.statusCode}\n - Error Message: ${error.result.message}`); + Error Message: ${error.message}`); }); const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; if (!id_token) { From 88b3c3f072e8cc7eae4b09d1cc62d308a51ca923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=A9rence=20Hollander?= Date: Sat, 21 Oct 2023 09:22:38 +0200 Subject: [PATCH 5/9] docs: fix wrong indent --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f116ad1..83b7dd6 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ You can get some outputs from this actions : | `body` | Comment body | | `html_url` | URL of the comment created or updated | -## Example +### Example output ```yaml - name: Comment PR From 9d67388b9a94966eb262e68d9a3b368497990b77 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 21 Oct 2023 09:24:13 +0200 Subject: [PATCH 6/9] chore(deps-dev): bump @vercel/ncc from 0.38.0 to 0.38.1 (#304) Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.38.0 to 0.38.1. - [Release notes](https://github.com/vercel/ncc/releases) - [Commits](https://github.com/vercel/ncc/compare/0.38.0...0.38.1) --- updated-dependencies: - dependency-name: "@vercel/ncc" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6df1c29..30f5a63 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "devDependencies": { "@tsconfig/node16": "^16.1.1", "@types/node": "^18.16.2", - "@vercel/ncc": "^0.38.0", + "@vercel/ncc": "^0.38.1", "prettier": "^3.0.3", "typescript": "^5.2.2" } @@ -200,9 +200,9 @@ "dev": true }, "node_modules/@vercel/ncc": { - "version": "0.38.0", - "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.0.tgz", - "integrity": "sha512-B4YKZMm/EqMptKSFyAq4q2SlgJe+VCmEH6Y8gf/E1pTlWbsUJpuH1ymik2Ex3aYO5mCWwV1kaSYHSQOT8+4vHA==", + "version": "0.38.1", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.1.tgz", + "integrity": "sha512-IBBb+iI2NLu4VQn3Vwldyi2QwaXt5+hTyh58ggAMoCGE6DJmPvwL3KPBWcJl1m9LYPChBLE980Jw+CS4Wokqxw==", "dev": true, "bin": { "ncc": "dist/ncc/cli.js" @@ -505,9 +505,9 @@ "dev": true }, "@vercel/ncc": { - "version": "0.38.0", - "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.0.tgz", - "integrity": "sha512-B4YKZMm/EqMptKSFyAq4q2SlgJe+VCmEH6Y8gf/E1pTlWbsUJpuH1ymik2Ex3aYO5mCWwV1kaSYHSQOT8+4vHA==", + "version": "0.38.1", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.1.tgz", + "integrity": "sha512-IBBb+iI2NLu4VQn3Vwldyi2QwaXt5+hTyh58ggAMoCGE6DJmPvwL3KPBWcJl1m9LYPChBLE980Jw+CS4Wokqxw==", "dev": true }, "before-after-hook": { diff --git a/package.json b/package.json index 068bdc5..fb81e79 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "devDependencies": { "@tsconfig/node16": "^16.1.1", "@types/node": "^18.16.2", - "@vercel/ncc": "^0.38.0", + "@vercel/ncc": "^0.38.1", "prettier": "^3.0.3", "typescript": "^5.2.2" } From 2f6921097b4dc86a5b9fca468fabe581271e7a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=A9rence=20Hollander?= Date: Sat, 21 Oct 2023 09:28:38 +0200 Subject: [PATCH 7/9] feat: node 20 version support --- .nvmrc | 2 +- action.yml | 2 +- package-lock.json | 54 +++++++++++++++++++++++++++++++---------------- package.json | 4 ++-- tsconfig.json | 2 +- 5 files changed, 41 insertions(+), 23 deletions(-) diff --git a/.nvmrc b/.nvmrc index 6e9d5a1..5bacb9a 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16.13.1 \ No newline at end of file +20.8.1 \ No newline at end of file diff --git a/action.yml b/action.yml index c868e86..29d3903 100644 --- a/action.yml +++ b/action.yml @@ -25,6 +25,6 @@ inputs: description: 'Whether a comment should be created even if comment_tag is not found.' default: 'true' runs: - using: 'node16' + using: 'node20' main: 'lib/index.js' post: 'lib/cleanup/index.js' diff --git a/package-lock.json b/package-lock.json index 30f5a63..9feea58 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,8 +16,8 @@ "@actions/tool-cache": "^2.0.1" }, "devDependencies": { - "@tsconfig/node16": "^16.1.1", - "@types/node": "^18.16.2", + "@tsconfig/node20": "^20.1.2", + "@types/node": "^20.8.1", "@vercel/ncc": "^0.38.1", "prettier": "^3.0.3", "typescript": "^5.2.2" @@ -187,17 +187,20 @@ "@octokit/openapi-types": "^12.11.0" } }, - "node_modules/@tsconfig/node16": { - "version": "16.1.1", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-16.1.1.tgz", - "integrity": "sha512-+pio93ejHN4nINX4pXqfnR/fPLRtJBaT4ORaa5RH0Oc1zoYmo2B2koG+M328CQhHKn1Wj6FcOxCDFXAot9NhvA==", + "node_modules/@tsconfig/node20": { + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.2.tgz", + "integrity": "sha512-madaWq2k+LYMEhmcp0fs+OGaLFk0OenpHa4gmI4VEmCKX4PJntQ6fnnGADVFrVkBj0wIdAlQnK/MrlYTHsa1gQ==", "dev": true }, "node_modules/@types/node": { - "version": "18.16.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.2.tgz", - "integrity": "sha512-GQW/JL/5Fz/0I8RpeBG9lKp0+aNcXEaVL71c0D2Q0QHDTFvlYKT7an0onCUXj85anv7b4/WesqdfchLc0jtsCg==", - "dev": true + "version": "20.8.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.7.tgz", + "integrity": "sha512-21TKHHh3eUHIi2MloeptJWALuCu5H7HQTdTrWIFReA8ad+aggoX+lRes3ex7/FtpC+sVUpFMQ+QTfYr74mruiQ==", + "dev": true, + "dependencies": { + "undici-types": "~5.25.1" + } }, "node_modules/@vercel/ncc": { "version": "0.38.1", @@ -302,6 +305,12 @@ "node": ">=14.17" } }, + "node_modules/undici-types": { + "version": "5.25.3", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.25.3.tgz", + "integrity": "sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==", + "dev": true + }, "node_modules/universal-user-agent": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", @@ -492,17 +501,20 @@ "@octokit/openapi-types": "^12.11.0" } }, - "@tsconfig/node16": { - "version": "16.1.1", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-16.1.1.tgz", - "integrity": "sha512-+pio93ejHN4nINX4pXqfnR/fPLRtJBaT4ORaa5RH0Oc1zoYmo2B2koG+M328CQhHKn1Wj6FcOxCDFXAot9NhvA==", + "@tsconfig/node20": { + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.2.tgz", + "integrity": "sha512-madaWq2k+LYMEhmcp0fs+OGaLFk0OenpHa4gmI4VEmCKX4PJntQ6fnnGADVFrVkBj0wIdAlQnK/MrlYTHsa1gQ==", "dev": true }, "@types/node": { - "version": "18.16.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.2.tgz", - "integrity": "sha512-GQW/JL/5Fz/0I8RpeBG9lKp0+aNcXEaVL71c0D2Q0QHDTFvlYKT7an0onCUXj85anv7b4/WesqdfchLc0jtsCg==", - "dev": true + "version": "20.8.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.7.tgz", + "integrity": "sha512-21TKHHh3eUHIi2MloeptJWALuCu5H7HQTdTrWIFReA8ad+aggoX+lRes3ex7/FtpC+sVUpFMQ+QTfYr74mruiQ==", + "dev": true, + "requires": { + "undici-types": "~5.25.1" + } }, "@vercel/ncc": { "version": "0.38.1", @@ -568,6 +580,12 @@ "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", "dev": true }, + "undici-types": { + "version": "5.25.3", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.25.3.tgz", + "integrity": "sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==", + "dev": true + }, "universal-user-agent": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", diff --git a/package.json b/package.json index fb81e79..7d20d6f 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,8 @@ "@actions/tool-cache": "^2.0.1" }, "devDependencies": { - "@tsconfig/node16": "^16.1.1", - "@types/node": "^18.16.2", + "@tsconfig/node20": "^20.1.2", + "@types/node": "^20.8.1", "@vercel/ncc": "^0.38.1", "prettier": "^3.0.3", "typescript": "^5.2.2" diff --git a/tsconfig.json b/tsconfig.json index bf8ec56..44c2c1a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@tsconfig/node16/tsconfig.json", + "extends": "@tsconfig/node20/tsconfig.json", "compilerOptions": { "outDir": "./lib", "rootDir": "./src" From cb9f4be78695d9811c6ad130dbfc0578ba444415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=A9rence=20Hollander?= Date: Sat, 17 Feb 2024 07:36:47 +0100 Subject: [PATCH 8/9] chore: bump to v2.5.0 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9feea58..00033a0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "actions-comment-pull-request", - "version": "2.4.3", + "version": "2.5.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "actions-comment-pull-request", - "version": "2.4.3", + "version": "2.5.0", "license": "MIT", "dependencies": { "@actions/core": "^1.10.1", diff --git a/package.json b/package.json index 7d20d6f..49db274 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "actions-comment-pull-request", - "version": "2.4.3", + "version": "2.5.0", "description": "GitHub action for commenting pull-request", "main": "lib/main.js", "scripts": { From bc14ce351a6a25022a490f2be0570c700083a7fe Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 17 Feb 2024 08:04:54 +0100 Subject: [PATCH 9/9] chore(deps-dev): bump typescript from 5.2.2 to 5.3.3 (#326) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.2.2 to 5.3.3. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v5.2.2...v5.3.3) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 00033a0..649c465 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "@types/node": "^20.8.1", "@vercel/ncc": "^0.38.1", "prettier": "^3.0.3", - "typescript": "^5.2.2" + "typescript": "^5.3.3" } }, "node_modules/@actions/core": { @@ -293,9 +293,9 @@ } }, "node_modules/typescript": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", - "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -575,9 +575,9 @@ "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==" }, "typescript": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", - "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", "dev": true }, "undici-types": { diff --git a/package.json b/package.json index 49db274..9db0901 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,6 @@ "@types/node": "^20.8.1", "@vercel/ncc": "^0.38.1", "prettier": "^3.0.3", - "typescript": "^5.2.2" + "typescript": "^5.3.3" } }