Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions danger/dangerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ async function checkChangelog() {
// Check if skipped
if (
["ci", "test", "deps", "chore(deps)", "build(deps)"].includes(prFlavor) ||
(danger.github.pr.body + "").includes("#skip-changelog")
(danger.github.pr.body + "").includes("#skip-changelog") ||
(pr.labels || []).some(label => label.name === 'skip-changelog')
) {
return;
}
Expand Down Expand Up @@ -126,7 +127,7 @@ Example:
- ${prTitleFormatted} ([#${danger.github.pr.number}](${danger.github.pr.html_url}))
\`\`\`

If none of the above apply, you can opt out of this check by adding \`#skip-changelog\` to the PR description.`.trim(),
If none of the above apply, you can opt out of this check by adding \`#skip-changelog\` to the PR description or adding a \`skip-changelog\` label.`.trim(),
changelogFile
);
}
Expand Down
Loading