You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-11-29 21:48:14 +02:00
Fix gitlab hooks and simplify config extension (#2537)
- closes #2534 - remove `IsConfigured` func from config extension. If `server.Config.Services.ConfigService != nil` it is always configured
This commit is contained in:
@@ -51,8 +51,8 @@ func Restart(ctx context.Context, store store.Store, lastPipeline *model.Pipelin
|
||||
pipelineFiles = append(pipelineFiles, &forge_types.FileMeta{Data: y.Data, Name: y.Name})
|
||||
}
|
||||
|
||||
// If config extension is active we should refetch the config in case something changed
|
||||
if server.Config.Services.ConfigService != nil && server.Config.Services.ConfigService.IsConfigured() {
|
||||
// If the config extension is active we should refetch the config in case something changed
|
||||
if server.Config.Services.ConfigService != nil {
|
||||
currentFileMeta := make([]*forge_types.FileMeta, len(configs))
|
||||
for i, cfg := range configs {
|
||||
currentFileMeta[i] = &forge_types.FileMeta{Name: cfg.Name, Data: cfg.Data}
|
||||
|
||||
Reference in New Issue
Block a user