Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 5b4eae9

Browse files
committed
fix(#29): trim
1 parent f8ab347 commit 5b4eae9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ async function run() {
1313
return;
1414
}
1515

16-
const body =
16+
let body =
1717
(context.eventName === "issue_comment"
1818
// For comments on pull requests
1919
? context.payload.comment.body
2020
// For the initial pull request description
2121
: context.payload.pull_request.body) || '';
22-
core.setOutput('comment_body', body);
22+
body = body.trim();
2323

24+
core.setOutput('comment_body', body);
2425
if (
2526
context.eventName === "issue_comment" &&
2627
!context.payload.issue.pull_request

0 commit comments

Comments
 (0)