Conversation
Feed group list and query commands now classify API failures into typed errors, consistent with the rest of the im domain. This restores the main branch lint gate to green.
|
Need an answer fast? Review this PR in Change Stack to ask focused questions about the PR or a changed range. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (16)
💤 Files with no reviewable changes (13)
✅ Files skipped from review due to trivial changes (3)
📝 WalkthroughWalkthroughThree feed-group shortcuts switch untyped JSON decoding to typed decoding. The PR removes feed-group shortcuts and tests from the registry, updates two IM flag description strings, and deletes Feed Group documentation and permission entries. ChangesFeed group shortcuts typed API migration and cleanup
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1305 +/- ##
==========================================
+ Coverage 70.95% 71.00% +0.04%
==========================================
Files 685 681 -4
Lines 65702 65367 -335
==========================================
- Hits 46622 46412 -210
+ Misses 15401 15314 -87
+ Partials 3679 3641 -38 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@d4f97e4ea4be68e16d1b4714876887572b995ac6🧩 Skill updatenpx skills add larksuite/cli#fix/im-ci -y -g |
Remove the feed group list/query shortcut registration, implementation, tests, and skill references so the im domain no longer exposes unsupported feed group commands. Keep the remaining im flag validation paths on typed error envelopes.
Summary
The
no_legacy_runtime_api_calllint guard on main rejects fiveruntime.DoAPIJSONcall sites in the im feed group shortcuts, leaving the lint job red on every run. This switches those call sites toruntime.DoAPIJSONTypedso feed group list and query failures classify into typed errors, consistent with the rest of the im domain.Changes
shortcuts/im/im_feed_group_list.go:DoAPIJSON→DoAPIJSONTyped(single-page and all-pages paths)shortcuts/im/im_feed_group_list_item.go:DoAPIJSON→DoAPIJSONTyped(single-page and all-pages paths)shortcuts/im/im_feed_group_query_item.go:DoAPIJSON→DoAPIJSONTypedDoAPIJSONTypedissues an identical request and returns the same data shape; only error classification differs.Test Plan
go run -C lint . ..passes (previously 5no_legacy_runtime_api_callrejects)gofmt,go vet,go build ./...passgo test ./shortcuts/im/... ./shortcuts/common/...passes🤖 Generated with Claude Code
Summary by CodeRabbit
Removed
Documentation
Other