Skip to content
Snippets Groups Projects
Unverified Commit a16f169a authored by Doug's avatar Doug Committed by GitHub
Browse files

Disable semantic commits from Renovate (#3629)

* Disable semantic commits from Renovate

* Add a Danger check for semantic commits.
parent 598e6048
No related branches found
No related tags found
No related merge requests found
...@@ -39,8 +39,10 @@ if hasPngs { ...@@ -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.")
} }
......
{ {
"$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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment