Allow PRs to not have a newline before the first release note (#52336)
Release Notes: - N/A
This commit is contained in:
1 parent
a4f12354c9
commit
cbe4c60c03
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user