Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug when deleting and recreating repo in GitHub #153

Open
azliabdullah opened this issue Sep 8, 2022 · 2 comments
Open

bug when deleting and recreating repo in GitHub #153

azliabdullah opened this issue Sep 8, 2022 · 2 comments

Comments

@azliabdullah
Copy link

azliabdullah commented Sep 8, 2022

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.

@azliabdullah
Copy link
Author

I may have found the cause of the issue, will attempt to fix and open a PR

azliabdullah pushed a commit to azliabdullah/node-gitlab-2-github that referenced this issue Sep 8, 2022
…ed in authenticated user account instead (fix issue piceaTech#153)
@azliabdullah
Copy link
Author

PR #154 submitted to fix this issue.

Have to set github.ownerIsOrg to true in settings.ts if the repo belongs to an Organisation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant