This is an automated email from the ASF dual-hosted git repository. janhoy pushed a commit to branch branch_10x in repository https://gitbox.apache.org/repos/asf/solr.git
commit fe5dedbc98942cd73017d511d81183b8d2d77968 Author: Jan Høydahl <[email protected]> AuthorDate: Wed Feb 4 15:50:50 2026 +0100 Improve writeChangelog gradle task (#4007) (cherry picked from commit a29f0472fde9978ea0c1039e2ac978c94736f681) --- gradle/changelog.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gradle/changelog.gradle b/gradle/changelog.gradle index 69d2d6e87f7..aa9c32a13a3 100644 --- a/gradle/changelog.gradle +++ b/gradle/changelog.gradle @@ -44,7 +44,11 @@ task writeChangelog { def jiraRef = jiraMatcher ? jiraMatcher[0].toUpperCase() : "SOLR-XXXX" def jiraUrl = "https://issues.apache.org/jira/browse/${jiraRef}" def jiraLinks = jiraMatcher ? "links:\n - name: ${jiraRef}\n url: ${jiraUrl}" : "" - def title = gitBranch.replaceFirst(/(?i)SOLR-\d\d\d+-/, "").replace("-", " ").capitalize() + def title = gitBranch.replaceFirst(/(?i)SOLR-\d\d\d+\b-?/, "").replace("-", " ").capitalize() + // Warn user when generating empty title + if (title.isEmpty()) { + println "WARNING: Title in generated changelog is empty, please edit" + } // Strip everything before and including '/', then sanitize special characters def sanitizedBranchName = gitBranch.replaceAll(/^.*\//, "").replaceAll(/[^a-zA-Z0-9._-]/, "-") def fileName = "changelog/unreleased/${sanitizedBranchName}.yml"
