下面是我的样本翻新配置文件
module.exports = {
endpoint: 'https://git.myOrg.info/',
password: '${password}',
username: '${username}',
platform: 'bitbucket-server',
repositories: ['myRepo/myService'],
branchPrefix: 'team/renovate-',
commitMessagePrefix: 'Renovate : ',
onboarding: false,
requireConfig: "ignored",
enabledManagers: ["maven", "npm"],
hostRules: [
{
hostType: 'maven',
matchHost: 'https://my.org.io/',
username: '${user}',
password: '${key}',
},
{
hostType: 'npm',
matchHost: 'my.org.io,
username: '${user}',
password: '${key}',
}
],
packageRules: [
{
matchUpdateTypes: ["major"],
enabled: false
},
{
matchDatasources: ["npm"],
registryUrls: ["https://my.org.io/..../"]
},
{
matchDatasources: ["maven"],
registryUrls: ["https://my.org.io/..../"]
},
{
matchManagers: ["npm"],
matchUpdateTypes: ["minor","patch"],
groupName: "npm minor"
},
{
matchManagers: ["maven"],
matchUpdateTypes: ["minor","patch"],
groupName: "maven minor and patch"
},
]
};
我的一个模块的pom.xml文件包含如下所示的父标记
<parent>
<groupId>org.myservice.com</groupId>
<artifactId>myservice-client-parent</artifactId>
<version>5.x-SNAPSHOT</version>
</parent>
沿着其他依赖更新,renovate也将<version>5.x-SNAPSHOT</version>
更新为<version>5.70.0</version>
。我不想更新父标记版本。如何修改我现有的配置文件来避免这种情况?
我看了这份文件,但找不到任何富有成效的配置,根据我的需要。也许我会错过一些东西,请指出。
1条答案
按热度按时间9udxz4iz1#
我能够用下面的配置解决这个问题: