• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / tg-spam / 28848461549
84%

Build:
DEFAULT BRANCH: master
Ran 07 Jul 2026 07:15AM UTC
Jobs 1
Files 41
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Jul 2026 07:13AM UTC coverage: 83.554% (-0.004%) from 83.558%
28848461549

push

github

web-flow
feat: add mention-only meta check (#424)

new spam pattern showed up: a message that is just a mention and a number, like `@blah 3`. There was no "mention-only" check before (only a mention *count* check and a link-only check), so this adds one.

**what it does**

`--meta.mention-only` / `$META_MENTION_ONLY`, off by default. When enabled, a message that is nothing but @mentions plus trivial content (digits, whitespace or punctuation, in any position) is flagged as spam. Gated on at least one mention, so a bare number with no mention is never flagged. Legit replies like `@john thanks` keep a real word in the residue and pass.

modeled on the existing `LinkOnlyCheck`. Wired through every layer per the CLAUDE.md checklist: CLI/env, DB-backed `Settings` + `IsMetaEnabled`, the web settings UI form round-trip, and detector registration. Unit, handler, and e2e-ui coverage added.

**known limitations** (in the godoc, surfaced during review)

- only literal `@name` mentions are stripped, so a `text_mention` (a display-name mention with no `@`) is not caught
- the check sees `req.Msg` as built upstream, which includes quoted/reply-to text, so a mention-only message posted next to a quote is not flagged. Same as the other `*-only` checks.

also drops the legacy `unfuck-ai-comments` step from CLAUDE.md.

20 of 23 new or added lines in 5 files covered. (86.96%)

2 existing lines in 1 file now uncovered.

8581 of 10270 relevant lines covered (83.55%)

245.29 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
55.6
-0.13% app/main.go

Coverage Regressions

Lines Coverage ∆ File
2
76.77
-2.02% lib/tgspam/plugin/watcher.go
Jobs
ID Job ID Ran Files Coverage
1 28848461549.1 07 Jul 2026 07:15AM UTC 41
83.55
GitHub Action Run
Source Files on build 28848461549
  • Tree
  • List 41
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1251f8b6 on github
  • Prev Build on master (#28685401863)
  • Next Build on master (#28850477820)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc