feat: Add audit logging (#38189)

Co-authored-by: bircni <bircni@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
bircni
2026-09-12 10:15:23 +02:00
committed by GitHub
parent 4d43445532
commit da37b7916b
136 changed files with 3864 additions and 209 deletions
+15
View File
@@ -0,0 +1,15 @@
// Copyright 2026 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package audit
// ScopeType identifies the unit an audit event belongs to (for filtering in UI).
// Target-specific details live in Metadata, not as typed objects in the audit package.
type ScopeType string
const (
ScopeSystem ScopeType = "system"
ScopeUser ScopeType = "user"
ScopeOrganization ScopeType = "organization"
ScopeRepository ScopeType = "repository"
)