issues

Github, Jira, Gitlab issues from Plan 9's acme
Log | Files | Refs | README | LICENSE

commit aadd74393741cfe5e41f181f3a43dae846d7f062
parent d857e956fd9716f8b98263a614eeb09fbfa7a70a
Author: Oliver Lowe <o@olowe.co>
Date:   Sun, 29 Jun 2025 14:39:16 +1000

cmd/Jira: clarify why we stat on Look

Diffstat:
Mcmd/Jira/Jira.go | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/cmd/Jira/Jira.go b/cmd/Jira/Jira.go @@ -66,22 +66,22 @@ func (w *awin) Look(text string) bool { } wname := path.Join("/jira", pathname) - var dent fs.DirEntry + var isDir bool if d, ok := f.(fs.DirEntry); ok { - dent = d + isDir = d.IsDir() } else { stat, err := f.Stat() if err != nil { w.Err(err.Error()) return true } - dent = fs.FileInfoToDirEntry(stat) + isDir = stat.IsDir() } - if dent.IsDir() { + if isDir { wname += "/" } - win.Name(wname) + if path.Base(pathname) == "issue" { win.Fprintf("tag", "New ") } @@ -187,7 +187,7 @@ func (w *awin) Get(f fs.File) error { return nil } -const defaultSearch = "status != 'done' and status != 'not done' and assignee = currentuser()" +const defaultSearch = "status != done and status != 'not done' and assignee = currentuser()" func newSearch(fsys fs.FS, query string) { win, err := acme.New()