Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update renovate to ensure pipelines are passing #3880

Merged
merged 6 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>"
nxhafa marked this conversation as resolved.
Show resolved Hide resolved
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
Loading