Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 2.13.0

### Features

- Danger - Changelog checks can now additionally be skipped with a `skip-changelog` label ([#94](https://github.com/getsentry/github-workflows/pull/94))

## 2.12.0

### Features
Expand Down
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") ||
(danger.github.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