Skip to content

Commit efbf9c4

Browse files
jumboduckclaude
andauthored
Remove latest_activity from repo list and get commands (#770)
The field always returns null in production and is being removed from the API response (kosli-dev/server#5180). Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent aa2066e commit efbf9c4

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

cmd/kosli/getRepo.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ func printRepoAsTable(raw string, out io.Writer, page int) error {
130130
fmt.Sprintf("Name:\t%s", repo["name"]),
131131
fmt.Sprintf("URL:\t%s", repo["url"]),
132132
fmt.Sprintf("Provider:\t%s", repo["provider"]),
133-
fmt.Sprintf("Latest Activity:\t%s", repo["latest_activity"]),
134133
}
135134

136135
tabFormattedPrint(out, []string{}, rows)

cmd/kosli/listRepos.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,10 @@ func printReposListAsTable(raw string, out io.Writer, page int) error {
102102
return nil
103103
}
104104

105-
header := []string{"NAME", "URL", "PROVIDER", "LAST_ACTIVITY"}
105+
header := []string{"NAME", "URL", "PROVIDER"}
106106
rows := []string{}
107107
for _, repo := range repos {
108-
latestActivity := ""
109-
if v := repo["latest_activity"]; v != nil {
110-
latestActivity = fmt.Sprintf("%s", v)
111-
}
112-
row := fmt.Sprintf("%s\t%s\t%s\t%s", repo["name"], repo["url"], repo["provider"], latestActivity)
108+
row := fmt.Sprintf("%s\t%s\t%s", repo["name"], repo["url"], repo["provider"])
113109
rows = append(rows, row)
114110
}
115111
tabFormattedPrint(out, header, rows)

0 commit comments

Comments
 (0)