Skip to content

Pluralize summary counts by number - #58

Merged
tsvikas merged 1 commit into
mainfrom
pluralize-summary-counts
Jul 14, 2026
Merged

Pluralize summary counts by number#58
tsvikas merged 1 commit into
mainfrom
pluralize-summary-counts

Conversation

@tsvikas

@tsvikas tsvikas commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Extracts just the pluralization fix from #56, independent of that PR's dependency-sync feature.

The end-of-run summary hardcoded "package" for the changed count and "packages" for the unchanged count, so it read "1 packages" or "2 package" depending on the numbers. This adds a small _plural helper and uses it for both counts: a count of 1 reads "package", any other count reads "packages".

Tests updated to expect the pluralized output; verified the singular case (1 package) manually.

🤖 Generated with Claude Code

The end-of-run summary hardcoded "package" for the changed count and
"packages" for the unchanged count, so it read "1 packages" or
"2 package" depending on the numbers. Add a small `_plural` helper and
use it for both counts, so a count of 1 reads "package" and any other
count reads "packages".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K6m3rhqg4ssCTaan8K1BDi
@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.34%. Comparing base (a6df7ed) to head (4aa3b7f).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #58      +/-   ##
==========================================
+ Coverage   98.32%   98.34%   +0.01%     
==========================================
  Files           4        4              
  Lines         179      181       +2     
  Branches       35       35              
==========================================
+ Hits          176      178       +2     
  Misses          2        2              
  Partials        1        1              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@tsvikas
tsvikas marked this pull request as ready for review July 14, 2026 10:14
@tsvikas
tsvikas merged commit cf36870 into main Jul 14, 2026
19 checks passed
@tsvikas
tsvikas deleted the pluralize-summary-counts branch July 14, 2026 10:15

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant