mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Disable semantic commits from Renovate (#3629)
* Disable semantic commits from Renovate * Add a Danger check for semantic commits.
This commit is contained in:
+3
-1
@@ -39,8 +39,10 @@ if hasPngs {
|
||||
}
|
||||
|
||||
// Check for nice PR titles
|
||||
let prTitle = danger.github.pullRequest.title
|
||||
let fixesRegex = try! Regex("(Fixes|Fix) #\\d+")
|
||||
if danger.github.pullRequest.title.hasSuffix("…") || danger.github.pullRequest.title.starts(with: fixesRegex) {
|
||||
let semanticRegex = try! Regex("\\w+\\(\\w+\\):")
|
||||
if prTitle.hasSuffix("…") || prTitle.starts(with: fixesRegex) || prTitle.starts(with: semanticRegex) {
|
||||
fail("Please provide a complete title that can be used as a changelog entry.")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user