Skip to content

Latest commit

 

History

History
56 lines (47 loc) · 2.39 KB

BranchProtection.md

File metadata and controls

56 lines (47 loc) · 2.39 KB

BranchProtection

BranchProtection represents a branch protection for a repository

Properties

Name Type Description Notes
apply_to_admins bool [optional]
approvals_whitelist_teams List[str] [optional]
approvals_whitelist_username List[str] [optional]
block_on_official_review_requests bool [optional]
block_on_outdated_branch bool [optional]
block_on_rejected_reviews bool [optional]
branch_name str Deprecated: true [optional]
created_at datetime [optional]
dismiss_stale_approvals bool [optional]
enable_approvals_whitelist bool [optional]
enable_merge_whitelist bool [optional]
enable_push bool [optional]
enable_push_whitelist bool [optional]
enable_status_check bool [optional]
ignore_stale_approvals bool [optional]
merge_whitelist_teams List[str] [optional]
merge_whitelist_usernames List[str] [optional]
protected_file_patterns str [optional]
push_whitelist_deploy_keys bool [optional]
push_whitelist_teams List[str] [optional]
push_whitelist_usernames List[str] [optional]
require_signed_commits bool [optional]
required_approvals int [optional]
rule_name str [optional]
status_check_contexts List[str] [optional]
unprotected_file_patterns str [optional]
updated_at datetime [optional]

Example

from clientapi_forgejo.models.branch_protection import BranchProtection

# TODO update the JSON string below
json = "{}"
# create an instance of BranchProtection from a JSON string
branch_protection_instance = BranchProtection.from_json(json)
# print the JSON string representation of the object
print(BranchProtection.to_json())

# convert the object into a dict
branch_protection_dict = branch_protection_instance.to_dict()
# create an instance of BranchProtection from a dict
branch_protection_from_dict = BranchProtection.from_dict(branch_protection_dict)

[Back to Model list] [Back to API list] [Back to README]