INNER CODE UNIT · TypeScript

setForkPullRequest

github/branch-deploy · tools/acceptance/index.ts:299

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
  }
}

function addBranch(
  state: MockGitHubState,
  name: string,
  sha: string = ACCEPTANCE_SHAS.default
): void {
  state.branches.set(name, {
    name,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…