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

Method assert

ng-dev/pr/common/validation/assert-pending.ts:20–27  ·  view source on GitHub ↗
(pullRequest: PullRequestFromGithub)

Source from the content-addressed store, hash-verified

18
19class Validation extends PullRequestValidation {
20 assert(pullRequest: PullRequestFromGithub) {
21 switch (pullRequest.state) {
22 case 'CLOSED':
23 throw this._createError('Pull request is already closed.');
24 case 'MERGED':
25 throw this._createError('Pull request is already merged.');
26 }
27 }
28}

Callers 1

runFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected