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

Method assert

ng-dev/pr/common/validation/assert-signed-cla.ts:26–34  ·  view source on GitHub ↗
(pullRequest: PullRequestFromGithub)

Source from the content-addressed store, hash-verified

24
25class Validation extends PullRequestValidation {
26 assert(pullRequest: PullRequestFromGithub) {
27 const passing = getStatusesForPullRequest(pullRequest).statuses.some(({name, status}) => {
28 return name === 'cla/google' && status === PullRequestStatus.PASSING;
29 });
30
31 if (!passing) {
32 throw this._createError('CLA is not signed by the contributor.');
33 }
34 }
35}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected