Repository navigation
feat: point the missing-include hint at the given compilation database - #615
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #615 +/- ##
========================================
Coverage 99.75% 99.75%
========================================
Files 37 37
Lines 9842 9995 +153
========================================
+ Hits 9818 9971 +153
Misses 24 24 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
## Summary In the rc.29 release PR (#616), #614 and #615 (both `feat:`) are listed under "Changed" instead of "Added". The old git-cliff config grouped entries by PR labels; the release-plz config from #610 matched `field = "group"` instead, which is not the commit type, so only the fallbacks applied: `^[fF]ix` caught `fix:` commits and everything else ended up in "Changed". The parsers now match the conventional type in the commit (PR) title, e.g. `^(add|feat)(\(.*\))?!?:`, for each group. Checked with `release-plz update` on current main: #614 and #615 are under "Added". With the version set to 2.0.0 (so that every commit since `2.0.0-rc9` shows up), `feat` → Added, `fix` → Fixed, `build` → Dependency updates, `docs` → Documentation and `refactor` → Changed, matching the earlier hand-written grouping. After this is merged, running the Release-plz workflow again updates #616. ## Related Issues Relates to #616 <!-- claude-projects-attribution: {"github_login":"shenxianpeng"} --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Changelog** * Changelog entries are categorized using conventional commit prefixes, including optional scopes and breaking-change markers. Supported categories cover features, deprecations, removals, fixes, performance, security, builds, tests, documentation, and maintenance. Other conventional commits appear under “Changed,” while non-conventional commits are skipped. Previous fallback handling for unprefixed “add” or “fix” messages is no longer used. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Xianpeng Shen <3353385+shenxianpeng@users.noreply.github.com>
Summary
Follow-up to #614. When clang-tidy reports included files as not found, the comment adds a short hint under the results table. That hint always said to generate a compilation database and pass it as the
databaseoption, which doesn't fit when--databasewas already given.Now the hint depends on whether
--databasewas given:database).databasepoints to its folder.It is only a hint about the likely cause. Findings, counts and exit status don't change.
How:
FeedbackInput::has_databaseis passed tomake_commentand kept inCommentContext.missing_includes_get_a_hintnow also covers the hint with a database, andabsolute_db_pathcheckshas_database. Most of the test diff is the extramake_commentargument.Related Issues
Relates to #614
Summary by CodeRabbit