Danger: Add png check (#88)

This commit is contained in:
ismailgulek
2022-06-21 18:49:02 +03:00
committed by GitHub
parent 5f3a22e4e5
commit 163b0b2aa7
2 changed files with 7 additions and 0 deletions

View File

@@ -75,3 +75,9 @@ if hasChangedViews {
warn("You seem to have made changes to views. Please consider adding screenshots.")
}
}
// Check for pngs on resources
let hasPngs = !editedFiles.filter { $0.lowercased().hasSuffix(".png") }.isEmpty
if hasPngs {
warn("You seem to have made changes to some images. Please consider using an SVG or PDF.")
}

1
changelog.d/87.change Normal file
View File

@@ -0,0 +1 @@
Danger: Add a check for png files and warn to use SVG and PDF files.