MCPcopy Create free account
hub / github.com/google/go-github / genRefLines

Function genRefLines

tools/gen-release-notes/main.go:107–121  ·  view source on GitHub ↗
(breaking, nonBreaking []string)

Source from the content-addressed store, hash-verified

105}
106
107func genRefLines(breaking, nonBreaking []string) (ref, refNon []string) {
108 for _, pr := range breaking {
109 m := descriptionRE.FindStringSubmatch(pr)
110 if len(m) == 3 {
111 ref = append(ref, strings.Replace(pr, m[1], m[2], 1))
112 }
113 }
114 for _, pr := range nonBreaking {
115 m := descriptionRE.FindStringSubmatch(pr)
116 if len(m) == 3 {
117 refNon = append(refNon, strings.Replace(pr, m[1], m[2], 1))
118 }
119 }
120 return ref, refNon
121}
122
123func runCommand(cmdArgs []string) string {
124 cmd := exec.Command(cmdArgs[0], cmdArgs[1:]...) //nolint:gosec

Callers 1

genReleaseNotesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…