Skip to content

Commit

Permalink
chore(ci): remove CHANGELOG check from Danger
Browse files Browse the repository at this point in the history
  • Loading branch information
philprime committed Nov 10, 2024
1 parent e573642 commit 3ab677f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Dangerfile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,7 @@ let danger = Danger()

// Changelog entries are required for changes to library files.
let allSourceFiles = danger.git.modifiedFiles + danger.git.createdFiles
let noChangelogEntry = !allSourceFiles.contains("CHANGELOG.md")
let sourceChanges = allSourceFiles.contains { $0.hasPrefix("Source") }
let isNotTrivial = !danger.github.pullRequest.title.contains("#trivial")
if isNotTrivial && noChangelogEntry && sourceChanges {
danger.warn("""
Any changes to library code should be reflected in the Changelog.
Please consider adding a note there.
""")
}

// Make it more obvious that a PR is a work in progress and shouldn't be merged yet
if danger.github.pullRequest.title.contains("WIP") || danger.github.pullRequest.title.contains("Draft") {
Expand Down

0 comments on commit 3ab677f

Please sign in to comment.