You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix/feat: Update removal operations for related resources to now gracefully handle deleting archived repositories (#2844)
* Update removal operations for related resources to now gracefully handle deleteing archived repositories
* Add rep collab tests - requires GITHUB_TEST_COLLABORATOR to be set
* More repo collab coverage
* Adds coverage for deploy key and teams
* Same docs/notes as before
Copy file name to clipboardExpand all lines: website/docs/r/repository_collaborator.html.markdown
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@ When applied, an invitation will be sent to the user to become a collaborator
23
23
on a repository. When destroyed, either the invitation will be cancelled or the
24
24
collaborator will be removed from the repository.
25
25
26
+
~> **Note on Archived Repositories**: When a repository is archived, GitHub makes it read-only, preventing collaborator modifications. If you attempt to destroy resources associated with archived repositories, 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.
27
+
26
28
This resource is non-authoritative, for managing ALL collaborators of a repo, use github_repository_collaborators
Copy file name to clipboardExpand all lines: website/docs/r/repository_collaborators.html.markdown
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@ When applied, an invitation will be sent to the user to become a collaborators
23
23
on a repository. When destroyed, either the invitation will be cancelled or the
24
24
collaborators will be removed from the repository.
25
25
26
+
~> **Note on Archived Repositories**: When a repository is archived, GitHub makes it read-only, preventing collaborator modifications. If you attempt to destroy resources associated with archived repositories, 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.
27
+
26
28
This resource is authoritative. For adding a collaborator to a repo in a non-authoritative manner, use
0 commit comments