You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by da...@apache.org on 2022/07/14 13:15:59 UTC
[beam] branch master updated: Split words on new lines or spaces (#22270)
This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new e6de18c4d63 Split words on new lines or spaces (#22270)
e6de18c4d63 is described below
commit e6de18c4d63e556b911b596e3884dd2a6e0450e4
Author: Danny McCormick <da...@google.com>
AuthorDate: Thu Jul 14 09:15:53 2022 -0400
Split words on new lines or spaces (#22270)
Previously we just split on spaces. Also adds a little logging.
Fixes #22269
---
.github/workflows/self-assign.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/self-assign.yml b/.github/workflows/self-assign.yml
index 45e53def972..c75d7c1f884 100644
--- a/.github/workflows/self-assign.yml
+++ b/.github/workflows/self-assign.yml
@@ -26,7 +26,8 @@ jobs:
- uses: actions/github-script@v6
with:
script: |
- const body = context.payload.comment.body.split(' ');
+ const body = context.payload.comment.body.replace( /\n/g, " " ).split(' ');
+ console.log(body);
for (let i = 0; i < body.length; i++) {
const bodyString = body[i].toLowerCase();
if (bodyString == '.take-issue') {