We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c5c749 commit 4c05ceaCopy full SHA for 4c05cea
Dangerfile.swift
@@ -39,8 +39,10 @@ if hasPngs {
39
}
40
41
// Check for nice PR titles
42
+let prTitle = danger.github.pullRequest.title
43
let fixesRegex = try! Regex("(Fixes|Fix) #\\d+")
-if danger.github.pullRequest.title.hasSuffix("…") || danger.github.pullRequest.title.starts(with: fixesRegex) {
44
+let semanticRegex = try! Regex("\\w+\\(\\w+\\):")
45
+if prTitle.hasSuffix("…") || prTitle.starts(with: fixesRegex) || prTitle.starts(with: semanticRegex) {
46
fail("Please provide a complete title that can be used as a changelog entry.")
47
48
0 commit comments