Skip to content

Commit f929197

Browse files
authored
Update config based on the worning preset in grafana-renovate-config
Doesn't link to the actual preset from that repository, since it's not yet public.
1 parent 4c8507c commit f929197

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

README.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,18 @@ This is a monorepo containing several Actions. When we release a workflow, we cr
1515

1616
While Dependabot can update references to these actions, Renovate can't do it out of the box. It can, however, be configured to do so:
1717

18-
```json5
18+
```json
1919
{
2020
packageRules: [
2121
{
22-
matchPackageNames: ["grafana/shared-workflows"],
23-
versioning: "regex:^(?<compatibility>.*)[-/]v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?$",
24-
25-
// By default, the dependency name is the same as the package name. For
26-
// Actions, this is `org/repo`. This means that we'd get all actions from
27-
// `shared-workflows` in the same branch. Our tag scheme contains the name
28-
// of the action being update to as well, so we can grab it from there and
29-
// set the dep name, then put this in the branch name. This should mean
30-
// that each shared workflow is handled separately.
31-
overrideDepName: 'grafana/shared-workflows/{{ lookup (split newVersion "/") 0 }}',
32-
additionalBranchPrefix: "{{depName}}",
22+
"matchPackageNames": ["grafana/shared-workflows"],
23+
"versioning": "regex:^(?<compatibility>.*)[-/]v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?$",
24+
"additionalBranchPrefix": "{{ lookup (split newVersion \"/\") 0 }}-",
25+
"commitMessagePrefix": "chore(deps):",
26+
"commitMessageAction": "update",
27+
"commitMessageTopic": "{{depName}}/{{ lookup (split newVersion \"/\") 0 }} action",
28+
"commitMessageExtra": "to {{ lookup (split newVersion \"/\") 1 }}",
29+
3330
},
3431
],
3532
}

0 commit comments

Comments
 (0)