Skip to content

Commit 69e4e3e

Browse files
authored
Privacy Updates: add warning when the section is deleted (#15898)
1 parent 83ac8fe commit 69e4e3e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dangerfile.js

+7
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ if ( ! pr.body.includes( 'Proposed changelog entry' ) ) {
4242
);
4343
}
4444

45+
// Privacy section filled in
46+
if ( ! pr.body.includes( 'data or activity we track or use' ) ) {
47+
warn(
48+
'The Privacy section is missing for this PR. Please specify whether this PR includes any changes to data or privacy.'
49+
);
50+
}
51+
4552
// Check if newly added .php files were added to phpcs linter whitelist
4653
if ( newFiles.length > 0 ) {
4754
const newPHPFiles = newFiles.filter(

0 commit comments

Comments
 (0)