(text string)
| 51 | } |
| 52 | |
| 53 | func genReleaseNotes(text string) string { |
| 54 | allLines := splitIntoPRs(text) |
| 55 | fullBreakingLines, fullNonBreakingLines := splitBreakingLines(allLines) |
| 56 | refBreakingLines, refNonBreakingLines := genRefLines(fullBreakingLines, fullNonBreakingLines) |
| 57 | |
| 58 | return fmt.Sprintf(releaseNotesFmt, |
| 59 | strings.Join(fullBreakingLines, "\n"), |
| 60 | strings.Join(fullNonBreakingLines, "\n"), |
| 61 | strings.Join(refBreakingLines, "\n"), |
| 62 | strings.Join(refNonBreakingLines, "\n")) |
| 63 | } |
| 64 | |
| 65 | func splitIntoPRs(text string) []string { |
| 66 | parts := strings.Split("\n"+text, "\ncommit ") |
no test coverage detected
searching dependent graphs…