diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index c7c8c0124..3c6fd82cd 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,5 +1,7 @@ ## Description: +Describe the PR. + ## Please complete the following: - [ ] I have added screenshots for all UI updates @@ -10,4 +12,4 @@ ## Please put your Discord username so you can be contacted if a bug or regression is found: - +DISCORD_USERNAME diff --git a/.github/workflows/pr-description.yml b/.github/workflows/pr-description.yml index 292134f60..fe4c3acf7 100644 --- a/.github/workflows/pr-description.yml +++ b/.github/workflows/pr-description.yml @@ -24,7 +24,7 @@ jobs: const errors = []; // Check for ## Description section - const descMatch = body.match(/^## Description:\s*\n((?:(?!^#).*\n?)*)/m); + const descMatch = body.match(/^## Description:\s*\n([\s\S]*?)(?:^## |\Z)/m); if (!descMatch || descMatch[1].trim().length < 20) { errors.push('❌ Missing or short `## Description:` section.'); }