MCPcopy Create free account
hub / github.com/github/gh-aw / runDeployCompilePass

Function runDeployCompilePass

pkg/cli/deploy_command.go:246–257  ·  view source on GitHub ↗
(ctx context.Context, addOpts AddOptions)

Source from the content-addressed store, hash-verified

244}
245
246func 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
259func createDeployPR(resolvedWorkflows []string, targetRepo string, verbose bool) error {
260 prTitle, prBody := buildDeployPRMetadata(resolvedWorkflows, targetRepo)

Callers 1

runDeployFunction · 0.85

Calls 2

CompileWorkflowsFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected