File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 3333 $env:DANGER_OUTCOME | Should -Be "success"
3434
3535 Write-Host "✅ Danger PR analysis completed successfully!"
36- Write-Host "ℹ️ Check the PR comments for any Danger findings"
36+ Write-Host "ℹ️ Check the PR comments for any Danger findings"
Original file line number Diff line number Diff line change @@ -74,26 +74,19 @@ async function checkChangelog() {
7474 const changelogContents = await danger . github . utils . fileContents (
7575 changelogFile
7676 ) ;
77- //
78- console . log ( `::debug:: Changelog checked content: ${ changelogContents } ` ) ;
7977
8078 const changelogMatch = RegExp ( `^(.*?)\n[^\n]+(\\(${ danger . github . pr . html_url } \\)|#${ danger . github . pr . number } \\b)` , 's' ) . exec (
8179 changelogContents
8280 ) ;
8381
8482 // check if a changelog entry exists
8583 if ( ! changelogMatch ) {
86- console . log ( `::debug:: Has a changelog entry: ${ changelogMatch } ` ) ;
8784 return reportMissingChangelog ( changelogFile ) ;
8885 }
8986
9087 // Check if the entry is added to an Unreleased section (or rather, check that it's not added to a released one)
9188 const textBeforeEntry = changelogMatch [ 1 ]
92- console . log ( `::debug:: text before entry: ${ textBeforeEntry } ` ) ;
93-
9489 const section = RegExp ( '^(## +v?[0-9.]+)([\-\n _]|$)' , 'm' ) . exec ( textBeforeEntry )
95- console . log ( `::debug:: Section: ${ section } ` ) ;
96-
9790 if ( section ) {
9891 const lineNr = 1 + textBeforeEntry . split ( / \r \n | \r | \n / ) . length
9992 fail (
You can’t perform that action at this time.
0 commit comments