CreateBranchRuleRequest
Shape
- branch_patternBranchPattern (string)
- allow_force_pushbooleanoptional
- allowed_to_mergeAccessLevelguestreporterdevelopermaintainerowneroptional
- allowed_to_pushAccessLevelguestreporterdevelopermaintainerowneroptional
- enforcementRuleEnforcementdefaultenforcedoptionalOn a group,
enforcedholds every group and repository beneath to this rule or a stricter one for the same pattern. Only someone who administers access on the group may set it. - merge_allowlistarray of AllowlistEntryId (string · uuid)optional
- push_allowlistarray of AllowlistEntryId (string · uuid)optional
- require_code_owner_approvalbooleanoptional
Example
Synthesized example{
"branch_pattern": "branch-pattern-7ee5",
"allow_force_push": false,
"allowed_to_merge": "guest",
"allowed_to_push": "guest",
"enforcement": "default",
"merge_allowlist": [
"100a60ff-b1ac-4ec6-8b5b-e5066c6141c5",
"703fc1b0-6cbe-406b-a814-094d0d62cf45"
],
"push_allowlist": [
"3de15fcb-b749-4bb0-9f89-cfd3fcbc9192",
"e96e3bda-2be2-4f57-b9c8-413a3b8463a7"
],
"require_code_owner_approval": false
}
Graph
Used inside
No schema contains this one.
Contains
No named schema inside.
Used by
Sent by 2 operations
Returned by 0 operations
No operation returns it directly.