Skip to content

Commit

Permalink
Make sign-off regex more leniant. (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot authored Apr 27, 2023
1 parent 5f4b6ba commit 18beaf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/sign-off.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]+ <?.+(@|at).+>?/i;
if (signOffRegex.test(context.payload.pull_request.body ?? "")) {
core.notice('Pull request body contains a sign-off notice');
Expand Down

0 comments on commit 18beaf3

Please sign in to comment.