Skip to content

Commit 4dad568

Browse files
debug changelog check
1 parent 67ae722 commit 4dad568

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

danger/dangerfile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,16 @@ async function checkDocs() {
5757
async function checkChangelog() {
5858
const changelogFile = "CHANGELOG.md";
5959
const flavorConfig = getFlavorConfig(prFlavor);
60-
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(`::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}`);
6770
return;
6871
}
6972

0 commit comments

Comments
 (0)