Skip to content

Commit ffc10b8

Browse files
committed
Pause between repo creation and update
1 parent d0c8010 commit ffc10b8

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

dist/index.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "gh-github-intermediate-issueops",
33
"description": "GitHub Intermediate Offering: IssueOps Automation",
4-
"version": "2.0.4",
4+
"version": "2.0.5",
55
"author": "Nick Alteen <[email protected]>",
66
"private": true,
77
"type": "module",

src/actions.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ export async function addUser(
173173

174174
// Create and configure their repository.
175175
const repo = await repos.create(request, user, team)
176+
177+
// Sleep 5s to wait for the repo to be created and initial commit pushed.
178+
if (process.env.NODE_ENV !== 'test')
179+
await new Promise((resolve) => setTimeout(resolve, 5000))
180+
176181
await repos.configure(request, user, repo, team)
177182

178183
// Comment on the issue with the summary.

0 commit comments

Comments
 (0)