Open
Description
We currently add the octoherd-script
topic right after we create the repository
create-octoherd-script/lib/create-repository.js
Lines 16 to 34 in 1831fd1
That can result in a 404 due to the replication lag in GitHub's databases.
We should add an explicit retry to the request which adds the topic. For that we need to use Octokit's retry plugin, then we need to add { request: { retries: 3, retryAfter: 1 } }
to the request options. The replication lag should never be longer than 3 seconds.
As we need the retry plugin, we could as well replace @octokit/core
with @octoherd/octokit
which already has the retry request loaded.
Metadata
Metadata
Assignees
Labels
No labels