mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
WTF-575: URL-Decode Jenkins branch names
This commit is contained in:
parent
c3a54de181
commit
1365b6023b
@ -5,6 +5,7 @@ import (
|
||||
"github.com/rivo/tview"
|
||||
"github.com/wtfutil/wtf/utils"
|
||||
"github.com/wtfutil/wtf/view"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
type Widget struct {
|
||||
@ -75,12 +76,13 @@ func (widget *Widget) content() (string, string, bool) {
|
||||
var str string
|
||||
jobs := widget.view.Jobs
|
||||
for idx, job := range jobs {
|
||||
jobName, _ := url.QueryUnescape(job.Name)
|
||||
|
||||
row := fmt.Sprintf(
|
||||
`[%s] [%s]%-6s[white]`,
|
||||
widget.RowColor(idx),
|
||||
widget.jobColor(&job),
|
||||
job.Name,
|
||||
jobName,
|
||||
)
|
||||
|
||||
str += utils.HighlightableHelper(widget.View, row, idx, len(job.Name))
|
||||
|
Loading…
x
Reference in New Issue
Block a user