RepositoryBranchRuleResponse
Shape
- allow_force_pushboolean
- allowed_to_mergeAccessLevelguestreporterdevelopermaintainerowner
- allowed_to_pushAccessLevelguestreporterdevelopermaintainerowner
- branch_patternstring
- branch_rule_idstring
- merge_allowlistarray of string
- push_allowlistarray of string
- repository_idstring
- require_code_owner_approvalboolean
Example
Synthesized example{
"allow_force_push": false,
"allowed_to_merge": "guest",
"allowed_to_push": "guest",
"branch_pattern": "branch-pattern-51d8",
"branch_rule_id": "cdbfb01c-135a-4e26-9f2a-e7577142747a",
"merge_allowlist": [
"merge-allowlist-a235",
"merge-allowlist-022b"
],
"push_allowlist": [
"push-allowlist-2950",
"push-allowlist-feea"
],
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"require_code_owner_approval": false
}
Graph
Used inside
Contains
No named schema inside.
Used by
Sent by 0 operations
No operation takes it as a request body.
Returned by 4 operations
- GETList branch rules for a repository/repositories/{repo_id}/branch-rules
- POSTCreate a branch rule for a repository/repositories/{repo_id}/branch-rules
- GETGet a branch rule by ID/repositories/{repo_id}/branch-rules/{branch_rule_id}
- PATCHUpdate a branch rule/repositories/{repo_id}/branch-rules/{branch_rule_id}