Skip to content

Commit

Permalink
chore(ci): fixed Dangerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
philprime committed Sep 15, 2023
1 parent cd53e01 commit de13fa9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dangerfile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import Foundation

let danger = Danger()

let allSourceFiles = danger.git.modifiedFiles + danger.git.createdFiles
let sourceChanges = allSourceFiles.contains { $0.hasPrefix("Source") }

// Ensure no copyright header
let swiftFilesWithCopyright = allSourceFiles.filter {
$0.contains("Copyright") && ($0.fileType == .swift || $0.fileType == .m)
Expand Down

0 comments on commit de13fa9

Please sign in to comment.