mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 05:27:11 +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:
parent
598e604851
commit
a16f169a92
@ -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.")
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"config:recommended"
|
||||
"config:recommended",
|
||||
":semanticCommitsDisabled"
|
||||
],
|
||||
"labels" : [
|
||||
"pr-misc"
|
||||
|
Loading…
x
Reference in New Issue
Block a user