Skip to content

Commit

Permalink
chore(config): migrate renovate config in {{packageFile}} (#150)
Browse files Browse the repository at this point in the history
The Renovate config in this repository needs migrating. Typically this
is because one or more configuration options you are using have been
renamed.

You don't need to merge this PR right away, because Renovate will
continue to migrate these fields internally each time it runs. But later
some of these fields may be fully deprecated and the migrations removed.
So it's a good idea to merge this migration PR soon.



#### [PLEASE
NOTE](https://docs.renovatebot.com/configuration-options#configmigration):
JSON5 config file migrated! All comments & trailing commas were removed.

🔕 **Ignore**: Close this PR and you won't be reminded about config
migration again, but one day your current config may no longer be valid.

❓ Got questions? Does something look wrong to you? Please don't hesitate
to [request help
here](https://redirect.github.com/renovatebot/renovate/discussions).


---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/jippi/dottie).

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Christian Winther <[email protected]>
  • Loading branch information
renovate[bot] and jippi authored Jan 22, 2025
1 parent e0758b6 commit 2a54051
Showing 1 changed file with 46 additions and 32 deletions.
78 changes: 46 additions & 32 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,65 +1,79 @@
{
extends: [
"config:recommended",
":pinDevDependencies",
":separateMultipleMajorReleases",
"default:pinDigestsDisabled",
'config:recommended',
':pinDevDependencies',
':separateMultipleMajorReleases',
'default:pinDigestsDisabled',
],
schedule: [
"* */1 * * *", // every 1 hour
'* */1 * * *',
],
postUpdateOptions: ["gomodTidy", "gomodUpdateImportPaths"],
commitMessageSuffix: " in {{packageFile}}",
postUpdateOptions: [
'gomodTidy',
'gomodUpdateImportPaths',
],
commitMessageSuffix: ' in {{packageFile}}',
dependencyDashboardAutoclose: true,
automerge: true,
baseBranches: ["main"],
baseBranches: [
'main',
],
platformAutomerge: true,
labels: ["dependencies"],
labels: [
'dependencies',
],
prHourlyLimit: 1,
osvVulnerabilityAlerts: true,
vulnerabilityAlerts: {
enabled: true,
labels: ["security"],
labels: [
'security',
],
},
packageRules: [
{
matchPackageNames: ["go", "golang"],
versioning: "go",
groupName: "go",
matchPackageNames: [
'go',
'golang',
],
versioning: 'go',
groupName: 'go',
},
{
matchDepTypes: ["golang-version"],
matchDepTypes: [
'golang-version',
],
prPriority: 999,
},
{
description: "Group charmbracelet packages",
groupName: "charmbracelet",
matchPackagePrefixes: ["github.com/charmbracelet/"],
description: 'Group charmbracelet packages',
groupName: 'charmbracelet',
matchPackageNames: [
'github.com/charmbracelet/{/,}**',
],
},
],
customManagers: [
{
customType: "regex",
fileMatch: ["(^|/)Dockerfile$", "(^|/)Dockerfile\\.[^/]*$"],
customType: 'regex',
fileMatch: [
'(^|/)Dockerfile$',
'(^|/)Dockerfile\\.[^/]*$',
],
matchStrings: [
// example:
//
// # renovate: datasource=github-releases depName=hashicorp/terraform versioning=hashicorp
// ENV DEFAULT_TERRAFORM_VERSION=x.x.x
//
// # renovate: datasource=github-releases depName=open-policy-agent/conftest
// ARG DEFAULT_CONFTEST_VERSION=x.x.x
"renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s(ARG|ENV) .*?_VERSION=(?<currentValue>.*)\\s",
'renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s(ARG|ENV) .*?_VERSION=(?<currentValue>.*)\\s',
],
versioningTemplate: "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
versioningTemplate: '{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}',
},
{
customType: "regex",
fileMatch: ["^\\.github/workflows/[^/]+\\.ya?ml$"],
customType: 'regex',
fileMatch: [
'^\\.github/workflows/[^/]+\\.ya?ml$',
],
matchStrings: [
"renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s.*?: (?<currentValue>.*)\\s",
'renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s.*?: (?<currentValue>.*)\\s',
],
versioningTemplate: "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
versioningTemplate: '{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}',
},
],
}

0 comments on commit 2a54051

Please sign in to comment.