-
Notifications
You must be signed in to change notification settings - Fork 823
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Follow-up PR after #2502.
Now that we have a generic update_repo_settings, we can add the option to switch visibility status of a repo. This would be a drop-in replacement for update_repo_visibility:
- update_repo_visibility(repo_id, private=True)
+ update_repo_settings(repo_id, private=True)TODO:
- add a
privateattribute toupdate_repo_settings - make both
gatedandprivateattributes optional (default to None) - check
update_repo_settingsinputs => eithergatedis passed, orprivate, or both. If both gated and private are None, raise a ValueError. - add
gatedandprivateto the request payload only if not None - update
update_repo_settingsdocstring - update all references of
update_repo_visibilityin docs - add
@_deprecate_methoddecorator toupdate_repo_visibility(will be removed in 0.29.x)
WizKnight
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request