diff --git a/.github/scripts/pr-title.ts b/.github/scripts/pr-title.ts index 30edfa9a4c9..4e75a4565df 100644 --- a/.github/scripts/pr-title.ts +++ b/.github/scripts/pr-title.ts @@ -46,7 +46,7 @@ Terminology: [bug(ui)]: Fix female trainer names // Check if title pass regex const regex = RegExp(/^\[[a-zA-Z]+(\([a-zA-Z]+\))?\]: .+/); if (!regex.test(title)) { - core.setFailed(`Pull Request title "${title}" failed to match - 'Prefix(Scope): Subject'`); + core.setFailed(`Pull Request title "${title}" failed to match - '[Prefix(Scope)]: Subject'`); return; }