()
| 32 | } |
| 33 | |
| 34 | func (d *mvpDescription) String() string { |
| 35 | var sb strings.Builder |
| 36 | sb.WriteString(d.summary) |
| 37 | if len(d.outcomes) > 0 { |
| 38 | sb.WriteString("\n\n") |
| 39 | sb.WriteString("This tool can help with the following outcomes:\n") |
| 40 | for _, outcome := range d.outcomes { |
| 41 | sb.WriteString(fmt.Sprintf("- %s\n", outcome)) |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | if len(d.referenceLinks) > 0 { |
| 46 | sb.WriteString("\n\n") |
| 47 | sb.WriteString("More information can be found at:\n") |
| 48 | for _, link := range d.referenceLinks { |
| 49 | sb.WriteString(fmt.Sprintf("- %s\n", link)) |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | return sb.String() |
| 54 | } |
| 55 | |
| 56 | // linkedPullRequest represents a PR linked to an issue by Copilot. |
| 57 | type linkedPullRequest struct { |
no outgoing calls