fix: force fix(deps) commit type so renovate PRs trigger releases
Build and publish container / build (pull_request) Successful in 6m16s
Build and publish container / build (pull_request) Successful in 6m16s
config:recommended pulls in :semanticPrefixFixDepsChoreOthers, whose catch-all packageRule forces non-npm updates (Docker base image, Gitea Actions) to the chore type, overriding the top-level semanticCommitType. chore produces no release, so Renovate updates were never auto-tagged. Append a packageRule matching all packages that sets semanticCommitType to fix, so every merged Renovate PR registers as a patch and is released and tagged. Also migrate the deprecated fileMatch keys to managerFilePatterns. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+8
-3
@@ -10,20 +10,25 @@
|
|||||||
"semanticCommitType": "fix",
|
"semanticCommitType": "fix",
|
||||||
"semanticCommitScope": "deps",
|
"semanticCommitScope": "deps",
|
||||||
"github-actions": {
|
"github-actions": {
|
||||||
"fileMatch": ["^\\.gitea/workflows/[^/]+\\.ya?ml$"]
|
"managerFilePatterns": ["/^\\.gitea/workflows/[^/]+\\.ya?ml$/"]
|
||||||
},
|
},
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"description": "Group nginx base image updates",
|
"description": "Group nginx base image updates",
|
||||||
"matchManagers": ["dockerfile"],
|
"matchManagers": ["dockerfile"],
|
||||||
"groupName": "docker base image"
|
"groupName": "docker base image"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Commit every update as fix(deps) so each merged Renovate PR triggers a patch release. config:recommended pulls in :semanticPrefixFixDepsChoreOthers, which forces non-npm updates (Docker, Actions) to chore and would otherwise produce no release.",
|
||||||
|
"matchPackageNames": ["*"],
|
||||||
|
"semanticCommitType": "fix"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"customManagers": [
|
"customManagers": [
|
||||||
{
|
{
|
||||||
"customType": "regex",
|
"customType": "regex",
|
||||||
"description": "Update HTML dependencies annotated with a renovate comment, e.g. <!-- renovate: datasource=npm depName=bootstrap --> before the versioned URL",
|
"description": "Update HTML dependencies annotated with a renovate comment, e.g. <!-- renovate: datasource=npm depName=bootstrap --> before the versioned URL",
|
||||||
"fileMatch": ["\\.html$"],
|
"managerFilePatterns": ["/\\.html$/"],
|
||||||
"matchStrings": [
|
"matchStrings": [
|
||||||
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( versioning=(?<versioning>\\S+))?[\\s\\S]*?(?<currentValue>v?\\d+\\.\\d+\\.\\d+[\\w.-]*)"
|
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( versioning=(?<versioning>\\S+))?[\\s\\S]*?(?<currentValue>v?\\d+\\.\\d+\\.\\d+[\\w.-]*)"
|
||||||
]
|
]
|
||||||
@@ -31,7 +36,7 @@
|
|||||||
{
|
{
|
||||||
"customType": "regex",
|
"customType": "regex",
|
||||||
"description": "Auto-detect versioned jsDelivr / unpkg npm assets in HTML",
|
"description": "Auto-detect versioned jsDelivr / unpkg npm assets in HTML",
|
||||||
"fileMatch": ["\\.html$"],
|
"managerFilePatterns": ["/\\.html$/"],
|
||||||
"matchStrings": [
|
"matchStrings": [
|
||||||
"https://cdn\\.jsdelivr\\.net/npm/(?<depName>@?[^@/]+(?:/[^@/]+)?)@(?<currentValue>\\d[^/\"']+)",
|
"https://cdn\\.jsdelivr\\.net/npm/(?<depName>@?[^@/]+(?:/[^@/]+)?)@(?<currentValue>\\d[^/\"']+)",
|
||||||
"https://unpkg\\.com/(?<depName>@?[^@/]+(?:/[^@/]+)?)@(?<currentValue>\\d[^/\"']+)"
|
"https://unpkg\\.com/(?<depName>@?[^@/]+(?:/[^@/]+)?)@(?<currentValue>\\d[^/\"']+)"
|
||||||
|
|||||||
Reference in New Issue
Block a user