Disable semantic commits from Renovate (#3629)

* Disable semantic commits from Renovate

* Add a Danger check for semantic commits.
This commit is contained in:
Doug 2024-12-17 11:16:27 +00:00 committed by GitHub
parent 598e604851
commit a16f169a92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -39,8 +39,10 @@ if hasPngs {
} }
// Check for nice PR titles // Check for nice PR titles
let prTitle = danger.github.pullRequest.title
let fixesRegex = try! Regex("(Fixes|Fix) #\\d+") 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.") fail("Please provide a complete title that can be used as a changelog entry.")
} }

View File

@ -1,7 +1,8 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [ "extends": [
"config:recommended" "config:recommended",
":semanticCommitsDisabled"
], ],
"labels" : [ "labels" : [
"pr-misc" "pr-misc"