ci(renovate): track requirements.yml and allow its version bumps

Enable Renovate's ansible-galaxy manager for requirements.yml and let a bot pull
request change only the version: lines of that file (check_bot_pr_diff.py), so a
collection bump can automerge like the other pins while a changed name or source
still fails the gate (#118).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
This commit is contained in:
Defame1297andClaude Sonnet 5.5 committed 2026-11-14 13:51:58 +00:00
1 parent 8fb7148129
commit 87b23ea4f3
3 files changed
+26

No files matched your search

+7
View File
@@ -7,6 +7,7 @@
When <head-ref> starts with `renovate/`, the diff of <base-ref>...HEAD may only touch:
* requirements-dev.txt: pinned `name==version` lines, the same packages before and after;
* requirements.yml: `version:` lines (the collection names, and every other line, stay);
* .pre-commit-config.yaml: `rev:` lines;
* images/<name>/Dockerfile: the tag and digest of FROM lines (the image name stays), and
the `uv==<version>` token of a line that holds one;
@@ -93,6 +94,10 @@ def reduce_requirement(line):
return m[1].lower() if m else None
def reduce_version(line):
return "version" if VERSION_LINE.match(line) else None
def reduce_rev(line):
return "rev" if REV_LINE.match(line) else None
@@ -127,6 +132,8 @@ def file_problem(path, removed, added):
reduce_requirement,
"a pinned `name==version` line of the same package",
)
if path == "requirements.yml":
return same_shape(removed, added, reduce_version, "a `version:` line")
if path == ".pre-commit-config.yaml":
return same_shape(removed, added, reduce_rev, "a `rev:` line")
if DOCKERFILE.fullmatch(path):