Allow PRs to not have a newline before the first release note (#52336)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2026-03-24 13:54:05 -07:00 committed by GitHub
parent b1e94da0d7
commit 9dd588a7a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ prHygiene({
},
});
const RELEASE_NOTES_PATTERN = /Release Notes:\r?\n\s+-/gm;
const RELEASE_NOTES_PATTERN = /Release Notes:(\r?\n)+- /gm;
const body = danger.github.pr.body;
const hasReleaseNotes = RELEASE_NOTES_PATTERN.test(body);