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
feat/fix: Handle error management on resources when dealing with archived repos. (#2837)
* Adds utility to handle the various needs of error management when dealing with archived repos.
* Properly handle label deletes of archived repos
* coverage
* Updates docs detailing the behavior
* Apply the handling for repo files
Copy file name to clipboardExpand all lines: website/docs/r/issue_label.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
@@ -20,6 +20,8 @@ and those labels easily conflict with custom ones.
20
20
This resource will first check if the label exists, and then issue an update,
21
21
otherwise it will create.
22
22
23
+
~> **Note:** When a repository is archived, Terraform will skip deletion of issue labels to avoid API errors, as archived repositories are read-only. The labels will be removed from Terraform state without attempting to delete them from GitHub.
Copy file name to clipboardExpand all lines: website/docs/r/issue_labels.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
@@ -18,6 +18,8 @@ This resource is authoritative. For adding a label to a repo in a non-authoritat
18
18
19
19
If you change the case of a label's name, its' color, or description, this resource will edit the existing label to match the new values. However, if you change the name of a label, this resource will create a new label with the new name and delete the old label. Beware that this will remove the label from any issues it was previously attached to.
20
20
21
+
~> **Note:** When a repository is archived, Terraform will skip deletion of issue labels to avoid API errors, as archived repositories are read-only. The labels will be removed from Terraform state without attempting to delete them from GitHub.
Copy file name to clipboardExpand all lines: website/docs/r/repository_file.html.markdown
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ description: |-
10
10
This resource allows you to create and manage files within a
11
11
GitHub repository.
12
12
13
+
~> **Note:** When a repository is archived, Terraform will skip deletion of repository files to avoid API errors, as archived repositories are read-only. The files will be removed from Terraform state without attempting to delete them from GitHub.
0 commit comments