Skip to content

Commit

Permalink
fix issue that prevents 'internal' repositories being created in an E…
Browse files Browse the repository at this point in the history
…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. []
  • Loading branch information
alec-pinson authored May 11, 2021
1 parent 2b958e1 commit ee37f40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/resource_github_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func resourceGithubRepositoryCreate(d *schema.ResourceData, meta interface{}) er

visibility, ok := d.Get("visibility").(string)
if ok {
if visibility == "private" {
if visibility == "private" || visibility == "internal" {
isPrivate = true
}
}
Expand Down

0 comments on commit ee37f40

Please sign in to comment.