From 90ccb33d4b0e333ef13906416a5a19d73c9c207a Mon Sep 17 00:00:00 2001 From: Mathieu Hofman <86499+mhofman@users.noreply.github.com> Date: Thu, 7 Sep 2023 18:57:07 +0000 Subject: [PATCH] allow whitespaces in PR desc --- .github/workflows/integration.yml | 4 ++-- .github/workflows/normal.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 9bf31a5..9303ce0 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -45,7 +45,7 @@ jobs: let behavior = '{}'; if (context.payload.pull_request) { const { body } = context.payload.pull_request; - const regex = /^\#matrix-test-${{ matrix.variation }}:\s+(\S+)/m; + const regex = /^\#matrix-test-${{ matrix.variation }}:\s+(.*)$/m; const result = regex.exec(body); if (result) { behavior = result[1]; @@ -81,7 +81,7 @@ jobs: let behavior = '{}'; if (context.payload.pull_request) { const { body } = context.payload.pull_request; - const regex = /^\#standalone-test:\s+(\S+)/m; + const regex = /^\#standalone-test:\s+(.*)$/m; const result = regex.exec(body); if (result) { behavior = result[1]; diff --git a/.github/workflows/normal.yml b/.github/workflows/normal.yml index fb964b8..3c41a24 100644 --- a/.github/workflows/normal.yml +++ b/.github/workflows/normal.yml @@ -24,7 +24,7 @@ jobs: let behavior = '{}'; if (context.payload.pull_request) { const { body } = context.payload.pull_request; - const regex = /^\#normal-test:\s+(\S+)/m; + const regex = /^\#normal-test:\s+(.*)$/m; const result = regex.exec(body); if (result) { behavior = result[1];