Skip to content

Commit

Permalink
feat(github-action): switch to Mend Renovate App
Browse files Browse the repository at this point in the history
  • Loading branch information
prehor committed Aug 15, 2024
1 parent bb76cad commit 86db209
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 52 deletions.
22 changes: 11 additions & 11 deletions .github/labels.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
- name: renovate/container
color: "027fa0"
- name: type/patch
color: "ffeC19"
- name: type/minor
color: "ff9800"
- name: type/major
color: "f6412d"
- name: hold
color: "ee0701"
# Renovate
- { name: "renovate/container", color: "027fa0" }
- { name: "renovate/github-action", color: "027fa0" }
# Semantic Type
- { name: "type/digest", color: "ffec19" }
- { name: "type/patch", color: "ffec19" }
- { name: "type/minor", color: "ff9800" }
- { name: "type/major", color: "f6412d" }
- { name: "type/break", color: "f6412d" }
# Uncategorized
- { name: "hold/upstream", color: "ee0701" }
50 changes: 9 additions & 41 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,17 @@
"extends": [
"config:recommended",
"docker:enableMajor",
":automergeBranch",
":dependencyDashboard",
":disableRateLimiting",
":timezone(America/New_York)",
":semanticCommits"
":timezone(Europe/Prague)",
":semanticCommits",
"github>prehor/home-ops//.github/renovate/automerge.json5",
"github>prehor/home-ops//.github/renovate/labels.json5"
],
"dependencyDashboard": true,
"dependencyDashboardTitle": "Renovate Dashboard 🤖",
"suppressNotifications": ["prEditedNotification", "prIgnoreNotification"],
"ignorePaths": ["apps/alpine-toolbox"],
"packageRules": [
{
"addLabels": ["renovate/container", "type/major"],
"additionalBranchPrefix": "{{parentDir}}-",
"commitMessageExtra": " ( {{currentVersion}} → {{newVersion}} )",
"commitMessagePrefix": "feat({{parentDir}})!: ",
"commitMessageTopic": "{{depName}}",
"labels": ["app/{{parentDir}}"],
"matchDatasources": ["docker"],
"matchFileNames": ["apps/**/Dockerfile"],
"matchUpdateTypes": ["major"]
},
{
"addLabels": ["renovate/container", "type/minor"],
"additionalBranchPrefix": "{{parentDir}}-",
"commitMessageExtra": "( {{currentVersion}} → {{newVersion}} )",
"commitMessageTopic": "{{depName}}",
"labels": ["app/{{parentDir}}"],
"matchDatasources": ["docker"],
"matchFileNames": ["apps/**/Dockerfile"],
"matchUpdateTypes": ["minor"],
"semanticCommitScope": "{{parentDir}}",
"semanticCommitType": "feat"
},
{
"addLabels": ["renovate/container", "type/patch"],
"additionalBranchPrefix": "{{parentDir}}-",
"commitMessageExtra": "( {{currentVersion}} → {{newVersion}} )",
"commitMessageTopic": "{{depName}}",
"labels": ["app/{{parentDir}}"],
"matchDatasources": ["docker"],
"matchFileNames": ["apps/**/Dockerfile"],
"matchUpdateTypes": ["patch"],
"semanticCommitScope": "{{parentDir}}",
"semanticCommitType": "fix"
}
]
"rebaseWhen": "conflicted",
"schedule": ["daily"],
"suppressNotifications": ["prEditedNotification", "prIgnoreNotification"]
}
13 changes: 13 additions & 0 deletions .github/renovate/automerge.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"description": ["Auto merge Github Actions"],
"matchManagers": ["github-actions"],
"automerge": true,
"automergeType": "branch",
"ignoreTests": true,
"matchUpdateTypes": ["minor", "patch"]
}
]
}
29 changes: 29 additions & 0 deletions .github/renovate/labels.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"matchUpdateTypes": ["major"],
"labels": ["type/major"]
},
{
"matchUpdateTypes": ["minor"],
"labels": ["type/minor"]
},
{
"matchUpdateTypes": ["patch"],
"labels": ["type/patch"]
},
{
"matchUpdateTypes": ["digest"],
"labels": ["type/digest"]
},
{
"matchDatasources": ["docker"],
"addLabels": ["renovate/container"]
},
{
"matchManagers": ["github-actions"],
"addLabels": ["renovate/github-action"]
}
]
}

0 comments on commit 86db209

Please sign in to comment.