Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions scripts/ci/codegen/pushToRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { pushToRepositoryConfiguration } from './types.ts';

import { getClientsConfigField } from '../../config.ts';
import { commitStartRelease } from './text.ts';
import { sleep } from './waitForAllReleases.ts';

async function handleSpecFiles(spec: SpecsToPush, tempGitDir: string): Promise<void> {
const pathToSpecs = toAbsolutePath(`${tempGitDir}/${spec.output}`);
Expand Down Expand Up @@ -159,9 +158,8 @@ async function pushToRepository(repository: string, config: RepositoryConfigurat
head: task.prBranch,
});

// the graphql api of gh might have some cache so we need to wait a bit
await sleep(10_000);

await run(`gh auth login --with-token ${ensureGitHubToken()}`);
await run(`gh repo set-default ${OWNER}/${repository}`);
await run(`gh pr merge ${data.number} --auto`);

console.log(`Pull request created on ${OWNER}/${repository}`);
Expand Down