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