Skip to content

Commit cbf9e13

Browse files
committed
update logic
1 parent c6e5c93 commit cbf9e13

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/@rnw-scripts/generate-release-notes/generate-release-notes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function shouldIncludeInReleaseNotes(prDescription) {
137137
const marker = 'Should this change be included in the release notes:';
138138
const markerIndex = prDescription.indexOf(marker);
139139

140-
if (markerIndex === -1) return false;
140+
if (markerIndex === -1) return true;
141141

142142
// Get text after the marker
143143
const afterMarker = prDescription.substring(markerIndex + marker.length);
@@ -147,9 +147,9 @@ function shouldIncludeInReleaseNotes(prDescription) {
147147

148148
if (lines.length === 0) return false;
149149

150-
// Check if the first non-empty line contains "yes" or "_yes_"
150+
// Check if the first non-empty line contains "no" or "_no_"
151151
const firstLine = lines[0].toLowerCase();
152-
return firstLine.includes('yes') || firstLine.includes('_yes_');
152+
return !(firstLine.includes('no') || firstLine.includes('_no_'));
153153
}
154154

155155
function extractReleaseNotesSummary(prDescription) {

0 commit comments

Comments
 (0)