mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
ci: allow - and () in PR title scope regex
This commit is contained in:
parent
b19452dc11
commit
e22b1118ee
1 changed files with 1 additions and 1 deletions
2
.github/workflows/validate_pr.yml
vendored
2
.github/workflows/validate_pr.yml
vendored
|
|
@ -13,7 +13,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const prTitle = context.payload.pull_request.title;
|
const prTitle = context.payload.pull_request.title;
|
||||||
const titleRegex = /^([\w\s,{}/.]+): .+/;
|
const titleRegex = /^([A-Za-z0-9_\-\/\s,()\[\]{}.]+): .+/;
|
||||||
|
|
||||||
if (!titleRegex.test(prTitle)) {
|
if (!titleRegex.test(prTitle)) {
|
||||||
core.setFailed(`PR title "${prTitle}" does not match required format: directory, ...: description`);
|
core.setFailed(`PR title "${prTitle}" does not match required format: directory, ...: description`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue