thunderstore-io / Thunderstore

Thunderstore is a mod database and API for downloading mods. Thunderstore Discord: https://discord.thunderstore.io/
https://thunderstore.io/
GNU Affero General Public License v3.0
128 stars 27 forks source link

Add audit webhook MVP #979

Closed MythicManiac closed 8 months ago

MythicManiac commented 8 months ago

Add a very basic audit webhook implementation, allowing for webhook listeners to be added for moderation action log events. Currently only logged events are package approvals and rejections.

codecov[bot] commented 8 months ago

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (f9759c9) 93.05% compared to head (86f7236) 93.04%.

Files Patch % Lines
django/thunderstore/webhooks/models/audit.py 78.78% 5 Missing and 2 partials :warning:
django/thunderstore/webhooks/audit.py 95.65% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #979 +/- ## ========================================== - Coverage 93.05% 93.04% -0.01% ========================================== Files 290 296 +6 Lines 8537 8645 +108 Branches 763 769 +6 ========================================== + Hits 7944 8044 +100 - Misses 493 498 +5 - Partials 100 103 +3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.