INNER CODE UNIT · TypeScript
requireDeploymentStatus
github/branch-deploy · tools/acceptance/index.ts:289
function requireDeploymentStatus(
context: ScenarioContext,
deployment: MockDeployment,
index: number
): MockDeploymentStatus {
const status = deployment.statuses[index]
assert.ok(status !== undefined, diagnostics(context))
return status
}
function setForkPullRequest(state: MockGitHubState): void {
state.pullRequest = {
...state.pullRequest,
headLabel: 'fork-owner:fork-branch',
headRef: 'fork-branch',
headRepoFork: true,
headRepoFullName: `fork-owner/${ACCEPTANCE_REPOSITORY.repo}`,
headSha: ACCEPTANCE_SHAS.fork