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

fix issue that prevents 'internal' repositories being created in an Enterprise Managed User organisation #781

Merged
merged 1 commit into from
May 11, 2021

Conversation

alec-pinson
Copy link
Contributor

@alec-pinson alec-pinson commented May 10, 2021

When an internal repository is built first time round it defaults to public. Public repositories cannot be created in an Enterprise Managed User organisation on GitHub.com. This PR allows Terraform to first create internal repos as private and then change to internal.

Error: POST https://api.github.com/orgs/ORG1/repos: 422 Public repositories are not permitted for Enterprise Managed Organizations. []

…nterprised Managed User organisation

Error: POST https://api.github.com/orgs/ORG1/repos: 422 Public repositories are not permitted for Enterprise Managed Organizations. []
@alec-pinson alec-pinson changed the title fix issue that prevents 'internal' repositories being created in an Enterprised Managed User organisation fix issue that prevents 'internal' repositories being created in an Enterprise Managed User organisation May 10, 2021
Copy link
Contributor

@jcudit jcudit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for flagging this!

@jcudit jcudit added this to the v4.9.4 milestone May 11, 2021
@jcudit jcudit merged commit f8eeee8 into integrations:master May 11, 2021
@alec-pinson alec-pinson deleted the emu-internal-repo-fix branch May 11, 2021 11:43
@Olin-Vorechovsky
Copy link

What is behind to create repository as visibility = (public|private) and after that update to visibility = internal?

Why not to create repository as declared visibility = internal.

kfcampbell pushed a commit to kfcampbell/terraform-provider-github that referenced this pull request Jul 26, 2022
…nterprised Managed User organisation (integrations#781)

Error: POST https://api.github.com/orgs/ORG1/repos: 422 Public repositories are not permitted for Enterprise Managed Organizations. []
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

Successfully merging this pull request may close these issues.

3 participants