@@ -126,7 +126,7 @@ func runCombine(cmd *cobra.Command, args []string) error {
126
126
Logger .Debug ("starting gh-combine" , "version" , version .String ())
127
127
128
128
// Input validation
129
- if err := validateInputs (args ); err != nil {
129
+ if err := ValidateInputs (args ); err != nil {
130
130
return err
131
131
}
132
132
@@ -170,28 +170,6 @@ func setupSignalContext() (context.Context, context.CancelFunc) {
170
170
return ctx , cancel
171
171
}
172
172
173
- // validateInputs checks if the provided inputs are valid
174
- func validateInputs (args []string ) error {
175
- // Check that ignore-label and select-label are not the same
176
- if ignoreLabel != "" && selectLabel != "" && ignoreLabel == selectLabel {
177
- return errors .New ("--ignore-label and --select-label cannot have the same value" )
178
- }
179
-
180
- // If no args and no file, we can't proceed
181
- if len (args ) == 0 && reposFile == "" {
182
- return errors .New ("must specify repositories or provide a file with --file" )
183
- }
184
-
185
- // Warn if no filtering options are provided at all
186
- if branchPrefix == "" && branchSuffix == "" && branchRegex == "" &&
187
- ignoreLabel == "" && selectLabel == "" && len (selectLabels ) == 0 &&
188
- ! requireCI && ! mustBeApproved {
189
- Logger .Warn ("No filtering options specified. This will attempt to combine ALL open pull requests." )
190
- }
191
-
192
- return nil
193
- }
194
-
195
173
// parseRepositories parses repository names from arguments or file
196
174
func parseRepositories (args []string ) ([]string , error ) {
197
175
var repos []string
0 commit comments