more patch cleanups
This commit is contained in:
parent
3870959747
commit
95d4e03ca4
|
@ -106,11 +106,16 @@ func AddPatchsetsPB(tbox *gui.Node, pb *forgepb.Patchsets) *forgepb.PatchsetsTab
|
|||
})
|
||||
|
||||
testf := func(p *forgepb.Patchset) string {
|
||||
return "test"
|
||||
return "validate"
|
||||
}
|
||||
tp := t.AddButtonFunc("Analyze", testf)
|
||||
tp.Custom = func(p *forgepb.Patchset) {
|
||||
log.Info("analyze patches here", p.Name)
|
||||
log.Info("check patches here", p.Name)
|
||||
all := p.Patches.All()
|
||||
for all.Scan() {
|
||||
patch := all.Next()
|
||||
log.Info("What is up with patches:", patch.Filename)
|
||||
}
|
||||
}
|
||||
|
||||
vp := t.AddButtonFunc("View Patchset", func(p *forgepb.Patchset) string {
|
||||
|
|
|
@ -5,6 +5,7 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
"sync"
|
||||
|
||||
"go.wit.com/gui"
|
||||
|
@ -90,7 +91,11 @@ func AddPatchesPB(tbox *gui.Node, pb *forgepb.Patches) *forgepb.PatchesTable {
|
|||
t.SetParent(tbox)
|
||||
|
||||
t.AddRepoNamespace()
|
||||
t.AddFilename()
|
||||
// t.AddFilename()
|
||||
t.AddStringFunc("file", func(p *forgepb.Patch) string {
|
||||
_, fname := filepath.Split(p.Filename)
|
||||
return fname
|
||||
})
|
||||
t.AddCommitHash()
|
||||
|
||||
t.ShowTable()
|
||||
|
|
Loading…
Reference in New Issue