Skip to content

Commit

Permalink
some renovate tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
PrivatePuffin committed Oct 16, 2024
1 parent 9d2a370 commit 0352b04
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 33 deletions.
3 changes: 2 additions & 1 deletion .github/renovate/basics/commitMessage.json5
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
"commitMessageTopic": "{{depName}}",
"commitMessageExtra": "{{currentVersion}} → {{newVersion}}",
"commitMessageSuffix": "By Renovate",
"prefix": "chore(deps)",
"packageRules": [
{
"matchDatasources": ["helm"],
"commitMessageTopic": "chart {{depName}}"
},
{
"matchDatasources": ["docker", "helm-values"],
"commitMessageTopic": "image {{depName}}"
"commitMessageTopic": "OCI-image {{depName}}"
}
]
}
14 changes: 11 additions & 3 deletions .github/renovate/basics/labels.json5
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,19 @@
},
{
"matchUpdateTypes": ["patch"],
"labels": ["type/patch"]
"labels": ["type/patch", "automerge"]
},
{
"matchUpdateTypes": ["digest"],
"labels": ["type/digest"]
"matchUpdateTypes": ["digest", "pin"],
"labels": ["type/digest", "automerge"]
},
{
"matchUpdateTypes": ["pin"],
"labels": ["type/pin", "automerge"]
},
{
"matchUpdateTypes": ["lockfile"],
"labels": ["type/lockfile", "automerge"]
},
{
"matchDatasources": ["docker"],
Expand Down
1 change: 1 addition & 0 deletions .github/renovate/main.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"rebaseWhen": "conflicted",
"prConcurrentLimit": 150,
"automergeType": "pr",
"pinDigests": true,
"semanticCommits": "enabled",
"dependencyDashboard": true,
Expand Down
36 changes: 9 additions & 27 deletions .github/renovate/special/automerge.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,22 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"description": ["Auto-merge container digests, patch and minor updates for trusted containers"],
"matchDatasources": ["docker"],
"description": ["Auto-merge minor updates from trusted sources"],
"matchDatasources": ["docker", "helm", "flux"],
"automerge": true,
"automergeType": "pr",
"matchUpdateTypes": ["digest", "patch", "minor", "digest", "pin"],
"matchPackagePatterns": ["ghcr.io/bjw-s", "ghcr.io/onedr0p", "tccr.io/tccr/.*", "tccr.io/tccrbase/.*" ],
"branchPrefix": "docker-automerge-"
"matchUpdateTypes": ["minor"],
"matchPackagePatterns": ["ghcr.io/bjw-s", "ghcr.io/onedr0p", "tccr.io/tccr/.*", "tccr.io/tccrbase/.*", "tccr.io/truecharts/.*" ],
"branchPrefix": "trusted-automerge-",
"labels": ["type/minor", "automerge"]
},
{
"description": ["Auto-merge helm-values digests, patch and minor updates for trusted containers"],
"matchDatasources": ["helm-values"],
"automerge": true,
"automergeType": "pr",
"matchUpdateTypes": ["digest", "patch", "minor", "digest", "pin"],
"matchPackagePatterns": ["ghcr.io/bjw-s", "ghcr.io/onedr0p", "tccr.io/tccr/.*", "tccr.io/tccrbase/.*" ],
"branchPrefix": "helm-values-automerge-"
},
{
"description": ["Auto-merge chart updates, patch, and minor updates for OCI Helm charts from tccr.io/truecharts"],
"matchDatasources": ["helm", "flux"], // Use 'helm' datasource to match Helm charts
"automerge": true,
"automergeType": "pr",
"matchUpdateTypes": ["digest", "patch", "minor", "digest", "pin"], // Specify the types of updates to automate
"matchPackagePatterns": ["tccr.io/truecharts/.*"],
"branchPrefix": "helm-automerge-"
},
{
"description": ["Auto-merge GitHub Actions for minor and patch"],
"matchManagers": ["github-actions"],
"matchDatasources": ["github-tags"],
"automerge": true,
"automergeType": "pr",
"matchUpdateTypes": ["minor", "patch", "digest", "pin"],
"branchPrefix": "github-automerge-"
"matchUpdateTypes": ["minor"],
"branchPrefix": "github-automerge-",
"labels": ["type/minor", "automerge"]
}
]
}
3 changes: 2 additions & 1 deletion .github/renovate/updates/lockfile.json5
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"packageRules": [
{
matchUpdateTypes: ["lockfile"],
automerge: true
automerge: true,
"autoApprove": true
}
],
"ignore": [
Expand Down
3 changes: 2 additions & 1 deletion .github/renovate/updates/pin.json5
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"packageRules": [
{
matchUpdateTypes: ["pin"],
automerge: true
automerge: true,
"autoApprove": true
}
],
"ignore": [
Expand Down

0 comments on commit 0352b04

Please sign in to comment.