Skip to content

Commit

Permalink
feat(renovate): per-cluster PRs, commit message, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JJGadgets committed Dec 4, 2024
1 parent 31d67ea commit 17182de
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 100 deletions.
14 changes: 14 additions & 0 deletions .renovate/clusters.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"matchFileNames": ["**/clusters/**"],
"additionalBranchPrefix": ["{{ lookup (split (lookup (split packageFileDir 'clusters/') 1) '/') 0 }}/"]
}
//{
// "matchFileNames": ["kube/clusters/**"],
// "additionalBranchPrefix": ["{{ lookup (split packageFileDir '/') 2 }}/"]
//}
]
}

44 changes: 37 additions & 7 deletions .renovate/commitMessage.json5
Original file line number Diff line number Diff line change
@@ -1,16 +1,46 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"commitMessageTopic": "{{depName}}",
"commitMessageExtra": "to {{newVersion}}",
"commitMessageTopic": "",
"semanticCommitScope": "{{datasource}}/{{depName}}",
"commitMessageExtra": "{{oldVersion}} ➼ {{newVersion}}",
"commitMessageSuffix": "",
"packageRules": [
{
"matchDatasources": ["helm"],
"commitMessageTopic": "chart {{depName}}"
"matchDatasources": ["docker", "helm"],
"matchUpdateTypes": ["major"],
"commitMessagePrefix": "feat({{datasource}}/{{depName}})!: "
},
{
"matchDatasources": ["docker"],
"commitMessageTopic": "image {{depName}}"
"matchUpdateTypes": ["minor"],
"semanticCommitType": "feat"
},
{
"matchUpdateTypes": ["patch"],
"semanticCommitType": "fix"
},
{
"matchUpdateTypes": ["digest"],
"semanticCommitType": "chore"
},
{
"matchDatasources": ["github-releases", "github-tags"],
"matchUpdateTypes": ["major"],
"commitMessagePrefix": "feat(github/{{depName}})!: "
},
{
"matchDatasources": ["github-releases", "github-tags"],
"matchUpdateTypes": ["minor", "patch"],
"semanticCommitScope": "github/{{depName}}"
},
{
"matchManagers": ["github-actions"],
"matchUpdateTypes": ["major"],
"commitMessagePrefix": "feat(gha/{{depName}})!: "
},
{
"matchManagers": ["github-actions"],
"matchUpdateTypes": ["minor", "patch"],
"semanticCommitScope": "gha/{{depName}}"
}
]
}
}
2 changes: 1 addition & 1 deletion .renovate/labels.json5
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
{
"matchDatasources": ["docker"],
"addLabels": ["oci/registry/{{ lookup (split depName '/') 0 }}", "oci/owner/{{ lookup (split depName '/') 1 }}", "oci/image/{{ lookup (split depName '/') 2 }}"]
"addLabels": ["oci/registry/{{ lookup (split depName '/') 0 }}", "oci/owner/{{ lookup (split depName '/') 1 }}", "oci/image/{{ lookup (split depName '/') 2 }}{{ lookup (split depName '/') 3 }}{{ lookup (split depName '/') 4 }}"]
},
{
"addLabels": ["{{#if isVulnerabilityAlert}}security/{{vulnerabilitySeverity}}{{/if}}"]
Expand Down
79 changes: 0 additions & 79 deletions .renovate/semanticCommits.json5

This file was deleted.

11 changes: 0 additions & 11 deletions .renovate/vyos.json5

This file was deleted.

3 changes: 1 addition & 2 deletions .renovaterc.json5
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
":automergeDigest",
":automergeBranch",
":timezone(Asia/Singapore)",
"github>JJGadgets/Biohazard//.renovate/clusters.json5",
"github>JJGadgets/Biohazard//.renovate/commitMessage.json5",
"github>JJGadgets/Biohazard//.renovate/groups.json5",
"github>JJGadgets/Biohazard//.renovate/labels.json5",
"github>JJGadgets/Biohazard//.renovate/semanticCommits.json5",
"github>JJGadgets/Biohazard//.renovate/security.json5",
"github>JJGadgets/Biohazard//.renovate/vyos.json5",
"security:openssf-scorecard",
"helpers:pinGitHubActionDigests"
],
Expand Down

0 comments on commit 17182de

Please sign in to comment.