Skip to content

Commit d8db2db

Browse files
authored
incremented version (#1)
* incremented version * added pull request write permission; switch error.status since error.code deprecated --------- Co-authored-by: Daniel I. Kelley <aguilita1@users.noreply.github.com>
1 parent e283b39 commit d8db2db

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
permissions:
1010
contents: read
11+
pull-requests: write
1112

1213
jobs:
1314
lint-and-test:

‎action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ runs:
143143
console.error(`❌ Error processing ${{ inputs.label }} results:`, error);
144144
145145
// Detect when user forgot to return a value (causing body = undefined)
146-
if (error.code === 'ERR_INVALID_ARG_TYPE' && /The "data" argument must be of type string/i.test(error.message)) {
146+
if (error.status === 'ERR_INVALID_ARG_TYPE' && /The "data" argument must be of type string/i.test(error.message)) {
147147
console.error(`💡 Hint: Your script returned a non-string value (e.g., object, array, or undefined) — or nothing at all.\n`
148148
+ `Please return a string, or serialize your result using JSON.stringify.\n\n`
149149
+ `For example:\n\n`

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aguilita1/github-script-post-comment",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "GitHub Action to run custom JavaScript and post results to GitHub summary and Pull Request",
55
"author": "Daniel I. Kelley",
66
"license": "MIT",

0 commit comments

Comments
 (0)