Skip to content

feat: add lock file maintenance to automerge preset#83

Merged
JonaLoefflerLeanix merged 2 commits into
mainfrom
feature/automerge-lock-file-maintenance
Apr 28, 2026
Merged

feat: add lock file maintenance to automerge preset#83
JonaLoefflerLeanix merged 2 commits into
mainfrom
feature/automerge-lock-file-maintenance

Conversation

@JonaLoefflerLeanix
Copy link
Copy Markdown
Contributor

Summary

  • Adds lockFileMaintenance automerge configuration to the shared automerge.json5 preset
  • Lock file maintenance PRs will now be auto-merged during business hours (Mon-Fri 9-13 CET), same as minor/patch/digest updates
  • Updates README to document the new behavior

Motivation

Lock file maintenance PRs are low-risk (they only update the lock file without changing version ranges) but were not covered by the matchUpdateTypes package rule since lockFileMaintenance is a separate Renovate config key, not a standard update type.

Test plan

  • Verify Renovate validates the updated preset without errors
  • Confirm lock file maintenance PRs get auto-merged on repos using this preset

@internal-ai-adoption-analytics
Copy link
Copy Markdown

internal-ai-adoption-analytics Bot commented Apr 21, 2026

📊 Survey: Please help us track internal AI adoption. This is not for evaluation, only for metrics. You can update this anytime before merge.
🤖 Which AI developer tool(s), if any, were used to assist with this PR? Please tick one or more boxes below:

  • None
  • Cline
  • Claude Code
  • Cursor
  • GitHub Copilot
  • Other

🧑‍💻 If AI was used, what was it mainly used for?

  • Coding / Implementation
  • Testing (unit, integration, e2e)
  • Documentation
  • Research / Investigation
  • Refactoring / Cleanup
  • Configuration / DevOps
  • Other

Thank you in advance for your feedback.💙🙏🎉
Here's a joke to brighten your day: What's an AI's favorite movie? The Matrix... obviously! 🕶️

Copy link
Copy Markdown

@hyperspace-insights hyperspace-insights Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR correctly adds lockFileMaintenance automerge support and updates the README, but the schedule expression * 9-13 * * 1-5 (copied from the existing block) has an overly broad minutes field — using a human-readable Renovate schedule string or fixing the minutes position to 0 would make the intent unambiguous.

PR Bot Information

Version: 1.20.23

  • LLM: anthropic--claude-4.6-sonnet
  • Event Trigger: pull_request.opened
  • Correlation ID: a363e753-d313-4826-b2fd-082505cf867d
  • File Content Strategy: Full file content

Comment thread renovate-presets/automerge.json5 Outdated
@JonaLoefflerLeanix JonaLoefflerLeanix marked this pull request as draft April 21, 2026 13:38
@JonaLoefflerLeanix JonaLoefflerLeanix marked this pull request as draft April 21, 2026 13:38
Comment thread renovate-presets/automerge.json5 Outdated
@r0binary-sap
Copy link
Copy Markdown
Contributor

Hey Jona, nice contribution. A few remarks to consider:

@JonaLoefflerLeanix
Copy link
Copy Markdown
Contributor Author

Hey Jona, nice contribution. A few remarks to consider:

Yes, this was meant more as a suggestion and to get the ball rolling. Happy to hand it over to you 🙏

@JonaLoefflerLeanix JonaLoefflerLeanix marked this pull request as ready for review April 27, 2026 09:20
@hyperspace-insights
Copy link
Copy Markdown

Summary

The following content is AI-generated and provides a summary of the pull request:


Add Lock File Maintenance to Automerge Preset

New Feature

✨ Extends the shared automerge.json5 Renovate preset to include automatic merging of lock file maintenance PRs, alongside the existing minor, patch, and digest updates.

Lock file maintenance PRs are low-risk updates (they only refresh the lock file without altering version ranges) but were previously not covered by the matchUpdateTypes package rule, as lockFileMaintenance is a separate Renovate concept. These PRs will now be auto-merged during the same business hours window (Mon–Fri, 9:00–13:00 CET).

Changes

  • renovate-presets/automerge.json5: Added "lockFileMaintenance" to the matchUpdateTypes array in the package rule, enabling automerge for lock file maintenance PRs on the same schedule as other low-risk updates.
  • renovate-presets/README.md: Updated the feature list to document that lock file maintenance PRs are now automatically merged.

  • 🔄 Regenerate and Update Summary
  • ✏️ Insert as PR Description (deletes this comment)
  • 🗑️ Delete comment
PR Bot Information

Version: 1.20.33

  • Correlation ID: 17d81d3d-32e7-43fa-af72-05f1d87e1c2e
  • Event Trigger: pull_request.ready_for_review
  • Output Template: Default Template
  • File Content Strategy: Full file content
  • LLM: anthropic--claude-4.6-sonnet
  • Summary Prompt: Default Prompt

Copy link
Copy Markdown

@hyperspace-insights hyperspace-insights Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR introduces a critical bug: "lockFileMaintenance" is not a valid matchUpdateTypes value, so placing it inside the packageRule will have no effect and lock file maintenance PRs will never actually be automerged. The fix requires adding a dedicated top-level lockFileMaintenance config block, as detailed in the review comment above.

PR Bot Information

Version: 1.20.33

  • File Content Strategy: Full file content
  • Correlation ID: 17d81d3d-32e7-43fa-af72-05f1d87e1c2e
  • Event Trigger: pull_request.ready_for_review
  • LLM: anthropic--claude-4.6-sonnet

Comment thread renovate-presets/automerge.json5
Move lock file maintenance automerge config from a separate
lockFileMaintenance block into the existing packageRules entry
by adding lockFileMaintenance to matchUpdateTypes.
@r0binary-sap r0binary-sap force-pushed the feature/automerge-lock-file-maintenance branch from 3a4ed68 to 9131b54 Compare April 27, 2026 11:24
@r0binary-sap
Copy link
Copy Markdown
Contributor

@JonaLoefflerLeanix we'll do the announcement of this change, right? (Of course mentioning this was your contribution)

@JonaLoefflerLeanix
Copy link
Copy Markdown
Contributor Author

@JonaLoefflerLeanix we'll do the announcement of this change, right? (Of course mentioning this was your contribution)

Sounds good 👍

@JonaLoefflerLeanix JonaLoefflerLeanix enabled auto-merge (squash) April 28, 2026 06:20
@JonaLoefflerLeanix JonaLoefflerLeanix merged commit b54582c into main Apr 28, 2026
3 checks passed
@JonaLoefflerLeanix JonaLoefflerLeanix deleted the feature/automerge-lock-file-maintenance branch April 28, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants