From 2bdebc79934a46a650ed1e987e4d7067c6fec569 Mon Sep 17 00:00:00 2001 From: Eric Qian Date: Mon, 12 Aug 2024 15:06:34 +0200 Subject: [PATCH 1/2] workaround for leading or trailing \s+ characters --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 274dc20..21c2131 100755 --- a/index.js +++ b/index.js @@ -16,9 +16,9 @@ async function run() { const body = (context.eventName === "issue_comment" // For comments on pull requests - ? context.payload.comment.body + ? context.payload.comment.body.trim() // For the initial pull request description - : context.payload.pull_request.body) || ''; + : context.payload.pull_request.body.trim()) || ''; core.setOutput('comment_body', body); if ( From 8401407ba870a82c4025de37c5e38ed3e14238b1 Mon Sep 17 00:00:00 2001 From: Eric Qian Date: Mon, 12 Aug 2024 15:07:48 +0200 Subject: [PATCH 2/2] bump the version to 3.0.1 --- 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 71149e0..f4002ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pull-request-comment-trigger", - "version": "3.0.0", + "version": "3.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pull-request-comment-trigger", - "version": "3.0.0", + "version": "3.0.1", "license": "ISC", "dependencies": { "@actions/core": "^1.10.1", diff --git a/package.json b/package.json index 2d11eda..87accf4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pull-request-comment-trigger", - "version": "3.0.0", + "version": "3.0.1", "description": "", "main": "dist/index.js", "scripts": {