From 8808426b7c60d50a50f67e96af2762ef065fa1c3 Mon Sep 17 00:00:00 2001 From: JacobPEvans <20714140+JacobPEvans@users.noreply.github.com> Date: Sat, 14 Mar 2026 01:13:27 -0400 Subject: [PATCH 1/2] feat: add nix flake input auto-merge rules to org preset Add packageRules for the Renovate nix manager (git-refs datasource): - JacobPEvans-owned inputs: immediate auto-merge - Trusted Nix ecosystem (NixOS, nix-community, cachix, anthropics, etc.): auto-merge after 3-day stabilization This enables per-repo opt-in via `"nix": { "enabled": true }` in renovate.json, replacing custom deps-update-flake.yml workflows with Renovate's native per-input PRs, descriptions, and auto-merge. (claude) --- renovate-presets.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/renovate-presets.json b/renovate-presets.json index 4d5ef86..b4d3cd4 100644 --- a/renovate-presets.json +++ b/renovate-presets.json @@ -51,6 +51,35 @@ "automergeType": "pr", "automergeStrategy": "squash", "minimumReleaseAge": "3 days" + }, + { + "description": "Auto-merge JacobPEvans-owned Nix flake inputs (immediate)", + "matchManagers": ["nix"], + "matchPackageNames": ["https://github.com/JacobPEvans/**"], + "automerge": true, + "automergeType": "pr", + "automergeStrategy": "squash", + "minimumReleaseAge": "0 days" + }, + { + "description": "Auto-merge trusted Nix flake inputs (3-day stabilization)", + "matchManagers": ["nix"], + "matchPackageNames": [ + "https://github.com/NixOS/**", + "https://github.com/nix-community/**", + "https://github.com/cachix/**", + "https://github.com/anthropics/**", + "https://github.com/numtide/**", + "https://github.com/hercules-ci/**", + "https://github.com/DeterminateSystems/**", + "https://github.com/edolstra/**", + "https://github.com/oxalica/**", + "https://github.com/wakatime/**" + ], + "automerge": true, + "automergeType": "pr", + "automergeStrategy": "squash", + "minimumReleaseAge": "3 days" } ] } From 7c696f85cfbc08c08cefba15b231cfae5a59655d Mon Sep 17 00:00:00 2001 From: JacobPEvans <20714140+JacobPEvans@users.noreply.github.com> Date: Sat, 14 Mar 2026 10:56:42 -0400 Subject: [PATCH 2/2] fix(renovate): add matchDatasources and remove ineffective minimumReleaseAge for nix rules git-refs datasource has no timestamp support, so minimumReleaseAge silently does nothing. Add matchDatasources: ["git-refs"] to scope nix rules precisely. Update trusted rule description to reflect immediate merging. (claude) --- renovate-presets.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/renovate-presets.json b/renovate-presets.json index b4d3cd4..3748eb1 100644 --- a/renovate-presets.json +++ b/renovate-presets.json @@ -55,15 +55,16 @@ { "description": "Auto-merge JacobPEvans-owned Nix flake inputs (immediate)", "matchManagers": ["nix"], + "matchDatasources": ["git-refs"], "matchPackageNames": ["https://github.com/JacobPEvans/**"], "automerge": true, "automergeType": "pr", - "automergeStrategy": "squash", - "minimumReleaseAge": "0 days" + "automergeStrategy": "squash" }, { - "description": "Auto-merge trusted Nix flake inputs (3-day stabilization)", + "description": "Auto-merge trusted Nix flake inputs (immediate, CI-gated)", "matchManagers": ["nix"], + "matchDatasources": ["git-refs"], "matchPackageNames": [ "https://github.com/NixOS/**", "https://github.com/nix-community/**", @@ -78,8 +79,7 @@ ], "automerge": true, "automergeType": "pr", - "automergeStrategy": "squash", - "minimumReleaseAge": "3 days" + "automergeStrategy": "squash" } ] }