Repository navigation
Add Digest to ReleaseAsset struct #11030
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -154,10 +154,14 @@ func renderReleaseTTY(io *iostreams.IOStreams, release *shared.Release) error { | |||||
|
|
||||||
| if len(release.Assets) > 0 { | ||||||
| fmt.Fprintln(w, cs.Bold("Assets")) | ||||||
| //nolint:staticcheck // SA1019: Showing NAME|SIZE headers adds nothing to table. | ||||||
| table := tableprinter.New(io, tableprinter.NoHeader) | ||||||
| table := tableprinter.New(io, tableprinter.WithHeader("Name", "Digest", "Size")) | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: I've asked @bdehamer to add the header since we have multiple fields now and am concerned for screen readers. |
||||||
| for _, a := range release.Assets { | ||||||
| table.AddField(a.Name) | ||||||
| if a.Digest == nil { | ||||||
| table.AddField("") | ||||||
|
||||||
| table.AddField("") | |
| table.AddField("-") |
Uh oh!
There was an error while loading. Please reload this page.