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

decentraland / comms-gatekeeper / 23154694531
83%
main: 82%

Build:
Build:
LAST BUILD BRANCH: feat/user-moderation
DEFAULT BRANCH: main
Ran 16 Mar 2026 04:36PM UTC
Jobs 1
Files 135
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

16 Mar 2026 04:35PM UTC coverage: 82.69% (+0.1%) from 82.572%
23154694531

Pull #242

github

MauroCicerchia
feat: add user moderation endpoints for banning and warning players

Add moderator-authorized endpoints for managing player bans and warnings:
- POST/DELETE/GET /moderation/users/:address/bans (ban, lift, status)
- POST/GET /moderation/users/:address/warnings (warn, list)
- GET /moderation/bans (list all active bans)

Includes database migration, business logic with address normalization,
moderator authorization via MODERATORS_ALLOWLIST env var, and full
unit + integration test coverage.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pull Request #242: feat: add user moderation endpoints

875 of 1175 branches covered (74.47%)

Branch coverage included in aggregate %.

170 of 193 new or added lines in 18 files covered. (88.08%)

9 existing lines in 3 files now uncovered.

2555 of 2973 relevant lines covered (85.94%)

40.45 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
80.0
src/migrations/1742148000000_user-moderation.ts
3
93.02
src/adapters/user-moderation-db.ts
3
72.22
src/controllers/handlers/user-moderation/ban-player-handler.ts
3
50.0
src/controllers/handlers/user-moderation/ban-status-handler.ts
3
50.0
src/controllers/handlers/user-moderation/get-warnings-handler.ts
3
70.59
src/controllers/handlers/user-moderation/lift-ban-handler.ts
3
50.0
src/controllers/handlers/user-moderation/list-bans-handler.ts
3
57.14
src/controllers/handlers/user-moderation/warn-player-handler.ts

Uncovered Existing Lines

Lines Coverage ∆ File
1
91.03
0.13% src/logic/cast/cast.ts
3
86.21
0.49% src/controllers/handlers/scene-stream-access-handlers/add-scene-stream-access-handler.ts
5
83.1
0.49% src/controllers/handlers/scene-stream-access-handlers/reset-scene-stream-access-handler.ts
Jobs
ID Job ID Ran Files Coverage
1 23154694531.1 16 Mar 2026 04:36PM UTC 270
83.98
GitHub Action Run
Source Files on build 23154694531
  • Tree
  • List 135
  • Changed 80
  • Source Changed 8
  • Coverage Changed 80
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #23154694531
  • Pull Request #242
  • PR Base - main (#22919883322)
  • Delete
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