ifcSearchPostProcessOption returns a searchOption that attaches IFC labels to a multi-repository search result. The feature-flag check is centralized here (mirroring the attach* helpers above) rather than in each search tool handler: when IFC labels are disabled it returns a no-op option, so callers
(ctx context.Context, deps ToolDependencies)
| 70 | // handler: when IFC labels are disabled it returns a no-op option, so callers |
| 71 | // can pass it unconditionally to searchHandler. |
| 72 | func ifcSearchPostProcessOption(ctx context.Context, deps ToolDependencies) searchOption { |
| 73 | if !deps.IsFeatureEnabled(ctx, FeatureFlagIFCLabels) { |
| 74 | return func(*searchConfig) {} |
| 75 | } |
| 76 | return withSearchPostProcess(searchIssuesIFCPostProcess(deps)) |
| 77 | } |
| 78 | |
| 79 | // attachRepoVisibilityIFCLabelLazy is like attachRepoVisibilityIFCLabel but |
| 80 | // resolves the REST client itself, only when IFC labels are enabled. It is used |
no test coverage detected