1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

adding back mergedString

This commit is contained in:
Joel Valentine 2019-08-31 17:27:49 +01:00
parent 925930f76f
commit 5740b689be

View File

@ -12,7 +12,6 @@ func (widget *Widget) display() {
func (widget *Widget) content() (string, string, bool) { func (widget *Widget) content() (string, string, bool) {
repo := widget.currentGithubRepo() repo := widget.currentGithubRepo()
title := fmt.Sprintf("%s - %s", widget.CommonSettings().Title, widget.title(repo)) title := fmt.Sprintf("%s - %s", widget.CommonSettings().Title, widget.title(repo))
if repo == nil { if repo == nil {
return title, " GitHub repo data is unavailable ", false return title, " GitHub repo data is unavailable ", false
@ -47,7 +46,7 @@ func (widget *Widget) displayMyPullRequests(repo *GithubRepo, username string) s
str := "" str := ""
for idx, pr := range prs { for idx, pr := range prs {
str += fmt.Sprintf(`[green]["%d"]%4d[""][white] %s`, idx, *pr.Number, *pr.Title) str += fmt.Sprintf(`%s[green]["%d"]%4d[""][white] %s`, widget.mergeString(pr), idx, *pr.Number, *pr.Title)
str += "\n" str += "\n"
} }