aboutsummaryrefslogtreecommitdiff
path: root/forged/internal/incoming/hooks/hooks.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--forged/internal/incoming/hooks/hooks.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/forged/internal/incoming/hooks/hooks.go b/forged/internal/incoming/hooks/hooks.go
index dfdf172..effd104 100644
--- a/forged/internal/incoming/hooks/hooks.go
+++ b/forged/internal/incoming/hooks/hooks.go
@@ -32,10 +32,11 @@ type hookInfo struct {
contribReq string
}
-func New(config Config, global *global.Global) (server *Server) {
+func New(global *global.Global) (server *Server) {
+ cfg := global.Config.Hooks
return &Server{
- socketPath: config.Socket,
- executablesPath: config.Execs,
+ socketPath: cfg.Socket,
+ executablesPath: cfg.Execs,
hookMap: cmap.Map[string, hookInfo]{},
global: global,
}