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

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin authored and GitHub committed 2026-03-24 16:54:05 -04:00
1 parent a4f12354c9
commit cbe4c60c03
1 file changed
+1 -1
+1 -1
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);