mirror of
https://github.com/starship/starship.git
synced 2026-06-21 02:02:14 +07:00
build(config): migrate Renovate config (#7444)
* build(config): migrate config .github/renovate.json5 * chore: restore comments --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
This commit is contained in:
+108
-57
@@ -1,88 +1,139 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"config:best-practices",
|
||||
"security:openssf-scorecard",
|
||||
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
|
||||
extends: [
|
||||
'config:best-practices',
|
||||
'security:openssf-scorecard',
|
||||
// automerge minor updates
|
||||
":automergeMinor",
|
||||
":automergeBranch"
|
||||
':automergeMinor',
|
||||
':automergeBranch',
|
||||
],
|
||||
"ignorePresets": [
|
||||
":dependencyDashboard",
|
||||
":semanticPrefixFixDepsChoreOthers"
|
||||
ignorePresets: [
|
||||
':dependencyDashboard',
|
||||
':semanticPrefixFixDepsChoreOthers',
|
||||
],
|
||||
"labels": ["📦 dependencies"],
|
||||
"minimumReleaseAge": "4 days",
|
||||
"semanticCommits": "enabled",
|
||||
"semanticCommitType": "build",
|
||||
"rangeStrategy": "bump",
|
||||
"rebaseWhen": "conflicted",
|
||||
"lockFileMaintenance": {
|
||||
"enabled": true,
|
||||
"extends": ["schedule:weekly"],
|
||||
"groupName": "lockfile maintenance",
|
||||
"automerge": true
|
||||
labels: [
|
||||
'📦 dependencies',
|
||||
],
|
||||
minimumReleaseAge: '4 days',
|
||||
semanticCommits: 'enabled',
|
||||
semanticCommitType: 'build',
|
||||
rangeStrategy: 'bump',
|
||||
rebaseWhen: 'conflicted',
|
||||
lockFileMaintenance: {
|
||||
enabled: true,
|
||||
extends: [
|
||||
'schedule:weekly',
|
||||
],
|
||||
groupName: 'lockfile maintenance',
|
||||
automerge: true,
|
||||
},
|
||||
"packageRules": [
|
||||
packageRules: [
|
||||
// group updates to related packages
|
||||
{
|
||||
"groupName": "clap crates",
|
||||
"matchDatasources": ["crate"],
|
||||
"matchPackagePrefixes": ["clap"]
|
||||
groupName: 'clap crates',
|
||||
matchDatasources: [
|
||||
'crate',
|
||||
],
|
||||
matchPackageNames: [
|
||||
'clap{/,}**',
|
||||
],
|
||||
},
|
||||
{
|
||||
"groupName": "gitoxide crates",
|
||||
"matchDatasources": ["crate"],
|
||||
"matchPackagePrefixes": ["gix"]
|
||||
groupName: 'gitoxide crates',
|
||||
matchDatasources: [
|
||||
'crate',
|
||||
],
|
||||
matchPackageNames: [
|
||||
'gix{/,}**',
|
||||
],
|
||||
},
|
||||
{
|
||||
"groupName": "pest crates",
|
||||
"matchDatasources": ["crate"],
|
||||
"matchPackagePrefixes": ["pest"]
|
||||
groupName: 'pest crates',
|
||||
matchDatasources: [
|
||||
'crate',
|
||||
],
|
||||
matchPackageNames: [
|
||||
'pest{/,}**',
|
||||
],
|
||||
},
|
||||
{
|
||||
"groupName": "toml crates",
|
||||
"matchDatasources": ["crate"],
|
||||
"matchPackagePrefixes": ["toml"]
|
||||
groupName: 'toml crates',
|
||||
matchDatasources: [
|
||||
'crate',
|
||||
],
|
||||
matchPackageNames: [
|
||||
'toml{/,}**',
|
||||
],
|
||||
},
|
||||
{
|
||||
"groupName": "unicode crates",
|
||||
"matchDatasources": ["crate"],
|
||||
"matchPackagePrefixes": ["unicode"]
|
||||
groupName: 'unicode crates',
|
||||
matchDatasources: [
|
||||
'crate',
|
||||
],
|
||||
matchPackageNames: [
|
||||
'unicode{/,}**',
|
||||
],
|
||||
},
|
||||
// Prevent too many PRs by grouping certain updates together and only updating them weekly
|
||||
{
|
||||
"groupName": "dprint plugins",
|
||||
"matchPackagePrefixes": ["dprint"],
|
||||
"extends": ["schedule:weekly"]
|
||||
groupName: 'dprint plugins',
|
||||
extends: [
|
||||
'schedule:weekly',
|
||||
],
|
||||
matchPackageNames: [
|
||||
'dprint{/,}**',
|
||||
],
|
||||
},
|
||||
{
|
||||
"groupName": "npm",
|
||||
"matchDatasources": ["npm"],
|
||||
"extends": ["schedule:weekly"]
|
||||
groupName: 'npm',
|
||||
matchDatasources: [
|
||||
'npm',
|
||||
],
|
||||
extends: [
|
||||
'schedule:weekly',
|
||||
],
|
||||
},
|
||||
// Avoid frequent updates due to pinned digest values in GitHub Actions
|
||||
{
|
||||
"matchDepTypes": ["action"],
|
||||
"extends": ["schedule:weekly"]
|
||||
}
|
||||
matchDepTypes: [
|
||||
'action',
|
||||
],
|
||||
extends: [
|
||||
'schedule:weekly',
|
||||
],
|
||||
},
|
||||
],
|
||||
// custom regex update managers
|
||||
"regexManagers": [
|
||||
customManagers: [
|
||||
{
|
||||
"fileMatch": ["(^|\\/)\\.?dprint.json"],
|
||||
"matchStrings": ["\"https://github.com/(?<depName>.+)/releases/download/(?<currentValue>.+)/plugin.wasm\""],
|
||||
"datasourceTemplate": "github-releases"
|
||||
customType: 'regex',
|
||||
managerFilePatterns: [
|
||||
'/(^|\\/)\\.?dprint.json/',
|
||||
],
|
||||
matchStrings: [
|
||||
'"https://github.com/(?<depName>.+)/releases/download/(?<currentValue>.+)/plugin.wasm"',
|
||||
],
|
||||
datasourceTemplate: 'github-releases',
|
||||
},
|
||||
{
|
||||
"fileMatch": ["^(workflow-templates|\\.github\\/workflows)\\/[^/]+\\.ya?ml$"],
|
||||
"matchStrings": ["cargo install.*--version (?<currentValue>\\S+).*\\s(?<depName>\\S+)"],
|
||||
"datasourceTemplate": "crate"
|
||||
customType: 'regex',
|
||||
managerFilePatterns: [
|
||||
'/^(workflow-templates|\\.github\\/workflows)\\/[^/]+\\.ya?ml$/',
|
||||
],
|
||||
matchStrings: [
|
||||
'cargo install.*--version (?<currentValue>\\S+).*\\s(?<depName>\\S+)',
|
||||
],
|
||||
datasourceTemplate: 'crate',
|
||||
},
|
||||
{
|
||||
"fileMatch": ["^(workflow-templates|\\.github\\/workflows)\\/[^/]+\\.ya?ml$"],
|
||||
"matchStrings": ["^\\s+tool: (?<depName>[\\w-]+)@(?<currentValue>[^\\s]+)"],
|
||||
"datasourceTemplate": "crate"
|
||||
}
|
||||
]
|
||||
customType: 'regex',
|
||||
managerFilePatterns: [
|
||||
'/^(workflow-templates|\\.github\\/workflows)\\/[^/]+\\.ya?ml$/',
|
||||
],
|
||||
matchStrings: [
|
||||
'^\\s+tool: (?<depName>[\\w-]+)@(?<currentValue>[^\\s]+)',
|
||||
],
|
||||
datasourceTemplate: 'crate',
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user