fix obvious mistake in regexp

This commit is contained in:
Guillaume Ballet 2025-08-22 09:31:32 +02:00 committed by GitHub
parent 5b340afc07
commit abb41887f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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: type(scope): description`);