MCPcopy
hub / github.com/github/github-mcp-server / String

Method String

pkg/github/copilot.go:34–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34func (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.
57type linkedPullRequest struct {

Callers 15

AssignCopilotToIssueFunction · 0.95
mainFunction · 0.45
TestParseAPIHostFunction · 0.45
metadataHandlerMethod · 0.45
FetchTokenScopesMethod · 0.45
NewClientFunction · 0.45
refURLMethod · 0.45
commitURLMethod · 0.45

Calls

no outgoing calls