mirror of
https://github.com/laurent22/joplin.git
synced 2026-05-07 20:02:45 +00:00
Chore: Exclude Doc prefix
This commit is contained in:
@@ -36,7 +36,9 @@ module.exports = async ({ github, context, core }) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const regex = isSoft ? softRegex : strictRegex;
|
// Doc-only PRs do not require an issue number.
|
||||||
|
const isDocOnly = /^Doc(,\s*Doc)*:/.test(title);
|
||||||
|
const regex = isSoft || isDocOnly ? softRegex : strictRegex;
|
||||||
if (regex.test(title)) {
|
if (regex.test(title)) {
|
||||||
core.info('Title is valid.');
|
core.info('Title is valid.');
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user