.github/workflows: remove redundant regexp check for heading dot

This commit is contained in:
Guillaume Ballet 2025-09-12 10:00:16 +02:00
parent 8a19582c8d
commit 3351ddc69b

View file

@ -13,7 +13,7 @@ jobs:
with:
script: |
const prTitle = context.payload.pull_request.title;
const titleRegex = /^(\.?[\w\s,{}/.]+): .+/;
const titleRegex = /^([\w\s,{}/.]+): .+/;
if (!titleRegex.test(prTitle)) {
core.setFailed(`PR title "${prTitle}" does not match required format: directory, ...: description`);