Skip to content

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

Merged
jcudit merged 1 commit into
integrations:masterfrom
alec-pinson:emu-internal-repo-fix
May 11, 2021
Merged

jcudit merged 1 commit into
integrations:masterfrom
alec-pinson:emu-internal-repo-fix

Conversation

@alec-pinson

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

Copy link
Copy Markdown
Contributor

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

@jcudit jcudit left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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.

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