Version information to be shown during the attestation process both during the process and at the end
(p *action.ProjectVersion, isPushed bool)
| 314 | // Version information to be shown during the attestation process |
| 315 | // both during the process and at the end |
| 316 | func versionStringAttestation(p *action.ProjectVersion, isPushed bool) string { |
| 317 | if p == nil || p.Version == "" { |
| 318 | return "" |
| 319 | } |
| 320 | |
| 321 | if isPushed { |
| 322 | return versionStringAttFinal(p) |
| 323 | } |
| 324 | |
| 325 | return versionStringAttTransient(p) |
| 326 | } |
| 327 | |
| 328 | // Transient state |
| 329 | // It's a prerelease that will be released |