Skip to content

Commit afc060d

Browse files
committed
chore: upgrade Node.js runtime from 20 to 24
- Update action.yml: runs.using from node20 to node24 - Update .nvmrc: 20.8.1 to 24.14.0 - Update tsconfig.json: @tsconfig/node20 to @tsconfig/node24 - Update package.json: @tsconfig/node24 ^24.0.1, typescript ^5.9.3 - Rebuild lib/index.js and lib/cleanup/index.js with ncc + TS 5.9.3 - Update README and repo URLs for andyghc fork Based on PR #449 by @yysu (thollander/actions-comment-pull-request)
1 parent e4a76dd commit afc060d

8 files changed

Lines changed: 73 additions & 48 deletions

File tree

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.8.1
1+
24.14.0

README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Comment Pull Request - GitHub Actions
22

3+
> **Fork maintained by @andyghc** — Node.js 24 runtime (upstream stuck on Node 20).
4+
> Based on [thollander/actions-comment-pull-request](https://github.com/thollander/actions-comment-pull-request) v3.0.1 with Node 20→24 upgrade from [PR #449](https://github.com/thollander/actions-comment-pull-request/pull/449).
5+
36
## What is it ?
47

58
A GitHub action that comments with a given message the pull request linked to the pushed branch.
@@ -21,7 +24,7 @@ jobs:
2124
uses: actions/checkout@v3
2225

2326
- name: Comment PR
24-
uses: thollander/actions-comment-pull-request@v3
27+
uses: andyghc/actions-comment-pull-request@v3
2528
with:
2629
message: |
2730
Hello world ! :wave:
@@ -35,7 +38,7 @@ You can either pass an absolute file-path or a relative one that will be by defa
3538

3639
```yml
3740
- name: PR comment with file
38-
uses: thollander/actions-comment-pull-request@v3
41+
uses: andyghc/actions-comment-pull-request@v3
3942
with:
4043
file-path: /path/to/file.txt
4144
```
@@ -48,7 +51,7 @@ It takes only valid reactions and adds it to the comment you've just created. (S
4851

4952
```yml
5053
- name: PR comment with reactions
51-
uses: thollander/actions-comment-pull-request@v3
54+
uses: andyghc/actions-comment-pull-request@v3
5255
with:
5356
message: |
5457
Hello world ! :wave:
@@ -63,7 +66,7 @@ That is particularly useful for manual workflow for instance (`workflow_run`).
6366
```yml
6467
...
6568
- name: Comment PR
66-
uses: thollander/actions-comment-pull-request@v3
69+
uses: andyghc/actions-comment-pull-request@v3
6770
with:
6871
message: |
6972
Hello world ! :wave:
@@ -83,7 +86,7 @@ _That is particularly interesting while committing multiple times in a PR and th
8386
```yml
8487
...
8588
- name: Comment PR with execution number
86-
uses: thollander/actions-comment-pull-request@v3
89+
uses: andyghc/actions-comment-pull-request@v3
8790
with:
8891
message: |
8992
_(execution **${{ github.run_id }}** / attempt **${{ github.run_attempt }}**)_
@@ -100,7 +103,7 @@ Deleting a comment with a specific `comment-tag` is possible with the `mode: del
100103
```yml
101104
...
102105
- name: Delete a comment
103-
uses: thollander/actions-comment-pull-request@v3
106+
uses: andyghc/actions-comment-pull-request@v3
104107
with:
105108
comment-tag: to_delete
106109
mode: delete
@@ -115,7 +118,7 @@ This will delete the comment at the end of the job.
115118
```yml
116119
...
117120
- name: Write a comment that will be deleted at the end of the job
118-
uses: thollander/actions-comment-pull-request@v3
121+
uses: andyghc/actions-comment-pull-request@v3
119122
with:
120123
message: |
121124
The PR is being built...
@@ -155,7 +158,7 @@ You can get some outputs from this actions :
155158

156159
```yaml
157160
- name: Comment PR
158-
uses: thollander/actions-comment-pull-request@v3
161+
uses: andyghc/actions-comment-pull-request@v3
159162
id: hello
160163
with:
161164
message: |

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ inputs:
2525
description: 'Whether a comment should be created even if comment-tag is not found.'
2626
default: 'true'
2727
runs:
28-
using: 'node20'
28+
using: 'node24'
2929
main: 'lib/index.js'
3030
post: 'lib/cleanup/index.js'

lib/cleanup/index.js

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29928,13 +29928,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
2992829928
}) : function(o, v) {
2992929929
o["default"] = v;
2993029930
});
29931-
var __importStar = (this && this.__importStar) || function (mod) {
29932-
if (mod && mod.__esModule) return mod;
29933-
var result = {};
29934-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29935-
__setModuleDefault(result, mod);
29936-
return result;
29937-
};
29931+
var __importStar = (this && this.__importStar) || (function () {
29932+
var ownKeys = function(o) {
29933+
ownKeys = Object.getOwnPropertyNames || function (o) {
29934+
var ar = [];
29935+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29936+
return ar;
29937+
};
29938+
return ownKeys(o);
29939+
};
29940+
return function (mod) {
29941+
if (mod && mod.__esModule) return mod;
29942+
var result = {};
29943+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
29944+
__setModuleDefault(result, mod);
29945+
return result;
29946+
};
29947+
})();
2993829948
Object.defineProperty(exports, "__esModule", ({ value: true }));
2993929949
const github = __importStar(__nccwpck_require__(3228));
2994029950
const core = __importStar(__nccwpck_require__(7484));

lib/index.js

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29928,13 +29928,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
2992829928
}) : function(o, v) {
2992929929
o["default"] = v;
2993029930
});
29931-
var __importStar = (this && this.__importStar) || function (mod) {
29932-
if (mod && mod.__esModule) return mod;
29933-
var result = {};
29934-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29935-
__setModuleDefault(result, mod);
29936-
return result;
29937-
};
29931+
var __importStar = (this && this.__importStar) || (function () {
29932+
var ownKeys = function(o) {
29933+
ownKeys = Object.getOwnPropertyNames || function (o) {
29934+
var ar = [];
29935+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29936+
return ar;
29937+
};
29938+
return ownKeys(o);
29939+
};
29940+
return function (mod) {
29941+
if (mod && mod.__esModule) return mod;
29942+
var result = {};
29943+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
29944+
__setModuleDefault(result, mod);
29945+
return result;
29946+
};
29947+
})();
2993829948
var __importDefault = (this && this.__importDefault) || function (mod) {
2993929949
return (mod && mod.__esModule) ? mod : { "default": mod };
2994029950
};

package-lock.json

Lines changed: 19 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "actions-comment-pull-request",
3-
"version": "3.0.1",
3+
"version": "3.1.0",
44
"description": "GitHub action for commenting pull-request",
55
"main": "lib/main.js",
66
"scripts": {
@@ -11,7 +11,7 @@
1111
},
1212
"repository": {
1313
"type": "git",
14-
"url": "git+https://github.com/thollander/actions-comment-pull-request"
14+
"url": "git+https://github.com/andyghc/actions-comment-pull-request"
1515
},
1616
"keywords": [
1717
"actions",
@@ -23,9 +23,9 @@
2323
"author": "Térence Hollander",
2424
"license": "MIT",
2525
"bugs": {
26-
"url": "https://github.com/thollander/actions-comment-pull-request/issues"
26+
"url": "https://github.com/andyghc/actions-comment-pull-request/issues"
2727
},
28-
"homepage": "https://github.com/thollander/actions-comment-pull-request#readme",
28+
"homepage": "https://github.com/andyghc/actions-comment-pull-request#readme",
2929
"dependencies": {
3030
"@actions/core": "^1.11.1",
3131
"@actions/exec": "^1.0.0",
@@ -34,10 +34,10 @@
3434
"@actions/tool-cache": "^2.0.1"
3535
},
3636
"devDependencies": {
37-
"@tsconfig/node20": "^20.1.4",
37+
"@tsconfig/node24": "^24.0.1",
3838
"@types/node": "^22.8.6",
3939
"@vercel/ncc": "^0.38.2",
4040
"prettier": "^3.3.3",
41-
"typescript": "^5.6.3"
41+
"typescript": "^5.9.3"
4242
}
4343
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@tsconfig/node20/tsconfig.json",
2+
"extends": "@tsconfig/node24/tsconfig.json",
33
"compilerOptions": {
44
"outDir": "./lib",
55
"rootDir": "./src"

0 commit comments

Comments
 (0)