Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unarchiving support #2391

Merged
merged 1 commit into from Feb 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -46,5 +46,6 @@
/doc/doctrees/
.vscode*
.venv
venv
.tox/
.mypy_cache/
6 changes: 3 additions & 3 deletions github/Repository.py
Expand Up @@ -1582,7 +1582,7 @@ def edit(
:param allow_merge_commit: bool
:param allow_rebase_merge: bool
:param delete_branch_on_merge: bool
:param archived: bool. Unarchiving repositories is currently not supported through API (https://docs.github.com/en/rest/reference/repos#update-a-repository)
:param archived: bool
:rtype: None
"""
if name is None:
Expand Down Expand Up @@ -1627,8 +1627,8 @@ def edit(
assert delete_branch_on_merge is github.GithubObject.NotSet or isinstance(
delete_branch_on_merge, bool
), delete_branch_on_merge
assert archived is github.GithubObject.NotSet or (
isinstance(archived, bool) and archived is True
assert archived is github.GithubObject.NotSet or isinstance(
archived, bool
), archived
post_parameters = {
"name": name,
Expand Down