fix(cli): resolve PR review feedback and improve command execution

This commit is contained in:
Thomas Camlong committed 2026-08-21 17:01:29 +02:00
1 parent 7c4c1ffbe7
commit c8df2fbe5f
14 files changed
+149 -42

No files matched your search

+2 -2
View File
@@ -104,7 +104,7 @@ func (r devRow) searchTerms() string {
// buildDevRows merges open pull requests with local images into a single list.
// A local image folds into its pull request only when the revisions match, so
// the row that Enter starts is always the freshest thing available.
// the row exposes both sources when the registry image is available too.
func buildDevRows(prs []gh.PR, images []docker.Image, tags map[string]bool, tagsKnown bool) []devRow {
rows := make([]devRow, 0, len(prs)+len(images))
indexByPR := make(map[int]int, len(prs))
@@ -117,8 +117,8 @@ func buildDevRows(prs []gh.PR, images []docker.Image, tags map[string]bool, tags
if matched && image.Revision != "" && image.Revision == rows[index].pr.HeadSHA {
if rows[index].local.Tag == "" {
rows[index].local = image
continue
}
continue
}
rows = append(rows, devRow{kind: rowLocal, local: image, image: ui.ImageLocal})
}