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 08:15:23 +00:00
committed by GitHub
co-authored by bircni wxiaoguang
parent 4d43445532
commit da37b7916b
136 changed files with 3863 additions and 208 deletions
+1
View File
@@ -1385,6 +1385,7 @@ func disableOrEnableWorkflowFile(ctx *context_module.Context, isEnable bool) {
ctx.ServerError("UpdateRepoUnit", err)
return
}
actions_service.RecordWorkflowToggle(ctx, ctx.Repo.Repository, workflow, isEnable)
if isEnable {
ctx.Flash.Success(ctx.Tr("actions.workflow.enable_success", workflow))