mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-17 05:52:13 +09:00
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:
@@ -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"
|
||||
)
|
||||
Reference in New Issue
Block a user