Skip to content

Commit

Permalink
[ND-7015] Display the labes on the project item too
Browse files Browse the repository at this point in the history
Signed-off-by: Aris Buzachis <[email protected]>
  • Loading branch information
aris-bunnyshell committed Dec 21, 2023
1 parent d5317be commit 3280f2e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/formatter/stylish.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,17 @@ func tabulateProjectItem(w *tabwriter.Writer, item *sdk.ProjectItem) {
fmt.Fprintf(w, "%v\t %v\n", "Name", item.GetName())
fmt.Fprintf(w, "%v\t %v\n", "Environments", item.GetTotalEnvironments())

first := true
for key, value := range item.GetLabels() {
if first {
fmt.Fprintf(w, "%v\t %v\t %v\n", "Labels", key, value)

first = false
} else {
fmt.Fprintf(w, "\t %v\t %v\n", key, value)
}
}

if buildSettings, ok := item.GetBuildSettingsOk(); ok {

Check failure on line 141 in pkg/formatter/stylish.go

View workflow job for this annotation

GitHub Actions / audit

item.GetBuildSettingsOk undefined (type *sdk.ProjectItem has no field or method GetBuildSettingsOk)
tabulateBuildSettings(w, buildSettings)
}
Expand Down

0 comments on commit 3280f2e

Please sign in to comment.