(pullRequest: PullRequestFromGithub)
| 24 | |
| 25 | class 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 | } |
nothing calls this directly
no test coverage detected