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:07:26 UTC

[beam] 01/01: Split words on new lines or spaces

This is an automated email from the ASF dual-hosted git repository.

damccorm pushed a commit to branch users/damccorm/labelSplitting
in repository https://gitbox.apache.org/repos/asf/beam.git

commit 56bf397306b4154a7edb8194dfb921a6f858a4e0
Author: Danny McCormick <da...@google.com>
AuthorDate: Thu Jul 14 09:07:20 2022 -0400

    Split words on new lines or spaces
    
    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') {