INNER CODE UNIT · TypeScript

lockBranch

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

function lockBranch(environment: string): string {
  return `${environment}-branch-deploy-lock`
}

function assertNoLockRoutes(context: ScenarioContext): void {
  assert.deepEqual(
    context.routeLog.filter(
      route =>
        route.path.includes('/git/') ||
        route.path.includes('/contents/lock.json')
    ),
    [],
    diagnostics(context)
  )
}

function apiPath(path: string): string {
  return `/repos/${ACCEPTANCE_REPOSITORY.owner}/${ACCEPTANCE_REPOSITORY.repo}${path}`

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…