Integrating Renovate with Mergify
How to automate your dependencies update using Mergify.
Mend Renovate scans your software, discovers dependencies, automatically checks to see if an updated version exists, and submits automated pull requests.
Automating Renovate Pull Request Merges
Section titled Automating Renovate Pull Request MergesThere are two primary ways to automate the merging of Renovate PRs with Mergify:
1. Using the Merge Queue
Section titled 1. Using the Merge QueueYou can set up a queue rule to automatically enqueue Renovate PRs into the
merge queue using autoqueue.
queue_rules: - name: default autoqueue: true queue_conditions: - author = renovate[bot]2. PR Approval
Section titled 2. PR ApprovalIf you have GitHub’s branch protection set up to require approvals, you can use Mergify to automatically approve Renovate PRs.
pull_request_rules: - name: Automatically approve Renovate PRs conditions: - author = renovate[bot] actions: review: type: APPROVEBatching Dependency Updates
Section titled Batching Dependency UpdatesFor projects where there are frequent updates to a large number of small libraries, it’s efficient to batch these updates together. Using Mergify’s merge queue feature, you can automatically batch and test these updates together, reducing CI load and ensuring compatibility.
For example, you could set up a merge queue to batch those PRs 10 by 10:
queue_rules: # If you have other queues defined, add this at the end so it is processed last - name: dep-update autoqueue: true batch_size: 10 # Wait for up to 30 minutes for the batch to fill up batch_max_wait_time: 30 min queue_conditions: - author = renovate[bot]With Mergify and Renovate working together, you can ensure your project’s dependencies are always up-to-date with minimal effort, ensuring a smooth and efficient update process.
Was this page helpful?
Thanks for your feedback!