Do not rely on newline

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
jolheiser 2020-01-13 15:10:59 -06:00
parent e07903245a
commit 343b49704a
No known key found for this signature in database
GPG Key ID: 83E486E71AFEB820
3 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ PRLoop: // labels in Go, let's get old school
}
}
fmt.Printf(title)
fmt.Println(title)
for _, g := range config.Cfg.Groups {
if len(entries[g.Name]) == 0 {
continue

View File

@ -23,7 +23,7 @@ type Gitea struct{}
// Changelog returns a Gitea changelog
func (ge Gitea) Changelog() (string, []PullRequest, error) {
tagURL := fmt.Sprintf("## [%s](%s/%s/src/tag/v%s) - %s\n", Milestone, config.Cfg.BaseURL, config.Cfg.Repo, Milestone, time.Now().Format("2006-01-02"))
tagURL := fmt.Sprintf("## [%s](%s/%s/src/tag/v%s) - %s", Milestone, config.Cfg.BaseURL, config.Cfg.Repo, Milestone, time.Now().Format("2006-01-02"))
client := gitea.NewAPIClient(&gitea.Configuration{
BasePath: config.Cfg.BaseURL + "/api/v1",

View File

@ -20,7 +20,7 @@ type GitHub struct{}
// Changelog returns a GitHub changelog
func (gh GitHub) Changelog() (string, []PullRequest, error) {
tagURL := fmt.Sprintf("## [%s](https://github.com/%s/releases/tag/v%s) - %s\n", Milestone, config.Cfg.Repo, Milestone, time.Now().Format("2006-01-02"))
tagURL := fmt.Sprintf("## [%s](https://github.com/%s/releases/tag/v%s) - %s", Milestone, config.Cfg.Repo, Milestone, time.Now().Format("2006-01-02"))
client := github.NewClient(nil)
ctx := context.Background()