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

Function buildDeployPRMetadata

pkg/cli/deploy_command.go:285–292  ·  view source on GitHub ↗
(workflows []string, targetRepo string)

Source from the content-addressed store, hash-verified

283}
284
285func buildDeployPRMetadata(workflows []string, targetRepo string) (string, string) {
286 workflowDescription := normalizeWorkflowID(workflows[0])
287 if len(workflows) > 1 {
288 workflowDescription = fmt.Sprintf("%d workflows", len(workflows))
289 }
290 body := fmt.Sprintf("Deploy %s to %s.\n\nThis PR was created by `gh aw deploy` after running update, add, and compile --purge in the target repository.", workflowDescription, targetRepo)
291 return deployCommitMessage, body
292}
293
294func excludeExistingSourcedWorkflows(workflows []string, addOpts AddOptions) ([]string, []string, error) {
295 workflowsDir := addOpts.WorkflowDir

Calls 1

normalizeWorkflowIDFunction · 0.85