| 283 | } |
| 284 | |
| 285 | func 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 | |
| 294 | func excludeExistingSourcedWorkflows(workflows []string, addOpts AddOptions) ([]string, []string, error) { |
| 295 | workflowsDir := addOpts.WorkflowDir |