Skip to content

chore: 改用 matchUpdateTypes 禁用 python 大/小版本自动升级 - #44

Merged
Logic769 merged 1 commit into
masterfrom
chore/renovate-python-guard2
Nov 16, 2026
Merged

Logic769 merged 1 commit into
masterfrom
chore/renovate-python-guard2

Conversation

@Logic769

Copy link
Copy Markdown
Owner

背景

上一版规则(#42 / #16)用的是:

{ "matchPackageNames": ["python"], "allowedVersions": "<3.15" }

但 Renovate 对 Docker 镜像(python:3.12-slim)使用的 docker versioning 声明了 supportsRanges = false,allowedVersions 的范围约束在这里不是可靠路径;而 actions/python-versions 的 python-version 又走 github-tags 数据源,两者混在同一个 packageName 下。规则落地后 Renovate 仍在创建 3.15 的 PR(news-crawler #43/#17)。

改动

改成不依赖 versioning 语义的写法:

{
  "matchPackageNames": ["python"],
  "matchUpdateTypes": ["major", "minor"],
  "enabled": false
}
  • 覆盖 Dockerfile 基础镜像与 CI python-version 两处(packageName 都是 python);
  • 禁掉所有 major / minor 升级,运行时保持 3.12 线;
  • patch 级 3.12.x 更新与 pin digest 仍正常流转。

恢复条件

lxml 发布 cp315 wheel、python:3.15-slim 补齐 libxml2/libxslt 后,删除此规则即可。

验证

  • json.load() 解析通过,规则为 matchUpdateTypes=["major","minor"] + enabled=false;
  • 与上一版规则相比只改了这一条。

@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c56a1328-8459-49f6-8382-9c683bcab68c
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ghfind-review ghfind-review Bot added review: high ghfind author score; see https://ghfind.com enhancement New feature or request labels Nov 16, 2026
@Logic769
Logic769 merged commit 486b198 into master Nov 16, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request review: high ghfind author score; see https://ghfind.com

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant