From 4a536834e61009951ad4c6f8d92a9c94638eecdd Mon Sep 17 00:00:00 2001 From: Jamie Tanna Date: Sat, 1 Nov 2025 12:45:45 +0000 Subject: [PATCH] chore(renovate): correctly create branches for top-level files Previously, the `packageFileDir` would be set to "", so the branch name would be generated as: "branchName": "renovate//github.com-golangci-golangci-lint-2.x" With this fix, we see: "branchName": "renovate/Makefile/github.com-golangci-golangci-lint-2.x", Adding in the `packageFile` makes it clearer than "just" a `/` or an empty string. --- renovate.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renovate.json b/renovate.json index df8a3c23c9..dac5dde8b9 100644 --- a/renovate.json +++ b/renovate.json @@ -12,8 +12,8 @@ "matchFileNames": [ "**/*" ], - "additionalBranchPrefix": "{{#if isGroup }}{{ else }}{{packageFileDir}}/{{/if}}", - "commitMessageSuffix": "{{#if isGroup }}{{ else }} ({{packageFileDir}}){{/if}}" + "additionalBranchPrefix": "{{#if isGroup }}{{ else }}{{#if packageFileDir}}{{packageFileDir}}/{{else}}{{packageFile}}/{{/if}}{{/if}}", + "commitMessageSuffix": "{{#if isGroup }}{{ else }} ({{#if packageFileDir}}{{packageFileDir}}{{else}}{{packageFile}}{{/if}}){{/if}}" }, { "description": "Don't attempt to bump dependencies if they're only used in example code, but allow manually forcing them via Dependency Dashboard",