node-gitlab-2-github
node-gitlab-2-github copied to clipboard
bug when deleting and recreating repo in GitHub
When I set recreateRepo to true, only the first time creation worked.
github: {
recreateRepo: true,
},
And the re-creation always returned Something went wrong: HttpError: Repository creation failed.: {"resource":"Repository","code":"custom","field":"name","message":"name already exists on this account"}. While it is confirmed that the repo doesn't exist.
I may have found the cause of the issue, will attempt to fix and open a PR
PR #154 submitted to fix this issue.
Have to set github.ownerIsOrg to true in settings.ts if the repo belongs to an Organisation.