Skip to content

Commit

Permalink
Formatting and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
stanlemon committed Nov 29, 2024
1 parent 99f069b commit b4661bf
Showing 1 changed file with 48 additions and 33 deletions.
81 changes: 48 additions & 33 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'docker:enableMajor', // Enable major Docker updates
'docker:pinDigests', // Pin Docker digests
'npm:unpublishSafe', // Protect against npm unpublishing
':separateMajorReleases' // Handle major updates separately
':separateMajorReleases', // Handle major updates separately
],

// Set timezone to Indianapolis
Expand All @@ -33,25 +33,18 @@

// Package update rules
packageRules: [
{
// Require all status checks to pass for all types of updates
"matchUpdateTypes": [
"major",
"minor",
"patch",
"pin",
"digest",
"lockFileMaintenance"
],
"requiredStatusChecks": ["*"],
},
{
// Group all non-major dependencies
matchUpdateTypes: ['minor', 'patch'],
matchUpdateTypes: [
'minor',
'patch',
],
matchCurrentVersion: '!/^0/', // Exclude 0.x versions
groupName: 'non-major dependencies',
minimumReleaseAge: '7 days', // Wait 7 days before updating
schedule: ['after 10am and before 4pm on saturday'],
schedule: [
'after 10am and before 4pm on saturday',
],
automerge: true,
automergeType: 'branch',
matchPackageNames: [
Expand All @@ -64,61 +57,83 @@
'/^eslint/',
],
groupName: 'eslint packages',
schedule: ['after 10am and before 4pm on saturday']
schedule: [
'after 10am and before 4pm on saturday',
],
},
{
// Handle major updates separately
matchUpdateTypes: ['major'],
matchUpdateTypes: [
'major',
],
groupName: 'major updates',
minimumReleaseAge: '30 days', // One month waiting period
schedule: ['after 10am and before 4pm on saturday'],
schedule: [
'after 10am and before 4pm on saturday',
],
matchPackageNames: [
'!/^@stanlemon//',
],
},
{
// Special handling for Node.js updates
matchPackageNames: ['node'],
matchManagers: ['dockerfile', 'npm'],
matchPackageNames: [
'node',
],
matchManagers: [
'dockerfile',
'npm',
],
minimumReleaseAge: '60 days', // Two month waiting period
allowedVersions: '/^[1-9][0-9]*[02468]\\./', // LTS versions only
major: {
automerge: false // Require manual review for major node updates
}
automerge: false, // Require manual review for major node updates
},
},
{
// Special handling for @stanlemon packages
matchPackagePatterns: ['^@stanlemon/'],
matchPackagePatterns: [
'^@stanlemon/',
],
minimumReleaseAge: null, // No waiting period
automerge: true,
automergeType: 'branch' // Merge immediately via branch
automergeType: 'branch', // Merge immediately via branch
},
{
// Automerge rules for minor/patch updates
matchUpdateTypes: ['patch', 'minor'],
matchUpdateTypes: [
'patch',
'minor',
],
matchCurrentVersion: '!/^0/', // Exclude 0.x versions
automerge: true,
automergeType: 'branch'
},
{
// Automerge rules for lock file maintenance
"matchUpdateTypes": ["lockFileMaintenance"],
"automerge": true,
"automergeType": "branch"
}
matchUpdateTypes: [
'lockFileMaintenance',
],
automerge: true,
automergeType: 'branch',
},
],

// Security update configuration
vulnerabilityAlerts: {
enabled: true,
labels: ['security'],
labels: [
'security',
],
automerge: true, // Automerge security updates
schedule: 'at any time' // Process security updates immediately
schedule: 'at any time', // Process security updates immediately
},

// Lock file maintenance
lockFileMaintenance: {
enabled: true,
schedule: ['after 10am and before 4pm on saturday']
}
schedule: [
'after 10am and before 4pm on saturday',
],
},
}

0 comments on commit b4661bf

Please sign in to comment.