mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Fix Danger's changelog detection.
This commit is contained in:
parent
d7fae1ad7d
commit
7a458377d6
@ -17,9 +17,9 @@ if danger.github.pullRequest.body?.isEmpty ?? true {
|
||||
|
||||
// Request a changelog for each app change
|
||||
let editedFiles = danger.git.modifiedFiles + danger.git.createdFiles
|
||||
let hasChangelog = danger.git.modifiedFiles.contains("/changelog.d")
|
||||
let changelogFiles = editedFiles.filter { $0.hasPrefix("changelog.d/") }
|
||||
|
||||
if editedFiles.count > 0 && !hasChangelog {
|
||||
if editedFiles.count > 0 && changelogFiles.isEmpty {
|
||||
warn("Please add a changelog.")
|
||||
}
|
||||
|
||||
|
1
changelog.d/74.build
Normal file
1
changelog.d/74.build
Normal file
@ -0,0 +1 @@
|
||||
Fix Danger's changelog detection.
|
Loading…
x
Reference in New Issue
Block a user