Propagate feature flags through gitaly-hooks
Hooks currently do not receive nor propagate the feature flags. This is due to hooks being called through git, which breaks the context chain and thus the propagation. This commits propagate the feature flags through the hooks to Gitaly's HookService. The feature flags are added to the hook payload in order to pass them to the hooks. The provided feature flags are then propagated via the outgoing context to the HookService.
Showing
- cmd/gitaly-hooks/hooks.go 2 additions, 0 deletionscmd/gitaly-hooks/hooks.go
- cmd/gitaly-hooks/hooks_test.go 55 additions, 4 deletionscmd/gitaly-hooks/hooks_test.go
- internal/git/hooks_options.go 2 additions, 1 deletioninternal/git/hooks_options.go
- internal/git/hooks_payload.go 6 additions, 0 deletionsinternal/git/hooks_payload.go
- internal/git/hooks_payload_test.go 8 additions, 6 deletionsinternal/git/hooks_payload_test.go
- internal/gitaly/service/operations/update_with_hooks.go 2 additions, 1 deletioninternal/gitaly/service/operations/update_with_hooks.go
Please register or sign in to comment