Skip to content

[BUG]: 422 error for repository creation with internal visibility #2766

@rbalahadia-cambridge

Description

@rbalahadia-cambridge

Expected Behavior

It should create the repository with no issues.

Actual Behavior

422 Failed to update visibility. A previous repository operation is still in progress. []

Terraform Version

Terraform v1.13.3

Affected Resource(s)

  • github_repository

Terraform Configuration Files

resource "github_repository" "new_repo" {
  name        = var.repo_name
  description = var.repo_description
  visibility = "internal"
  template {
    owner                = "owner"
    repository           = "repo_name"
    include_all_branches = true
  }
  lifecycle {
    ignore_changes = [visibility, description, topics, homepage_url]
  }
}

Steps to Reproduce

terraform apply

Debug Output

422 Failed to update visibility. A previous repository operation is still in progress. []

Panic Output

422 Failed to update visibility. A previous repository operation is still in progress. []

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: BugSomething isn't working as documented

    Type

    No type

    Projects

    Status

    ✅ Done

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions