Skip to content

build: keep Dependabot from moving action v2 to cpp-linter 2.x - #537

Closed
shenxianpeng wants to merge 1 commit into
mainfrom
claude/project-thread-u751ea
Closed

shenxianpeng wants to merge 1 commit into
mainfrom
claude/project-thread-u751ea

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

cpp-linter 2.0.0 (the Rust rewrite from cpp-linter-rs) will be uploaded to PyPI under the same name, cpp-linter. Its command line differs from 1.x, so once it is out, Dependabot's uv updates would open a PR moving this branch (action v2, pinned to cpp-linter==1.16.0) to 2.0.0, which would break action v2.

This adds an ignore rule for semver-major updates of cpp-linter to the uv entry in .github/dependabot.yml. Patch and minor updates of 1.x keep coming as before. Action v3 moves to 2.x on its own branch (v3.0.0-rc0); when v3 replaces main, this rule should be dropped.

Related Issues

Relates to #283.

Summary by CodeRabbit

  • Chores
    • Major version updates for cpp-linter are now excluded from automated dependency update proposals. Other update types remain eligible.

cpp-linter 2.0.0 (the Rust rewrite) will be uploaded to PyPI as `cpp-linter`. Its CLI differs from 1.x, so a Dependabot bump of this branch to 2.x would break action v2. Action v3 moves to 2.x on its own branch.
@shenxianpeng
shenxianpeng requested a review from a team as a code owner November 18, 2026 00:09
@shenxianpeng
shenxianpeng requested review from 2bndy5 and removed request for a team November 18, 2026 00:09
@shenxianpeng shenxianpeng added dependencies Pull requests that update a dependency file semver:patch Overrides the PR title: bump the patch version labels Nov 18, 2026 — with Claude
@shenxianpeng shenxianpeng self-assigned this Nov 18, 2026
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The uv Dependabot configuration now ignores semver-major updates for cpp-linter. Other update types are not excluded by this rule.

Changes

Dependency update policy

Layer / File(s) Summary
Ignore major cpp-linter updates
.github/dependabot.yml
The uv update configuration excludes semver-major updates for cpp-linter.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related issues

  • cpp-linter/cpp-linter-action#283: The issue tracks the v2-to-v3 transition and notes that Dependabot does not update non-default branches. The new rule excludes major cpp-linter updates.
Merge Risk: Minimal · up to 477bc

This change only stops Dependabot from proposing major cpp-linter upgrades for the uv ecosystem, while patch and minor updates continue. It has no runtime impact and is low risk to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change the PR makes: a Dependabot rule that stops action v2 from moving to cpp-linter 2.x. The raw summary confirms the uv entry in .github/dependabot.yml now ignores semver-major …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change the PR makes: a Dependabot rule that stops action v2 from moving to cpp-linter 2.x. The raw summary confirms the uv entry in .github/dependabot.yml now ignores semver-major updates for cpp-linter, and the objectives describe the same intent. The title is specific and matches the main change.

  • 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

Recent review info

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: 57d83fe9-bf20-40d6-b69e-9cabcf54be49
Commits

Reviewing files that changed from the base of the PR and between ed9764a and 477bc5a.

Files selected for processing: 1

  • .github/dependabot.yml

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

shenxianpeng commented Nov 18, 2026 •

Copy link
Copy Markdown
Member Author

Closing for now; we'll handle it when it happens. Once cpp-linter 2.0.0 is on PyPI and Dependabot opens a PR that moves this branch (action v2) to cpp-linter 2.x, comment on that PR:

@dependabot ignore cpp-linter major version

Dependabot then drops cpp-linter 2.x from that PR (it is grouped with clang-tools) and stops proposing it, while 1.x patch and minor updates keep coming.

@2bndy5 2bndy5 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If v3 becomes the main branch, then the inevitable v2 branch will have to pin cpp-linter<2 in pyproject.toml

@shenxianpeng
shenxianpeng deleted the claude/project-thread-u751ea branch November 18, 2026 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file semver:patch Overrides the PR title: bump the patch version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants