feat(comment-spam): add OSS deep-link to the 3-tier Telegram alerts#4861
Merged
Conversation
The spam_detection (A/B/C) alerts were the only report-alert source without a
"進 OSS 處理" link — moderators had to find the comment manually. Add an ossUrl
pointing at the OSS comments triage page with the comment's global id
(`${ossSiteDomain}/comments?id=<globalId>`), matching the link affordance the
direct/community_watch alerts already have. Uses the shared ossSiteDomain (now
correctly `oss.matters.town` in prod / `oss.matters.icu` in dev).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4861 +/- ##
========================================
Coverage 72.77% 72.77%
========================================
Files 1071 1071
Lines 21306 21307 +1
Branches 4657 4657
========================================
+ Hits 15505 15506 +1
Misses 5324 5324
Partials 477 477 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
進 OSS 處理link to thespam_detection(A/B/C) Telegram alerts — previously the only report-alert source without one. Links to${ossSiteDomain}/comments?id=<commentGlobalId>(the OSS comments triage page; the id param deep-links where supported, harmless otherwise).Pairs with the prod/dev
MATTERS_OSS_SITE_DOMAINfix (was wronglymatters.town, nowoss.matters.town/oss.matters.icu).🤖 Generated with Claude Code