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

Function createDeployPR

pkg/cli/deploy_command.go:259–266  ·  view source on GitHub ↗
(resolvedWorkflows []string, targetRepo string, verbose bool)

Source from the content-addressed store, hash-verified

257}
258
259func createDeployPR(resolvedWorkflows []string, targetRepo string, verbose bool) error {
260 prTitle, prBody := buildDeployPRMetadata(resolvedWorkflows, targetRepo)
261 _, err := CreatePRWithChanges("deploy-workflows", deployCommitMessage, prTitle, prBody, verbose)
262 if err != nil {
263 return fmt.Errorf("failed to create deploy pull request: %w", err)
264 }
265 return nil
266}
267
268// resolveDeployWorkflowSpecs rewrites relative local workflow specs to be anchored
269// to the caller's original working directory before deploy switches into checkoutDir.

Callers 1

runDeployFunction · 0.85

Calls 3

buildDeployPRMetadataFunction · 0.85
CreatePRWithChangesFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected