Skip to content

Commit

Permalink
fix: wait 3s before trying to set repository topics (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m authored Mar 5, 2021
1 parent 1831fd1 commit ae341df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/create-repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export default async function createRepository(
});
}

// waiting 3s until #6 is resolved
await new Promise((resolve) => setTimeout(resolve, 3000));

// add topic
await octokit.request("PUT /repos/{owner}/{repo}/topics", {
mediaType: {
Expand Down

0 comments on commit ae341df

Please sign in to comment.