Branch Restriction Policy
objectBranch Restriction Policy
urlstring(uri)required
users_urlstring(uri)required
teams_urlstring(uri)required
apps_urlstring(uri)required
usersarray[object]required
Show Child Parameters
teamsarray[object]required
Show Child Parameters
appsarray[object]required
Show Child Parameters
Example
Branch Protection
objectBranch Protection
urlstring
enabledboolean
required_status_checksobject
Protected Branch Required Status Check
Show Child Parameters
enforce_adminsobject
Protected Branch Admin Enforced
Show Child Parameters
required_pull_request_reviewsobject
Protected Branch Pull Request Review
Show Child Parameters
restrictionsobject
Branch Restriction Policy
Show Child Parameters
required_linear_historyobject
Show Child Parameters
allow_force_pushesobject
Show Child Parameters
allow_deletionsobject
Show Child Parameters
required_conversation_resolutionobject
Show Child Parameters
namestring
Example:"branch/with/protection"
protection_urlstring
Example:"https://api.github.com/repos/owner-79e94e2d36b3fd06a32bb213/AAA_Public_Repo/branches/branch/with/protection/protection"
required_signaturesobject
Show Child Parameters
Example
Short Branch
objectShort Branch
namestringrequired
commitobjectrequired
Show Child Parameters
protectedbooleanrequired
protectionobject
Branch Protection
Show Child Parameters
protection_urlstring(uri)
Example
Git User
objectMetaproperties for Git author/committer information.
namestring
Example:"Chris Wanstrath"
emailstring
Example:"chris@ozmm.org"
datestring
Example:"2007-10-29T02:42:39.000-07:00"
Example
Verification
objectverifiedbooleanrequired
reasonstringrequired
payloadstringrequired
signaturestringrequired
Example