mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
adding back mergedString
This commit is contained in:
parent
925930f76f
commit
5740b689be
@ -12,7 +12,6 @@ func (widget *Widget) display() {
|
||||
|
||||
func (widget *Widget) content() (string, string, bool) {
|
||||
repo := widget.currentGithubRepo()
|
||||
|
||||
title := fmt.Sprintf("%s - %s", widget.CommonSettings().Title, widget.title(repo))
|
||||
if repo == nil {
|
||||
return title, " GitHub repo data is unavailable ", false
|
||||
@ -47,7 +46,7 @@ func (widget *Widget) displayMyPullRequests(repo *GithubRepo, username string) s
|
||||
|
||||
str := ""
|
||||
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"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user