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 ( 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": {