Skip to content

Commit

Permalink
fix: Renovate excluding minor vers. in PR for v2.x.x (#3703)
Browse files Browse the repository at this point in the history
* Update renovate-config.js

Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* Update renovate-config.js

Co-authored-by: Elena Kubantseva <elena.kubantseva@broadcom.com>
Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* Update renovate-config.js

Co-authored-by: Elena Kubantseva <elena.kubantseva@broadcom.com>
Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* Update renovate-config.js

Co-authored-by: Elena Kubantseva <elena.kubantseva@broadcom.com>
Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* Update renovate-config.js

Co-authored-by: Elena Kubantseva <elena.kubantseva@broadcom.com>
Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* Update renovate-config.js

Co-authored-by: Elena Kubantseva <elena.kubantseva@broadcom.com>
Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* Update renovate-config.js

Co-authored-by: Elena Kubantseva <elena.kubantseva@broadcom.com>
Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* Update renovate-config.js

Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* Update renovate-config.js

Co-authored-by: Elena Kubantseva <elena.kubantseva@broadcom.com>
Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* Adding PAT

Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

---------

Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>
Co-authored-by: Elena Kubantseva <elena.kubantseva@broadcom.com>
  • Loading branch information
mirek163 and arxioly authored Aug 28, 2024
1 parent 9e23fba commit 78e91d9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/renovate-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Run Renovate
env:
# RENOVATE_TOKEN should have access :read_user, api, write_repository (repo checkbox)
RENOVATE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RENOVATE_TOKEN: ${{ secrets.ROBOT_PAT }}
RENOVATE_CONFIG_FILE: ${{ github.workspace }}/renovate-config.js
LOG_LEVEL: error
run: |
Expand Down
43 changes: 37 additions & 6 deletions renovate-config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,45 @@
module.exports = {
extends: ["config:recommended", "group:allNonMajor"],
major: { dependencyDashboardApproval: true },
dependencyDashboard: true,
globalExtends: ["config:recommended"], // using this instead of "extends" solves the problem with order of the configuration
repositories: ['zowe/api-layer'],
baseBranches: ["v2.x.x","v3.x.x"],
dependencyDashboard: true,
packageRules: [
{
//for v2.x.x branch ignore grouping from extends preset, find all packages which are patches,
// slug them and make PR with name "all patch dependencies"
"matchBaseBranches": ["v2.x.x"],
"groupName": "all patch dependencies",
"groupSlug": "all-patch",
"matchPackageNames": ["*"],
"matchUpdateTypes": ["patch"],
},
{
//for v2.x.x make dashboard approval to all major and minor dependencies updates
"matchBaseBranches": ["v2.x.x"],
"matchUpdateTypes": ["major", "minor"],
"dependencyDashboardApproval": true,
},
{
//for v3.x.x branch find all packages which are minor and patches,
// slug them and make PR with name "all non-major dependencies"
"matchBaseBranches": ["v3.x.x"],
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch",
"matchPackageNames": ["*"],
"matchUpdateTypes": ["minor", "patch"]
},
{
//for v3.x.x make dashboard approval to all major dependencies updates
"matchBaseBranches": ["v3.x.x"],
"matchUpdateTypes": ["major"],
"dependencyDashboardApproval": true,
}
],
printConfig: true,
labels: ["dependencies"],
dependencyDashboardLabels: ["dependencies"],
labels: ['dependencies'],
dependencyDashboardLabels: ['dependencies'],
commitMessagePrefix: 'chore: ',
prHourlyLimit: 0, // removes rate limit for PR creation per hour
npmrc: "legacy-peer-deps=true", //for updating lock-files
npmrc: 'legacy-peer-deps=true', //for updating lock-files
npmrcMerge: true //be combined with a "global" npmrc
};

0 comments on commit 78e91d9

Please sign in to comment.