diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 67fca336be4f..a57d93ef584e 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -27,7 +27,8 @@ Thank you for contributing to Storybook! Please submit all PRs to the `next` bra #### Manual testing -_This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!_ +> [!CAUTION] +> This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks! /g, '') // Remove HTML comments + .replace(/\s+/g, '').length > 0; // Remove all whitespace + + if (!hasContent) { + fail( + 'The "#### Manual testing" section is mandatory. Please describe how to test the changes you\'ve made, step by step, so that reviewers can confirm your PR works as intended.' + ); + } +}; + if (prLogConfig) { checkRequiredLabels(labels.map((l) => l.name)); checkPrTitle(danger.github.pr.title); + checkManualTestingSection(danger.github.pr.body); }