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