Skip to content

Commit 7c0bbc4

Browse files
Revert " remove debug flag"
This reverts commit 44c0116.
1 parent 6a94ab8 commit 7c0bbc4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

danger/dangerfile.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@ async function checkDocs() {
5757
async function checkChangelog() {
5858
const changelogFile = "CHANGELOG.md";
5959
const flavorConfig = getFlavorConfig(prFlavor);
60-
console.log(`this is the changelog flavor config: ${flavorConfig}`);
60+
console.log(`::debug:: Changelog flavor config: ${flavorConfig}`);
6161
// Check if skipped - either by flavor config, explicit skip, or skip label
6262
if (
6363
flavorConfig.changelog === undefined ||
6464
(danger.github.pr.body + "").includes("#skip-changelog") ||
6565
(danger.github.pr.labels || []).some(label => label.name === 'skip-changelog')
6666
) {
67-
console.log(`Skipping changelog check: \n changelog flavor config: ${flavorConfig.changelog}`);
68-
console.log(`Pr body: ${danger.github.pr.body}`);
69-
console.log(`Pr labels: ${danger.github.pr.labels}`);
67+
console.log(`::debug:: Skipping changelog check: \n changelog flavor config: ${flavorConfig.changelog}`);
68+
console.log(`::debug:: Pr body: ${danger.github.pr.body}`);
69+
console.log(`::debug:: Pr labels: ${danger.github.pr.labels}`);
7070
return;
7171
}
7272

@@ -75,24 +75,24 @@ async function checkChangelog() {
7575
changelogFile
7676
);
7777
//
78-
console.log(`Changelog checked content: ${changelogContents}`);
78+
console.log(`::debug:: Changelog checked content: ${changelogContents}`);
7979

8080
const changelogMatch = RegExp(`^(.*?)\n[^\n]+(\\(${danger.github.pr.html_url}\\)|#${danger.github.pr.number}\\b)`, 's').exec(
8181
changelogContents
8282
);
8383

8484
// check if a changelog entry exists
8585
if (!changelogMatch) {
86-
console.log(`Has a changelog entry: ${changelogMatch}`);
86+
console.log(`::debug:: Has a changelog entry: ${changelogMatch}`);
8787
return reportMissingChangelog(changelogFile);
8888
}
8989

9090
// Check if the entry is added to an Unreleased section (or rather, check that it's not added to a released one)
9191
const textBeforeEntry = changelogMatch[1]
92-
console.log(`text before entry: ${textBeforeEntry}`);
92+
console.log(`::debug:: text before entry: ${textBeforeEntry}`);
9393

9494
const section = RegExp('^(## +v?[0-9.]+)([\-\n _]|$)', 'm').exec(textBeforeEntry)
95-
console.log(`Section: ${section}`);
95+
console.log(`::debug:: Section: ${section}`);
9696

9797
if (section) {
9898
const lineNr = 1 + textBeforeEntry.split(/\r\n|\r|\n/).length

0 commit comments

Comments
 (0)