Files
Biohazard/.renovate/commitMessage.json5
2024-12-16 15:19:28 +08:00

80 lines
3.1 KiB
Plaintext

{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"matchPackageNames": ["*"],
"commitMessageTopic": "",
"semanticCommitScope": "{{datasource}}/{{#if groupName}}{{groupName}}{{else if depName}}{{depName}}{{else}}{{packageName}}{{/if}}",
"commitMessageExtra": "{{#if currentVersion}}{{currentVersion}}{{else if currentDigestShort}}{{currentDigestShort}}{{else}}{{currentValue}}{{/if}} ➼ {{#if newVersion}}{{newVersion}}{{else if newDigestShort}}{{newDigestShort}}{{else}}{{newValue}}{{/if}}"
},
{
"matchUpdateTypes": ["major"],
"commitMessagePrefix": "feat({{datasource}}/{{depName}})!: "
},
{
"matchUpdateTypes": ["minor"],
"semanticCommitType": "feat"
},
{
"matchUpdateTypes": ["patch"],
"semanticCommitType": "fix"
},
{
"matchUpdateTypes": ["digest"],
"semanticCommitType": "chore"
},
{
"matchDatasources": ["docker"],
"matchUpdateTypes": ["!major"],
"semanticCommitScope": "oci/{{#if groupName}}{{groupName}}{{else}}{{depName}}{{/if}}"
},
{
"matchDatasources": ["docker"],
"matchDepNames": ["*/*/**"],
"matchUpdateTypes": ["!major"],
"semanticCommitScope": "oci/{{#if groupName}}{{groupName}}{{else}}{{ lookup (split depName '/') 2 }}{{ lookup (split depName '/') 3 }}{{ lookup (split depName '/') 4 }}{{ lookup (split depName '/') 5 }}{{/if}}"
},
{
"matchDatasources": ["docker"],
"matchDepNames": ["*/*"],
"matchUpdateTypes": ["!major"],
"semanticCommitScope": "oci/{{#if groupName}}{{groupName}}{{else}}{{ lookup (split depName '/') 1 }}{{/if}}"
},
{
"matchDatasources": ["docker"],
"matchUpdateTypes": ["major"],
"commitMessagePrefix": "feat(oci/{{#if groupName}}{{groupName}}{{else}}{{depName}}{{/if}})!: "
},
{
"matchDatasources": ["docker"],
"matchDepNames": ["*/*/**"],
"matchUpdateTypes": ["major"],
"commitMessagePrefix": "feat(oci/{{#if groupName}}{{groupName}}{{else}}{{ lookup (split depName '/') 2 }}{{ lookup (split depName '/') 3 }}{{ lookup (split depName '/') 4 }}{{ lookup (split depName '/') 5 }}{{/if}})!: "
},
{
"matchDatasources": ["docker"],
"matchDepNames": ["*/*"],
"matchUpdateTypes": ["major"],
"commitMessagePrefix": "feat(oci/{{#if groupName}}{{groupName}}{{else}}{{ lookup (split depName '/') 1 }}{{/if}})!: "
},
{
"matchDatasources": ["github-releases", "github-tags"],
"semanticCommitScope": "github/{{#if groupName}}{{groupName}}{{else}}{{depName}}{{/if}}"
},
{
"matchDatasources": ["github-releases", "github-tags"],
"matchUpdateTypes": ["major"],
"commitMessagePrefix": "feat(github/{{#if groupName}}{{groupName}}{{else}}{{depName}}{{/if}})!: "
},
{
"matchManagers": ["github-actions"],
"semanticCommitScope": "gha/{{#if groupName}}{{groupName}}{{else}}{{depName}}{{/if}}"
},
{
"matchManagers": ["github-actions"],
"matchUpdateTypes": ["major"],
"commitMessagePrefix": "feat(gha/{{#if groupName}}{{groupName}}{{else}}{{depName}}{{/if}})!: "
}
]
}