File tree Expand file tree Collapse file tree
packages/@rnw-scripts/generate-release-notes Expand file tree Collapse file tree Original file line number Diff line number Diff 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
155155function extractReleaseNotesSummary ( prDescription ) {
You can’t perform that action at this time.
0 commit comments