(ctx context.Context)
| 53 | } |
| 54 | |
| 55 | func IsFreshLatestRelease(ctx context.Context) (bool, error) { |
| 56 | release, err := getLatestRelease(ctx) |
| 57 | if err != nil { |
| 58 | return true, err |
| 59 | } |
| 60 | |
| 61 | return release.PublishedAt != nil && time.Since(release.PublishedAt.Time).Hours() < 24, nil |
| 62 | } |
| 63 | |
| 64 | func IsUpgradeable(ctx context.Context) (bool, error) { |
| 65 | release, err := getLatestRelease(ctx) |
no test coverage detected