Skip to content

Commit

Permalink
feat(presets): add automergeStableNonMajor preset (#19699)
Browse files Browse the repository at this point in the history
Co-authored-by: Rhys Arkins <rhys@arkins.net>
  • Loading branch information
Turbo87 and rarkins authored Jun 18, 2023
1 parent 4665f1d commit 6ac3292
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/config/presets/internal/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,17 @@ export const presets: Record<string, Preset> = {
description: 'Require all status checks to pass before any automerging.',
ignoreTests: false,
},
automergeStableNonMajor: {
description:
'Automerge non-major upgrades for semver stable packages if they pass tests.',
packageRules: [
{
automerge: true,
matchCurrentVersion: '>= 1.0.0',
matchUpdateTypes: ['minor', 'patch'],
},
],
},
automergeTesters: {
description: 'Update testing packages automatically if tests pass.',
packageRules: [
Expand Down

0 comments on commit 6ac3292

Please sign in to comment.