|
3 | 3 | "extends": [ |
4 | 4 | "config:base" |
5 | 5 | ], |
6 | | - "ignorePaths": [ |
7 | | - "integration/testdata/**", |
8 | | - "test/resources/**" |
9 | | - ], |
10 | 6 | "labels": [ |
11 | 7 | "dependencies" |
12 | 8 | ], |
13 | 9 | "packageRules": [ |
14 | 10 | { |
15 | 11 | "description": "Create PRs to roll back Go module if the current version is not found in the registry.", |
16 | 12 | "matchManagers": ["gomod"], |
17 | | - "rollbackPrs": true |
| 13 | + "rollbackPrs": true, |
| 14 | + "matchPaths": [ |
| 15 | + "!integration/testdata/**", |
| 16 | + "!test/resources/**" |
| 17 | + ] |
18 | 18 | }, |
19 | 19 | { |
20 | 20 | "description": "Automerge patch version updates for Go modules (except versions 0.x as they could have breaking changes)", |
21 | 21 | "matchManagers": ["gomod"], |
22 | 22 | "matchUpdateTypes": ["patch"], |
23 | 23 | "matchCurrentVersion": "!/^(v?0)/", |
24 | 24 | "automerge": true, |
25 | | - "addLabels": ["renovate-automerge"] |
| 25 | + "addLabels": ["renovate-automerge"], |
| 26 | + "matchPaths": [ |
| 27 | + "!integration/testdata/**", |
| 28 | + "!test/resources/**" |
| 29 | + ] |
| 30 | + } |
| 31 | + ], |
| 32 | + "customManagers": [ |
| 33 | + { |
| 34 | + "customType": "regex", |
| 35 | + "matchStringsStrategy": "any", |
| 36 | + "managerFilePatterns": [ |
| 37 | + "cmd\/golangBuild.go" |
| 38 | + ], |
| 39 | + "matchStrings": [ |
| 40 | + "\"github.com\/CycloneDX\/(?<depName>cyclonedx-gomod)\/cmd\/cyclonedx-gomod@v(?<currentValue>[^\"]+)\"" |
| 41 | + ], |
| 42 | + "depTypeTemplate": "dependencies", |
| 43 | + "datasourceTemplate": "github-releases", |
| 44 | + "depNameTemplate": "CycloneDX/{{{depName}}}", |
| 45 | + "extractVersionTemplate": "v(?<version>.*)", |
| 46 | + "autoReplaceStringTemplate": "\"github.com/{{{depName}}}/cmd/cyclonedx-gomod@v{{{newValue}}}\"" |
| 47 | + }, |
| 48 | + { |
| 49 | + "customType": "regex", |
| 50 | + "matchStringsStrategy": "any", |
| 51 | + "managerFilePatterns": [ |
| 52 | + "cmd\/gradleExecuteBuild.go" |
| 53 | + ], |
| 54 | + "matchStrings": [ |
| 55 | + "\"org.cyclonedx:(?<depName>cyclonedx-gradle-plugin):(?<currentValue>[^\"\n]+)\"" |
| 56 | + ], |
| 57 | + "depTypeTemplate": "dependencies", |
| 58 | + "datasourceTemplate": "gradle-version", |
| 59 | + "depNameTemplate": "org.cyclonedx:{{{depName}}}", |
| 60 | + "extractVersionTemplate": "^(?<version>.*)", |
| 61 | + "autoReplaceStringTemplate": "\"{{{depName}}}:{{{newValue}}}\"" |
| 62 | + }, |
| 63 | + { |
| 64 | + "customType": "regex", |
| 65 | + "matchStringsStrategy": "any", |
| 66 | + "managerFilePatterns": [ |
| 67 | + "cmd\/mavenBuild.go" |
| 68 | + ], |
| 69 | + "matchStrings": [ |
| 70 | + "\"org.cyclonedx:(?<depName>cyclonedx-maven-plugin):(?<currentValue>[^\"]+)\"" |
| 71 | + ], |
| 72 | + "depTypeTemplate": "dependencies", |
| 73 | + "datasourceTemplate": "maven", |
| 74 | + "depNameTemplate": "org.cyclonedx:{{{depName}}}", |
| 75 | + "extractVersionTemplate": "^(?<version>.*)", |
| 76 | + "autoReplaceStringTemplate": "\"{{{depName}}}:{{{newValue}}}\"" |
| 77 | + }, |
| 78 | + { |
| 79 | + "customType": "regex", |
| 80 | + "matchStringsStrategy": "any", |
| 81 | + "managerFilePatterns": [ |
| 82 | + "integration\/testdata\/TestGradleIntegration\/java-project-with-bom-plugin\/build.gradle" |
| 83 | + ], |
| 84 | + "matchStrings": [ |
| 85 | + "id \"(?<depName>org.cyclonedx.bom)\" version \"(?<currentValue>.*)\"" |
| 86 | + ], |
| 87 | + "depTypeTemplate": "dependencies", |
| 88 | + "datasourceTemplate": "gradle-version", |
| 89 | + "depNameTemplate": "{{depName}}", |
| 90 | + "extractVersionTemplate": "(?<version>.*)", |
| 91 | + "autoReplaceStringTemplate": "id \"{{depName}}\" version \"{{newValue}}\"" |
| 92 | + }, |
| 93 | + { |
| 94 | + "customType": "regex", |
| 95 | + "matchStringsStrategy": "any", |
| 96 | + "managerFilePatterns": [ |
| 97 | + "integration\/integration_golang_test.go" |
| 98 | + ], |
| 99 | + "matchStrings": [ |
| 100 | + "\"github.com\/CycloneDX\/(?<depName>cyclonedx-gomod)\/cmd\/cyclonedx-gomod@v(?<currentValue>[^\"]+)\"" |
| 101 | + ], |
| 102 | + "depTypeTemplate": "dependencies", |
| 103 | + "datasourceTemplate": "github-releases", |
| 104 | + "depNameTemplate": "CycloneDX/{{{depName}}}", |
| 105 | + "extractVersionTemplate": "v(?<version>.*)", |
| 106 | + "autoReplaceStringTemplate": "\"github.com/{{{depName}}}/cmd/cyclonedx-gomod@v{{{newValue}}}\"" |
26 | 107 | } |
27 | 108 | ], |
28 | 109 | "postUpdateOptions": [ |
|
0 commit comments