Skip to content

Commit

Permalink
chore(config): migrate renovate config in {{packageFile}} (#4818)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Rui Chen <[email protected]>
Co-authored-by: PePe Amengual <[email protected]>
Co-authored-by: nitrocode <[email protected]>
  • Loading branch information
4 people authored Aug 12, 2024
1 parent 8ddc8e8 commit 2cd2a58
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,29 @@
},
packageRules: [
{
"matchFileNames": ["package.json"],
"enabled": false
matchFileNames: [
'package.json',
],
enabled: false,
},
{
matchFileNames: [
'testing/**',
],
matchPackagePatterns: [
'conftest',
],
additionalBranchPrefix: '{{packageFileDir}}-',
groupName: 'conftest-testing',
matchPackageNames: [
'/conftest/',
],
},
{
ignorePaths: [
'testing/**',
],
matchPackagePatterns: [
'github-actions',
],
groupName: 'github-',
matchPackageNames: [
'/github-actions/',
],
},
{
matchDatasources: [
Expand All @@ -69,7 +71,7 @@
'golang',
],
versioning: 'go',
groupName: 'go'
groupName: 'go',
},
],
customManagers: [
Expand All @@ -85,7 +87,7 @@
// 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}}',
extractVersionTemplate: '^v(?<version>\\d+\\.\\d+\\.\\d+)',
Expand Down

0 comments on commit 2cd2a58

Please sign in to comment.