Strip out newlines in issue comment (not markdown)
This commit is contained in:
parent
0fe0532355
commit
6b3b65be35
1 changed files with 4 additions and 1 deletions
5
.github/workflows/issue-check-support.yml
vendored
5
.github/workflows/issue-check-support.yml
vendored
|
|
@ -46,7 +46,10 @@ jobs:
|
||||||
script: |
|
script: |
|
||||||
issue_number = process.env.ISSUE_NUMBER
|
issue_number = process.env.ISSUE_NUMBER
|
||||||
body = process.env.COMMENT_BODY
|
body = process.env.COMMENT_BODY
|
||||||
body = body.replace(/\\n/g, '\n')
|
|
||||||
|
// Strip newlines, since GitHub comments are not markdown.
|
||||||
|
body = body.replace(/\\n/g, ' ')
|
||||||
|
|
||||||
github.rest.issues.createComment({
|
github.rest.issues.createComment({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue