Skip to content

Commit

Permalink
chore: rename fork
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Feb 16, 2025
1 parent 643f038 commit 639ace4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/handlers/run-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,12 @@ async function createPullRequest({ payload, logger, userOctokit, userName }: Con
await userOctokit.rest.repos.createFork({
owner: sourceOwner,
repo: sourceRepo,
name: newRepoName,
});

logger.debug("Waiting for the fork to be ready...");
await new Promise((resolve) => setTimeout(resolve, 5000));

logger.debug(`Updating fork name to: ${newRepoName}`);
await userOctokit.rest.repos.update({
owner: userName,
repo: sourceRepo,
name: newRepoName,
});

const { data: repoData } = await userOctokit.rest.repos.get({
owner: sourceOwner,
repo: sourceRepo,
Expand Down

0 comments on commit 639ace4

Please sign in to comment.