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:25 UTC
[beam] branch users/damccorm/labelSplitting created (now 56bf397306b)
This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a change to branch users/damccorm/labelSplitting
in repository https://gitbox.apache.org/repos/asf/beam.git
at 56bf397306b Split words on new lines or spaces
This branch includes the following new commits:
new 56bf397306b Split words on new lines or spaces
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[beam] 01/01: Split words on new lines or spaces
Posted by da...@apache.org.
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') {