• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Warning: This build has drifted.
The coverage report for this pull request build may be inaccurate because its base commit is no longer the HEAD of its target branch.
This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

    • Learn more: For more information on this, see Tracking coverage changes for pull request builds.
    • Fix now: For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
    • Prevent going forward: To avoid this issue with future PRs, see these Recommended CI Configurations.
New Repo Setting:
INCLUDE COVERAGE % WITH WARNINGS ABOUT DRIFTED BUILDS?

Enabling this setting will include a (potentially inaccurate) coverage % with warning messages in status updates for drifted builds.

Adjust setting

umputun / tg-spam / 33431312508
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/go_modules-a135cde889
DEFAULT BRANCH: master
Ran 31 Aug 2026 07:39PM UTC
Jobs 1
Files 43
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

31 Aug 2026 07:34PM UTC coverage: 84.036% (+0.06%) from 83.974%
33431312508

Pull #447

github

olitez
fix: address review feedback on documents-only check

Gate the intake guard on a new TelegramListener.AdmitDocuments field, wired
from settings.Meta.DocumentsOnly, so a text-less document reaches the detector
only when the check is enabled. It was admitted unconditionally before, which
stored it in the locator and inflated the per-user count --max-short-msg-count
bans on for operators who never turned the check on.

Measure req.AuthoredText() in DocumentsCheck instead of req.Msg. OnMessage
appends quoted and reply-to text to Msg, so replying to a long enough message
let a caption-less file clear the length gate on text its sender never wrote.

Rename the flag to --meta.document-only / META_DOCUMENT_ONLY and the web field
to metaDocumentOnly, matching the singular public names of the sibling media
checks; the Go field and the json/yaml/db tags stay plural, as VideosOnly does
behind --meta.video-only.

Spell out in the README what enabling the check costs: the locator and
--max-short-msg-count, plus the checks that need no message text and run before
the min-length gate — stop-words matched against username and user ID,
username-symbols, lua plugins and CAS. Note that a forwarded file or one
attached to a cross-chat reply is admitted regardless of the setting.

Claude-Session: https://claude.ai/code/session_019KjU5nM8wSMb3L9gELGnZu
Pull Request #447: Add documents-only meta check

46 of 47 new or added lines in 10 files covered. (97.87%)

2 existing lines in 1 file now uncovered.

9133 of 10868 relevant lines covered (84.04%)

231.45 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
55.71
0.13% app/main.go

Coverage Regressions

Lines Coverage ∆ File
2
94.07
-0.21% lib/tgspam/detector.go
Jobs
ID Job ID Ran Files Coverage
1 33431312508.1 31 Aug 2026 07:39PM UTC 43
84.04
GitHub Action Run
Source Files on build 33431312508
  • Tree
  • List 43
  • Changed 13
  • Source Changed 0
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #447
  • PR Base - master (#32425913176)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc