-
Notifications
You must be signed in to change notification settings - Fork 1
chore(renovate): extract shared fleet preset (phase 1 of consumer-fleet migration) #2386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| { | ||
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| "description": "stranske fleet-shared Renovate preset — single source of truth for dependency automation across all stranske/* repos. Replaces Dependabot for runtime pip deps + GitHub Actions, grouped with automerge-on-green. Dev-tool pins (ruff/black/mypy/pytest/...) are EXCLUDED: they move through autofix-versions.env via the maint workflows, NOT the bumper (mirrors the retired Dependabot ignore list). The vendored .github/scripts npm cascade (minimatch/brace-expansion/balanced-match) is kept in one PR. Each repo's renovate.json extends this via `github>stranske/Workflows//renovate-presets/fleet`, so a fleet-wide policy change is one edit here — no per-repo re-sync.", | ||
| "extends": ["config:recommended"], | ||
| "platformAutomerge": true, | ||
| "labels": ["dependencies"], | ||
| "packageRules": [ | ||
| { | ||
| "description": "Dev-tool pins are owned by autofix-versions.env + the maint workflows — Renovate must not bump them", | ||
| "matchPackageNames": ["ruff", "black", "mypy", "pytest", "pytest-cov", "pytest-xdist", "coverage", "isort", "docformatter"], | ||
| "enabled": false | ||
| }, | ||
| { | ||
| "description": "Runtime/test-support minor+patch: group + automerge on green (majors stay separate for review)", | ||
| "matchUpdateTypes": ["minor", "patch"], | ||
| "groupName": "non-major updates", | ||
| "automerge": true, | ||
| "automergeType": "pr" | ||
| }, | ||
| { | ||
| "description": "GitHub Actions minor+patch: group + automerge on green", | ||
| "matchManagers": ["github-actions"], | ||
| "matchUpdateTypes": ["minor", "patch"], | ||
| "groupName": "github-actions", | ||
| "automerge": true | ||
| }, | ||
| { | ||
| "description": "Vendored minimatch cascade — keep minimatch, brace-expansion, balanced-match in one PR", | ||
| "matchFileNames": [".github/scripts/**"], | ||
| "matchPackageNames": ["minimatch", "brace-expansion", "balanced-match"], | ||
| "groupName": "vendored minimatch cascade" | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,34 +1,5 @@ | ||
| { | ||
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| "description": "Workflows Renovate config — replaces Dependabot for runtime pip deps + GitHub Actions, grouped with automerge-on-green. Shared dev-tool pins (ruff/black/mypy/pytest/...) are EXCLUDED here: they move through autofix-versions.env via maint-auto-update-pypi-versions.yml + maint-51-dependency-refresh.yml, NOT the bumper (mirrors the retired dependabot ignore list).", | ||
| "extends": ["config:recommended"], | ||
| "platformAutomerge": true, | ||
| "labels": ["dependencies"], | ||
| "packageRules": [ | ||
| { | ||
| "description": "Dev-tool pins are owned by autofix-versions.env + the maint workflows — Renovate must not bump them", | ||
| "matchPackageNames": ["ruff", "black", "mypy", "pytest", "pytest-cov", "pytest-xdist", "coverage", "isort", "docformatter"], | ||
| "enabled": false | ||
| }, | ||
| { | ||
| "description": "Runtime/test-support minor+patch: group + automerge on green (majors stay separate for review)", | ||
| "matchUpdateTypes": ["minor", "patch"], | ||
| "groupName": "non-major updates", | ||
| "automerge": true, | ||
| "automergeType": "pr" | ||
| }, | ||
| { | ||
| "description": "GitHub Actions minor+patch: group + automerge on green", | ||
| "matchManagers": ["github-actions"], | ||
| "matchUpdateTypes": ["minor", "patch"], | ||
| "groupName": "github-actions", | ||
| "automerge": true | ||
| }, | ||
| { | ||
| "description": "Vendored minimatch cascade — keep minimatch, brace-expansion, balanced-match in one PR", | ||
| "matchFileNames": [".github/scripts/**"], | ||
| "matchPackageNames": ["minimatch", "brace-expansion", "balanced-match"], | ||
| "groupName": "vendored minimatch cascade" | ||
| } | ||
| ] | ||
| "description": "Workflows Renovate config — extends the stranske fleet-shared preset (renovate-presets/fleet.json), the single source of truth for grouping, automerge-on-green, dev-tool exclusions, and the vendored-minimatch cascade. Workflows dogfoods the same preset every consumer repo extends. Repo-specific overrides, if ever needed, go in packageRules below.", | ||
| "extends": ["github>stranske/Workflows//renovate-presets/fleet"] | ||
|
Comment on lines
+3
to
+4
Comment on lines
+3
to
+4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check if both renovate.json locations exist
echo "=== Checking for renovate.json files ==="
fd -t f 'renovate.json'
echo ""
echo "=== Reference in AGENT_INSTRUCTIONS.md ==="
rg -n 'renovate.json' .github/codex/AGENT_INSTRUCTIONS.mdRepository: stranske/Workflows Length of output: 193 Update documentation to reflect actual renovate config location. The 🤖 Prompt for AI Agents |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick | 🔵 Trivial | 💤 Low value
Add
automergeTypeto the GitHub Actions rule for consistency.Rule 2 (lines 13-19) explicitly sets
"automergeType": "pr", while Rule 3 (lines 20-26) omits it. Both rules rely on the same PR-based automerge behavior (PR is the default), but the inconsistency could confuse future maintainers.♻️ Proposed fix for consistency
{ "description": "GitHub Actions minor+patch: group + automerge on green", "matchManagers": ["github-actions"], "matchUpdateTypes": ["minor", "patch"], "groupName": "github-actions", - "automerge": true + "automerge": true, + "automergeType": "pr" },📝 Committable suggestion
🤖 Prompt for AI Agents