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

umputun / tg-spam / 25035708813
83%
master: 83%

Build:
Build:
LAST BUILD BRANCH: feature/max-short-msg-count-399
DEFAULT BRANCH: master
Ran 28 Apr 2026 05:34AM 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

28 Apr 2026 05:30AM UTC coverage: 83.275% (+0.2%) from 83.078%
25035708813

Pull #398

github

umputun
fix: harden warn auto-ban against negative thresholds

Address Copilot review on PR #398:

- admin.go: gate warn auto-ban with `warnThreshold <= 0` instead of `== 0`
  to match the existing `Report.AutoBanThreshold > 0` convention. Without
  this, a persisted negative would silently enable ban-on-every-warn.
- main.go: validateSettings rejects `warn.threshold < 0` at startup
  (fail-fast on CLI typos).
- README: drop stray help-output formatting in flag references.

Tests added for the new validation case and the handler's negative-threshold
short-circuit.
Pull Request #398: Add warn auto-ban for repeated admin /warn commands

182 of 205 new or added lines in 6 files covered. (88.78%)

1 existing line in 1 file now uncovered.

8355 of 10033 relevant lines covered (83.28%)

229.16 hits per line

Uncovered Changes

Lines Coverage ∆ File
14
81.08
app/storage/warnings.go
9
55.26
0.63% app/main.go

Coverage Regressions

Lines Coverage ∆ File
1
55.26
0.63% app/main.go
Jobs
ID Job ID Ran Files Coverage
1 25035708813.1 28 Apr 2026 05:34AM UTC 41
83.28
GitHub Action Run
Source Files on build 25035708813
  • Tree
  • List 41
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #398
  • PR Base - master (#25030940684)
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