Skip to content

Conversation

@nickfloyd
Copy link
Member

Resolves #877


Before the change?

  • Before the change when deleting resources of repos that are archived the operation would fail with 403

After the change?

  • Now the provider will gracefully handle the operation by logging an informational message and removing the resource from Terraform state without attempting to modify the archived repository.

Pull request checklist

  • Schema migrations have been created if needed (example)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@nickfloyd nickfloyd self-assigned this Oct 29, 2025
@nickfloyd nickfloyd added Type: Bug Something isn't working as documented Type: Feature New feature or request labels Oct 29, 2025
@nickfloyd nickfloyd moved this from Backlog to In Review in Terraform Provider Oct 29, 2025
@nickfloyd nickfloyd merged commit 38e68ad into main Oct 31, 2025
3 checks passed
@nickfloyd nickfloyd deleted the 877/safe-delete-repo branch October 31, 2025 15:32
@github-project-automation github-project-automation bot moved this from In Review to Done in Terraform Provider Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Something isn't working as documented Type: Feature New feature or request

Projects

Development

Successfully merging this pull request may close these issues.

Deleting/Destroying an archived repo results in 403 error.

2 participants