(ctx context.Context, addOpts AddOptions)
| 244 | } |
| 245 | |
| 246 | func runDeployCompilePass(ctx context.Context, addOpts AddOptions) error { |
| 247 | compileConfig := CompileConfig{ |
| 248 | Verbose: addOpts.Verbose, |
| 249 | EngineOverride: addOpts.EngineOverride, |
| 250 | WorkflowDir: addOpts.WorkflowDir, |
| 251 | Purge: true, |
| 252 | } |
| 253 | if _, err := CompileWorkflows(ctx, compileConfig); err != nil { |
| 254 | return fmt.Errorf("failed to compile workflows with purge: %w", err) |
| 255 | } |
| 256 | return nil |
| 257 | } |
| 258 | |
| 259 | func createDeployPR(resolvedWorkflows []string, targetRepo string, verbose bool) error { |
| 260 | prTitle, prBody := buildDeployPRMetadata(resolvedWorkflows, targetRepo) |
no test coverage detected