Skip to content

Commit

Permalink
chore: update renovate to ensure pipelines are passing (#3880)
Browse files Browse the repository at this point in the history
* chore: updating renovate config:
1- ensure renovate commit has signoff option
2- work around the npm install bug to ensure package-lock files are updated correctly

Signed-off-by: nx673747 <nafi.xhafa@broadcom.com>

* chore: disable upgrade for springboot in v3.x.x branch

Signed-off-by: nx673747 <nafi.xhafa@broadcom.com>

* chore: enable spring boot upgrade after integrating fix

Signed-off-by: nx673747 <nafi.xhafa@broadcom.com>

---------

Signed-off-by: nx673747 <nafi.xhafa@broadcom.com>
Co-authored-by: nx673747 <nafi.xhafa@broadcom.com>
  • Loading branch information
nxhafa and nx673747 authored Nov 7, 2024
1 parent bf80555 commit 865debe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/renovate-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
# RENOVATE_TOKEN should have access :read_user, api, write_repository (repo checkbox)
RENOVATE_TOKEN: ${{ secrets.ROBOT_PAT }}
RENOVATE_CONFIG_FILE: ${{ github.workspace }}/renovate-config.js
RENOVATE_GIT_AUTHOR: "Renovate Bot <renovate@whitesourcesoftware.com>"
LOG_LEVEL: error
run: |
renovate
18 changes: 15 additions & 3 deletions renovate-config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
module.exports = {
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"],
baseBranches: ["v2.x.x", "v3.x.x"],
commitBody: "Signed-off-by: {{{gitAuthor}}}",
dependencyDashboard: true,
allowedPostUpgradeCommands: ['^npm install'],
packageRules: [
{
//for v2.x.x branch ignore grouping from extends preset, find all packages which are patches,
Expand All @@ -12,6 +14,11 @@ module.exports = {
"groupSlug": "all-patch",
"matchPackageNames": ["*"],
"matchUpdateTypes": ["patch"],
"postUpgradeTasks": {
"commands": ["npm install --package-lock-only"],
"fileFilters": ["**/**"],
"executionMode": "branch"
}
},
{
//for v2.x.x make dashboard approval to all major and minor dependencies updates
Expand All @@ -26,7 +33,12 @@ module.exports = {
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch",
"matchPackageNames": ["*"],
"matchUpdateTypes": ["minor", "patch"]
"matchUpdateTypes": ["minor", "patch"],
"postUpgradeTasks": {
"commands": ["npm install --package-lock-only"],
"fileFilters": ["**/**"],
"executionMode": "branch"
}
},
{
//for v3.x.x make dashboard approval to all major dependencies updates
Expand All @@ -38,7 +50,7 @@ module.exports = {
printConfig: true,
labels: ['dependencies'],
dependencyDashboardLabels: ['dependencies'],
ignoreDeps: ['history','jsdom','react-router-dom','@mui/icons-material','@mui/material','@material-ui/core','@material-ui/icons'],
ignoreDeps: ['history', 'jsdom', 'react-router-dom', '@mui/icons-material', '@mui/material', '@material-ui/core', '@material-ui/icons', 'undici'],
commitMessagePrefix: 'chore: ',
prHourlyLimit: 0, // removes rate limit for PR creation per hour
npmrc: 'legacy-peer-deps=true\nregistry=https://zowe.jfrog.io/artifactory/api/npm/npm-org/', //for updating lock-files
Expand Down

0 comments on commit 865debe

Please sign in to comment.