From 18beaf3c8e536108bd04d18e6c3dc40ba3931e28 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Thu, 27 Apr 2023 13:06:40 +0100 Subject: [PATCH] Make sign-off regex more leniant. (#20) --- .github/workflows/sign-off.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sign-off.yml b/.github/workflows/sign-off.yml index b51040f..bf9083e 100644 --- a/.github/workflows/sign-off.yml +++ b/.github/workflows/sign-off.yml @@ -24,7 +24,7 @@ jobs: } // This regex is intentionally left lenient. - const signOffRegex = /signed[_\- ]off[_\- ]by: [\w ]+ <.+(@|at).+>/i; + const signOffRegex = /signed[_\- ]off[_\- ]by: [\S ]+ ?/i; if (signOffRegex.test(context.payload.pull_request.body ?? "")) { core.notice('Pull request body contains a sign-off notice');