File tree Expand file tree Collapse file tree 4 files changed +1417
-347
lines changed
Expand file tree Collapse file tree 4 files changed +1417
-347
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,18 @@ var (
4848
4949 // Parse tools (similar to toolsets)
5050 var enabledTools []string
51- if err := viper .UnmarshalKey ("tools" , & enabledTools ); err != nil {
52- return fmt .Errorf ("failed to unmarshal tools: %w" , err )
51+ if viper .IsSet ("tools" ) {
52+ if err := viper .UnmarshalKey ("tools" , & enabledTools ); err != nil {
53+ return fmt .Errorf ("failed to unmarshal tools: %w" , err )
54+ }
5355 }
5456
55- // If neither toolset config nor tools config is passed we enable the default toolset
56- if len (enabledToolsets ) == 0 && len (enabledTools ) == 0 {
57- enabledToolsets = []string {github .ToolsetMetadataDefault .ID }
57+ // Parse enabled features (similar to toolsets)
58+ var enabledFeatures []string
59+ if viper .IsSet ("features" ) {
60+ if err := viper .UnmarshalKey ("features" , & enabledFeatures ); err != nil {
61+ return fmt .Errorf ("failed to unmarshal features: %w" , err )
62+ }
5863 }
5964
6065 ttl := viper .GetDuration ("repo-access-cache-ttl" )
You can’t perform that action at this time.
0 commit comments