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

Method assert

ng-dev/pr/common/validation/assert-merge-ready.ts:21–28  ·  view source on GitHub ↗
(pullRequest: PullRequestFromGithub)

Source from the content-addressed store, hash-verified

19
20class Validation extends PullRequestValidation {
21 assert(pullRequest: PullRequestFromGithub) {
22 if (pullRequest.isDraft) {
23 throw this._createError('Pull request is still a draft.');
24 }
25 if (!pullRequest.labels.nodes.some(({name}) => name === actionLabels['ACTION_MERGE'].name)) {
26 throw this._createError('Pull request is not marked as merge ready.');
27 }
28 }
29}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected