(active: ActiveReleaseTrains)
| 138 | } |
| 139 | |
| 140 | static override async isActive(active: ActiveReleaseTrains) { |
| 141 | // -- Notes -- : |
| 142 | // * A stable version can be cut for an active release-train currently in the |
| 143 | // release-candidate phase. |
| 144 | // * If there is an exceptional minor, **only** the exceptional minor considered |
| 145 | // because it would be problematic if an in-progress RC would suddenly take over |
| 146 | // while there is still an in-progress exceptional minor. |
| 147 | // * It is impossible to directly release from feature-freeze phase into stable. |
| 148 | if (active.exceptionalMinor !== null) { |
| 149 | return active.exceptionalMinor.version.prerelease[0] === 'rc'; |
| 150 | } |
| 151 | if (active.releaseCandidate !== null) { |
| 152 | return active.releaseCandidate.version.prerelease[0] === 'rc'; |
| 153 | } |
| 154 | return false; |
| 155 | } |
| 156 | } |
nothing calls this directly
no outgoing calls
no test coverage detected