Skip to content

Commit

Permalink
JSON 5 simplified syntax (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
TWiStErRob authored Apr 6, 2024
1 parent 9b45d96 commit 900f81f
Show file tree
Hide file tree
Showing 3 changed files with 232 additions and 232 deletions.
38 changes: 19 additions & 19 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "https://www.augmentedmind.de/2021/07/25/renovate-bot-cheat-sheet/#11-keep-up-to-date-with-renovate-bots-development",
"configMigration": true,
"packageRules": [
$schema: "https://docs.renovatebot.com/renovate-schema.json",
description: "https://www.augmentedmind.de/2021/07/25/renovate-bot-cheat-sheet/#11-keep-up-to-date-with-renovate-bots-development",
configMigration: true,
packageRules: [
{
"groupName": "renovate",
"description": "Causes the bot to create a PR (and thus, an email notification), whenever there is a new major Renovate version.",
"matchPackageNames": [
groupName: "renovate",
description: "Causes the bot to create a PR (and thus, an email notification), whenever there is a new major Renovate version.",
matchPackageNames: [
"renovate/renovate",
"renovate"
"renovate",
],
"matchUpdateTypes": ["major"],
"automerge": true,
"prCreation": "immediate"
matchUpdateTypes: ["major"],
automerge: true,
prCreation: "immediate",
},
{
"groupName": "renovate",
"description": "Disables the creation of branches/PRs for any non-major updates of Renovate bot.",
"matchPackageNames": [
groupName: "renovate",
description: "Disables the creation of branches/PRs for any non-major updates of Renovate bot.",
matchPackageNames: [
"renovate/renovate",
"renovate"
"renovate",
],
"matchUpdateTypes": ["minor", "patch", "pin", "digest", "rollback"],
"enabled": false
}
]
matchUpdateTypes: ["minor", "patch", "pin", "digest", "rollback"],
enabled: false,
},
],
}
86 changes: 43 additions & 43 deletions default.json5
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"onboardingConfigFileName": ".github/renovate.json5",
"extends": [
$schema: "https://docs.renovatebot.com/renovate-schema.json",
onboardingConfigFileName: ".github/renovate.json5",
extends: [
"config:recommended",
":disableRateLimiting",
"local>TWiStErRob/renovate-config:group.json5/all",
"local>TWiStErRob/renovate-config:replacement.json5/all",
],
"semanticCommits": "disabled",
"configMigration": true,
"commitMessageExtra": "from {{{currentValue}}} to {{{newValue}}}{{#if isMajor}} (major v{{{newMajor}}}){{else}}{{/if}}",
"labels": ["in:dependencies"],
"separateMajorMinor": true,
"separateMultipleMajor": true,
"separateMinorPatch": true,
"minimumReleaseAge": "8 hours",
"internalChecksFilter": "strict",
"ignorePaths": [
"do-not-ignore-anything"
semanticCommits: "disabled",
configMigration: true,
commitMessageExtra: "from {{{currentValue}}} to {{{newValue}}}{{#if isMajor}} (major v{{{newMajor}}}){{else}}{{/if}}",
labels: ["in:dependencies"],
separateMajorMinor: true,
separateMultipleMajor: true,
separateMinorPatch: true,
minimumReleaseAge: "8 hours",
internalChecksFilter: "strict",
ignorePaths: [
"do-not-ignore-anything",
],
"packageRules": [
packageRules: [
{
"description": "Auto-merge all small changes, except for unstable versions.",
"matchUpdateTypes": ["minor", "patch"],
"matchCurrentVersion": "!/^0/",
"automerge": true
description: "Auto-merge all small changes, except for unstable versions.",
matchUpdateTypes: ["minor", "patch"],
matchCurrentVersion: "!/^0/",
automerge: true,
},
{
"description": "Auto-merge all updates of specific dependencies, their 0.x versions are stable and well-controlled.",
"matchUpdateTypes": ["minor", "patch"],
"matchCurrentVersion": "/^0/",
"matchPackageNames": [
"org.gradle.toolchains.foojay-resolver-convention"
description: "Auto-merge all updates of specific dependencies, their 0.x versions are stable and well-controlled.",
matchUpdateTypes: ["minor", "patch"],
matchCurrentVersion: "/^0/",
matchPackageNames: [
"org.gradle.toolchains.foojay-resolver-convention",
],
"automerge": true
automerge: true,
},
{
"description": "Auto-merge all digest updates, TODO why?",
"matchUpdateTypes": ["digest"],
"automerge": true
description: "Auto-merge all digest updates, TODO why?",
matchUpdateTypes: ["digest"],
automerge: true,
},
{
"description": "Wait for npm dependencies, they often have small patch releases in quick succession.",
"matchDatasources": ["npm"],
"minimumReleaseAge": "3 days"
description: "Wait for npm dependencies, they often have small patch releases in quick succession.",
matchDatasources: ["npm"],
minimumReleaseAge: "3 days",
},
{
"description": "Merge my packages as soon as possible.",
"matchPackagePrefixes": ["net.twisterrob"],
"minimumReleaseAge": "0 minutes"
description: "Merge my packages as soon as possible.",
matchPackagePrefixes: ["net.twisterrob"],
minimumReleaseAge: "0 minutes",
},
{
"description": "Pin my reusable workflows, semver might not be true.",
"matchDepTypes": ["action"],
"matchPackageNames": [
"TWiStErRob/github-workflows"
description: "Pin my reusable workflows, semver might not be true.",
matchDepTypes: ["action"],
matchPackageNames: [
"TWiStErRob/github-workflows",
],
"pinDigests": true
}
pinDigests: true,
},
],
"gradle-wrapper": {
"description": "Update Gradle wrapper to non-stable versions",
"ignoreUnstable": false
}
description: "Update Gradle wrapper to non-stable versions",
ignoreUnstable: false,
},
}
Loading

0 comments on commit 900f81f

Please sign in to comment.