diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2025-02-11 03:05:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-11 03:05:42 +0800 |
commit | 30993e95082356daa40b3605bff65b565e913bcc (patch) | |
tree | decb86d86ce6bbc783f5b72ff297eb98db378f1a /services/context/base.go | |
parent | 085f273d19a30cc7cb7f6315a15a95c2b59fc5b9 (diff) | |
download | gitea-30993e95082356daa40b3605bff65b565e913bcc.tar.gz gitea-30993e95082356daa40b3605bff65b565e913bcc.zip |
Feature: Support workflow event dispatch via API (#33545)
Fix: https://github.com/go-gitea/gitea/issues/31765 (Re-open #32059)
---------
Co-authored-by: Bence Santha <git@santha.eu>
Co-authored-by: Bence Sántha <7604637+bencurio@users.noreply.github.com>
Co-authored-by: Christopher Homberger <christopher.homberger@web.de>
Diffstat (limited to 'services/context/base.go')
-rw-r--r-- | services/context/base.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/context/base.go b/services/context/base.go index 5db84f42a5..4d1c3659a2 100644 --- a/services/context/base.go +++ b/services/context/base.go @@ -23,6 +23,10 @@ type BaseContextKeyType struct{} var BaseContextKey BaseContextKeyType +// Base is the base context for all web handlers +// ATTENTION: This struct should never be manually constructed in routes/services, +// it has many internal details which should be carefully prepared by the framework. +// If it is abused, it would cause strange bugs like panic/resource-leak. type Base struct { reqctx.RequestContext |