MCPcopy Create free account
hub / github.com/angular/dev-infra / isActive

Method isActive

ng-dev/release/publish/actions/cut-stable.ts:140–155  ·  view source on GitHub ↗
(active: ActiveReleaseTrains)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected