Shorten Grammarly Desktop version and outputs - #43524
Conversation
Add a 3-part version shortener for Grammarly Desktop and register it in the Homebrew ingester functions. Update tests to include the grammarly-desktop case to ensure versions like "1.160.0.0" become "1.160.0". Update the grammarly-desktop darwin output to use the shortened version in the version field and patched query (installer_url left pointing to the original full version). Files changed: main.go, version_shortener.go, version_shortener_test.go, and outputs/grammarly-desktop/darwin.json.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #43524 +/- ##
=======================================
Coverage 66.90% 66.90%
=======================================
Files 2599 2599
Lines 208184 208262 +78
Branches 9334 9334
=======================================
+ Hits 139276 139343 +67
+ Misses 56250 56244 -6
- Partials 12658 12675 +17
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
There was a problem hiding this comment.
Pull request overview
This PR adjusts the maintained-apps Homebrew ingestion pipeline so Grammarly Desktop versions are shortened to three dot-separated segments (to match macOS bundle_short_version), preventing incorrect patch/update detection.
Changes:
- Added a
GrammarlyDesktopVersionShortener(keep 3 segments) and registered it forgrammarly-desktop/darwinin the Homebrew external refs enrichers map. - Expanded version shortener tests to cover the Grammarly Desktop case (
1.160.0.0→1.160.0). - Updated the Grammarly Desktop Darwin output to use the shortened version in both the manifest version field and the patched query (while keeping the installer URL on the full version path).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| ee/maintained-apps/outputs/grammarly-desktop/darwin.json | Updates version and patched query to use the shortened 3-part version. |
| ee/maintained-apps/ingesters/homebrew/external_refs/version_shortener_test.go | Adds a test case ensuring Grammarly Desktop versions shorten correctly. |
| ee/maintained-apps/ingesters/homebrew/external_refs/version_shortener.go | Introduces GrammarlyDesktopVersionShortener using the existing 3-segment shortener helper. |
| ee/maintained-apps/ingesters/homebrew/external_refs/main.go | Registers the Grammarly Desktop shortener for the grammarly-desktop/darwin slug so it runs during ingestion. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughThe changes add support for version shortening for Grammarly Desktop on macOS. A new manifest enricher function, 🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Add a 3-part version shortener for Grammarly Desktop and register it in the Homebrew ingester functions. Update tests to include the grammarly-desktop case to ensure versions like "1.160.0.0" become "1.160.0". Update the grammarly-desktop darwin output to use the shortened version in the version field and patched query (installer_url left pointing to the original full version). Files changed: main.go, version_shortener.go, version_shortener_test.go, and outputs/grammarly-desktop/darwin.json.
Summary by CodeRabbit
New Features
Tests