Skip to content

feat: add lock file maintenance to automerge preset#83

Draft
JonaLoefflerLeanix wants to merge 2 commits intomainfrom
feature/automerge-lock-file-maintenance
Draft

feat: add lock file maintenance to automerge preset#83
JonaLoefflerLeanix wants to merge 2 commits intomainfrom
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! 🕶️

@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 Automerge to Renovate Preset

New Feature

✨ Extends the shared automerge.json5 Renovate preset to include automatic merging of lock file maintenance PRs, applying the same schedule and automerge configuration used for minor, patch, and digest updates.

Changes

  • renovate-presets/automerge.json5: Added a lockFileMaintenance configuration block with the same automerge settings (schedule Mon-Fri 9–13 CET, platformAutomerge, prCreation: not-pending, etc.) as the existing package rules.
  • renovate-presets/README.md: Updated the feature list to document that lock file maintenance PRs are now automatically merged.

Note: Lock file maintenance is a separate Renovate config key (not a standard matchUpdateTypes value), which is why it requires its own dedicated configuration block rather than being added to the existing matchUpdateTypes list.


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

Version: 1.20.23

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

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
],
"lockFileMaintenance": {
"schedule": [
"* 9-13 * * 1-5"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: Cron schedule * 9-13 * * 1-5 fires every minute within the 9–13 window

The * in the minutes field means "every minute of every hour from 9 to 13". While Renovate debounces actual PR actions, this is semantically wrong and mirrors the same issue already present in the packageRules block above.

Renovate's schedule parser also accepts plain human-readable strings, which are much clearer. Consider using the explicit human-readable form instead:

"schedule": ["after 9am and before 1pm on Monday through Friday"]

If you prefer to keep the cron-style syntax, use 0 (not *) in the minutes position so it triggers once per hour boundary rather than every minute.

Suggested change
"* 9-13 * * 1-5"
"after 9am and before 1pm on Monday through Friday"

Double-check suggestion before committing. Edit this comment for amendments.


Please provide feedback on the review comment by checking the appropriate box:

  • 🌟 Awesome comment, a human might have missed that.
  • ✅ Helpful comment
  • 🤷 Neutral
  • ❌ This comment is not helpful

@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:

Move lock file maintenance automerge config from a separate
lockFileMaintenance block into the existing packageRules entry
by adding lockFileMaintenance to matchUpdateTypes.
@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 🙏

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