Skip to content

fix(manage): unarchive before changing visibility of archived repos - #9

Merged
arsenstorm merged 3 commits into
mainfrom
fix/archived-visibility
Aug 20, 2026
Merged

arsenstorm merged 3 commits into
mainfrom
fix/archived-visibility

Conversation

@arsenstorm

Copy link
Copy Markdown
Owner

Broken: changing the visibility of an archived repository failed with 403 Repository was archived so is read-only.
Cause: the app sent one PATCH with visibility; GitHub rejects every write to an archived repository except unarchiving.
Fix: when the repository is archived, PATCH archived: false first, then set visibility and re-archive in the same request unless it should stay unarchived.

@arsenstorm
arsenstorm merged commit eb3c3fb into main Aug 20, 2026
9 checks passed
@arsenstorm
arsenstorm deleted the fix/archived-visibility branch August 20, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant