From 7a20595021400943dc69e838e590b4185222708c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Feb 2026 23:07:03 +0000 Subject: [PATCH 1/2] Initial plan From d6a81d0efd650a3e609fbcc920f8945ef0e589aa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Feb 2026 23:13:00 +0000 Subject: [PATCH 2/2] Remove unused generateMaxWithRequiredFieldsConfig function to fix lint-go workflow Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .../safe_outputs_config_generation_helpers.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkg/workflow/safe_outputs_config_generation_helpers.go b/pkg/workflow/safe_outputs_config_generation_helpers.go index 8101dae426..dfce010e1a 100644 --- a/pkg/workflow/safe_outputs_config_generation_helpers.go +++ b/pkg/workflow/safe_outputs_config_generation_helpers.go @@ -60,18 +60,6 @@ func generateMaxWithAllowedConfig(max int, defaultMax int, allowed []string) map return config } -// generateMaxWithRequiredFieldsConfig creates a config with max and optional required filter fields -func generateMaxWithRequiredFieldsConfig(max int, defaultMax int, requiredLabels []string, requiredTitlePrefix string) map[string]any { - config := generateMaxConfig(max, defaultMax) - if len(requiredLabels) > 0 { - config["required_labels"] = requiredLabels - } - if requiredTitlePrefix != "" { - config["required_title_prefix"] = requiredTitlePrefix - } - return config -} - // generateMaxWithDiscussionFieldsConfig creates a config with discussion-specific filter fields func generateMaxWithDiscussionFieldsConfig(max int, defaultMax int, requiredCategory string, requiredLabels []string, requiredTitlePrefix string) map[string]any { config := generateMaxConfig(max, defaultMax)