Rules
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The substring by which the repository protection rules are filtered.
The order of the output.
ascPossible values: The field by which the protection rules are sorted.
created_atPossible values: The page to return.
1The maximum number of results to return.
30The result should inherit entities from parent spaces.
falseOK
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/rules?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"created": 1,
"created_by": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
},
"definition": {
"bypass": {
"repo_owners": true,
"user_group_ids": [
1
],
"user_ids": [
1
]
},
"lifecycle": {
"create_forbidden": true,
"delete_forbidden": true,
"update_forbidden": true,
"update_force_forbidden": true
},
"pullreq": {
"approvals": {
"require_code_owners": true,
"require_latest_commit": true,
"require_minimum_count": 1,
"require_minimum_default_reviewer_count": 1,
"require_no_change_request": true
},
"comments": {
"require_resolve_all": true
},
"commits": {
"require_target_is_ancestor": true
},
"merge": {
"block": true,
"delete_branch": true,
"require_bypass_message": true,
"strategies_allowed": [
"fast-forward"
]
},
"merge_queue": {
"checks_concurrency": 1,
"group_size": 1,
"max_check_duration_seconds": 1,
"status_checks": {
"require_identifiers": [
"text"
]
}
},
"reviewers": {
"default_reviewer_ids": [
1
],
"default_user_group_reviewer_ids": [
1
],
"request_code_owners": true
},
"status_checks": {
"require_identifiers": [
"text"
]
}
}
},
"description": "text",
"identifier": "text",
"pattern": {
"default": true,
"exclude": [
"text"
],
"include": [
"text"
]
},
"repo_target": {
"exclude": {
"ids": [
1
],
"patterns": [
"text"
]
},
"include": {
"ids": [
1
],
"patterns": [
"text"
]
}
},
"repositories": {
"ANY_ADDITIONAL_PROPERTY": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
}
},
"scope": 1,
"state": "active",
"type": "branch",
"updated": 1,
"user_groups": {
"ANY_ADDITIONAL_PROPERTY": {
"description": "text",
"id": 1,
"identifier": "text",
"name": "text",
"scope": 1
}
},
"users": {
"ANY_ADDITIONAL_PROPERTY": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
}
}
}
]Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Created
Unauthorized
Forbidden
Not Found
Internal Server Error
POST /code/api/v1/repos/{repo_identifier}/rules?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 1108
{
"definition": {
"bypass": {
"repo_owners": true,
"user_group_ids": [
1
],
"user_ids": [
1
]
},
"lifecycle": {
"create_forbidden": true,
"delete_forbidden": true,
"update_forbidden": true,
"update_force_forbidden": true
},
"pullreq": {
"approvals": {
"require_code_owners": true,
"require_latest_commit": true,
"require_minimum_count": 1,
"require_minimum_default_reviewer_count": 1,
"require_no_change_request": true
},
"comments": {
"require_resolve_all": true
},
"commits": {
"require_target_is_ancestor": true
},
"merge": {
"block": true,
"delete_branch": true,
"require_bypass_message": true,
"strategies_allowed": [
"fast-forward"
]
},
"merge_queue": {
"checks_concurrency": 1,
"group_size": 1,
"max_check_duration_seconds": 1,
"status_checks": {
"require_identifiers": [
"text"
]
}
},
"reviewers": {
"default_reviewer_ids": [
1
],
"default_user_group_reviewer_ids": [
1
],
"request_code_owners": true
},
"status_checks": {
"require_identifiers": [
"text"
]
}
}
},
"description": "text",
"identifier": "text",
"pattern": {
"default": true,
"exclude": [
"text"
],
"include": [
"text"
]
},
"repo_target": {
"exclude": {
"ids": [
1
],
"patterns": [
"text"
]
},
"include": {
"ids": [
1
],
"patterns": [
"text"
]
}
},
"state": "active",
"type": "branch"
}{
"created": 1,
"created_by": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
},
"definition": {
"bypass": {
"repo_owners": true,
"user_group_ids": [
1
],
"user_ids": [
1
]
},
"lifecycle": {
"create_forbidden": true,
"delete_forbidden": true,
"update_forbidden": true,
"update_force_forbidden": true
},
"pullreq": {
"approvals": {
"require_code_owners": true,
"require_latest_commit": true,
"require_minimum_count": 1,
"require_minimum_default_reviewer_count": 1,
"require_no_change_request": true
},
"comments": {
"require_resolve_all": true
},
"commits": {
"require_target_is_ancestor": true
},
"merge": {
"block": true,
"delete_branch": true,
"require_bypass_message": true,
"strategies_allowed": [
"fast-forward"
]
},
"merge_queue": {
"checks_concurrency": 1,
"group_size": 1,
"max_check_duration_seconds": 1,
"status_checks": {
"require_identifiers": [
"text"
]
}
},
"reviewers": {
"default_reviewer_ids": [
1
],
"default_user_group_reviewer_ids": [
1
],
"request_code_owners": true
},
"status_checks": {
"require_identifiers": [
"text"
]
}
}
},
"description": "text",
"identifier": "text",
"pattern": {
"default": true,
"exclude": [
"text"
],
"include": [
"text"
]
},
"repo_target": {
"exclude": {
"ids": [
1
],
"patterns": [
"text"
]
},
"include": {
"ids": [
1
],
"patterns": [
"text"
]
}
},
"repositories": {
"ANY_ADDITIONAL_PROPERTY": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
}
},
"scope": 1,
"state": "active",
"type": "branch",
"updated": 1,
"user_groups": {
"ANY_ADDITIONAL_PROPERTY": {
"description": "text",
"id": 1,
"identifier": "text",
"name": "text",
"scope": 1
}
},
"users": {
"ANY_ADDITIONAL_PROPERTY": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
}
}
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/rules/{rule_identifier}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
"created": 1,
"created_by": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
},
"definition": {
"bypass": {
"repo_owners": true,
"user_group_ids": [
1
],
"user_ids": [
1
]
},
"lifecycle": {
"create_forbidden": true,
"delete_forbidden": true,
"update_forbidden": true,
"update_force_forbidden": true
},
"pullreq": {
"approvals": {
"require_code_owners": true,
"require_latest_commit": true,
"require_minimum_count": 1,
"require_minimum_default_reviewer_count": 1,
"require_no_change_request": true
},
"comments": {
"require_resolve_all": true
},
"commits": {
"require_target_is_ancestor": true
},
"merge": {
"block": true,
"delete_branch": true,
"require_bypass_message": true,
"strategies_allowed": [
"fast-forward"
]
},
"merge_queue": {
"checks_concurrency": 1,
"group_size": 1,
"max_check_duration_seconds": 1,
"status_checks": {
"require_identifiers": [
"text"
]
}
},
"reviewers": {
"default_reviewer_ids": [
1
],
"default_user_group_reviewer_ids": [
1
],
"request_code_owners": true
},
"status_checks": {
"require_identifiers": [
"text"
]
}
}
},
"description": "text",
"identifier": "text",
"pattern": {
"default": true,
"exclude": [
"text"
],
"include": [
"text"
]
},
"repo_target": {
"exclude": {
"ids": [
1
],
"patterns": [
"text"
]
},
"include": {
"ids": [
1
],
"patterns": [
"text"
]
}
},
"repositories": {
"ANY_ADDITIONAL_PROPERTY": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
}
},
"scope": 1,
"state": "active",
"type": "branch",
"updated": 1,
"user_groups": {
"ANY_ADDITIONAL_PROPERTY": {
"description": "text",
"id": 1,
"identifier": "text",
"name": "text",
"scope": 1
}
},
"users": {
"ANY_ADDITIONAL_PROPERTY": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
}
}
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
No Content
No content
Unauthorized
Forbidden
Not Found
Internal Server Error
DELETE /code/api/v1/repos/{repo_identifier}/rules/{rule_identifier}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
No content
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
Unauthorized
Forbidden
Not Found
Internal Server Error
PATCH /code/api/v1/repos/{repo_identifier}/rules/{rule_identifier}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 1108
{
"definition": {
"bypass": {
"repo_owners": true,
"user_group_ids": [
1
],
"user_ids": [
1
]
},
"lifecycle": {
"create_forbidden": true,
"delete_forbidden": true,
"update_forbidden": true,
"update_force_forbidden": true
},
"pullreq": {
"approvals": {
"require_code_owners": true,
"require_latest_commit": true,
"require_minimum_count": 1,
"require_minimum_default_reviewer_count": 1,
"require_no_change_request": true
},
"comments": {
"require_resolve_all": true
},
"commits": {
"require_target_is_ancestor": true
},
"merge": {
"block": true,
"delete_branch": true,
"require_bypass_message": true,
"strategies_allowed": [
"fast-forward"
]
},
"merge_queue": {
"checks_concurrency": 1,
"group_size": 1,
"max_check_duration_seconds": 1,
"status_checks": {
"require_identifiers": [
"text"
]
}
},
"reviewers": {
"default_reviewer_ids": [
1
],
"default_user_group_reviewer_ids": [
1
],
"request_code_owners": true
},
"status_checks": {
"require_identifiers": [
"text"
]
}
}
},
"description": "text",
"identifier": "text",
"pattern": {
"default": true,
"exclude": [
"text"
],
"include": [
"text"
]
},
"repo_target": {
"exclude": {
"ids": [
1
],
"patterns": [
"text"
]
},
"include": {
"ids": [
1
],
"patterns": [
"text"
]
}
},
"state": "active",
"type": "branch"
}{
"created": 1,
"created_by": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
},
"definition": {
"bypass": {
"repo_owners": true,
"user_group_ids": [
1
],
"user_ids": [
1
]
},
"lifecycle": {
"create_forbidden": true,
"delete_forbidden": true,
"update_forbidden": true,
"update_force_forbidden": true
},
"pullreq": {
"approvals": {
"require_code_owners": true,
"require_latest_commit": true,
"require_minimum_count": 1,
"require_minimum_default_reviewer_count": 1,
"require_no_change_request": true
},
"comments": {
"require_resolve_all": true
},
"commits": {
"require_target_is_ancestor": true
},
"merge": {
"block": true,
"delete_branch": true,
"require_bypass_message": true,
"strategies_allowed": [
"fast-forward"
]
},
"merge_queue": {
"checks_concurrency": 1,
"group_size": 1,
"max_check_duration_seconds": 1,
"status_checks": {
"require_identifiers": [
"text"
]
}
},
"reviewers": {
"default_reviewer_ids": [
1
],
"default_user_group_reviewer_ids": [
1
],
"request_code_owners": true
},
"status_checks": {
"require_identifiers": [
"text"
]
}
}
},
"description": "text",
"identifier": "text",
"pattern": {
"default": true,
"exclude": [
"text"
],
"include": [
"text"
]
},
"repo_target": {
"exclude": {
"ids": [
1
],
"patterns": [
"text"
]
},
"include": {
"ids": [
1
],
"patterns": [
"text"
]
}
},
"repositories": {
"ANY_ADDITIONAL_PROPERTY": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
}
},
"scope": 1,
"state": "active",
"type": "branch",
"updated": 1,
"user_groups": {
"ANY_ADDITIONAL_PROPERTY": {
"description": "text",
"id": 1,
"identifier": "text",
"name": "text",
"scope": 1
}
},
"users": {
"ANY_ADDITIONAL_PROPERTY": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
}
}
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The substring by which the repository protection rules are filtered.
The order of the output.
ascPossible values: The field by which the protection rules are sorted.
created_atPossible values: The page to return.
1The maximum number of results to return.
30The result should inherit entities from parent spaces.
falseOK
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/rules?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"created": 1,
"created_by": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
},
"definition": {
"bypass": {
"repo_owners": true,
"user_group_ids": [
1
],
"user_ids": [
1
]
},
"lifecycle": {
"create_forbidden": true,
"delete_forbidden": true,
"update_forbidden": true,
"update_force_forbidden": true
},
"pullreq": {
"approvals": {
"require_code_owners": true,
"require_latest_commit": true,
"require_minimum_count": 1,
"require_minimum_default_reviewer_count": 1,
"require_no_change_request": true
},
"comments": {
"require_resolve_all": true
},
"commits": {
"require_target_is_ancestor": true
},
"merge": {
"block": true,
"delete_branch": true,
"require_bypass_message": true,
"strategies_allowed": [
"fast-forward"
]
},
"merge_queue": {
"checks_concurrency": 1,
"group_size": 1,
"max_check_duration_seconds": 1,
"status_checks": {
"require_identifiers": [
"text"
]
}
},
"reviewers": {
"default_reviewer_ids": [
1
],
"default_user_group_reviewer_ids": [
1
],
"request_code_owners": true
},
"status_checks": {
"require_identifiers": [
"text"
]
}
}
},
"description": "text",
"identifier": "text",
"pattern": {
"default": true,
"exclude": [
"text"
],
"include": [
"text"
]
},
"repo_target": {
"exclude": {
"ids": [
1
],
"patterns": [
"text"
]
},
"include": {
"ids": [
1
],
"patterns": [
"text"
]
}
},
"repositories": {
"ANY_ADDITIONAL_PROPERTY": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
}
},
"scope": 1,
"state": "active",
"type": "branch",
"updated": 1,
"user_groups": {
"ANY_ADDITIONAL_PROPERTY": {
"description": "text",
"id": 1,
"identifier": "text",
"name": "text",
"scope": 1
}
},
"users": {
"ANY_ADDITIONAL_PROPERTY": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
}
}
}
]Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Created
Unauthorized
Forbidden
Not Found
Internal Server Error
POST /code/api/v1/rules?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 1108
{
"definition": {
"bypass": {
"repo_owners": true,
"user_group_ids": [
1
],
"user_ids": [
1
]
},
"lifecycle": {
"create_forbidden": true,
"delete_forbidden": true,
"update_forbidden": true,
"update_force_forbidden": true
},
"pullreq": {
"approvals": {
"require_code_owners": true,
"require_latest_commit": true,
"require_minimum_count": 1,
"require_minimum_default_reviewer_count": 1,
"require_no_change_request": true
},
"comments": {
"require_resolve_all": true
},
"commits": {
"require_target_is_ancestor": true
},
"merge": {
"block": true,
"delete_branch": true,
"require_bypass_message": true,
"strategies_allowed": [
"fast-forward"
]
},
"merge_queue": {
"checks_concurrency": 1,
"group_size": 1,
"max_check_duration_seconds": 1,
"status_checks": {
"require_identifiers": [
"text"
]
}
},
"reviewers": {
"default_reviewer_ids": [
1
],
"default_user_group_reviewer_ids": [
1
],
"request_code_owners": true
},
"status_checks": {
"require_identifiers": [
"text"
]
}
}
},
"description": "text",
"identifier": "text",
"pattern": {
"default": true,
"exclude": [
"text"
],
"include": [
"text"
]
},
"repo_target": {
"exclude": {
"ids": [
1
],
"patterns": [
"text"
]
},
"include": {
"ids": [
1
],
"patterns": [
"text"
]
}
},
"state": "active",
"type": "branch"
}{
"created": 1,
"created_by": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
},
"definition": {
"bypass": {
"repo_owners": true,
"user_group_ids": [
1
],
"user_ids": [
1
]
},
"lifecycle": {
"create_forbidden": true,
"delete_forbidden": true,
"update_forbidden": true,
"update_force_forbidden": true
},
"pullreq": {
"approvals": {
"require_code_owners": true,
"require_latest_commit": true,
"require_minimum_count": 1,
"require_minimum_default_reviewer_count": 1,
"require_no_change_request": true
},
"comments": {
"require_resolve_all": true
},
"commits": {
"require_target_is_ancestor": true
},
"merge": {
"block": true,
"delete_branch": true,
"require_bypass_message": true,
"strategies_allowed": [
"fast-forward"
]
},
"merge_queue": {
"checks_concurrency": 1,
"group_size": 1,
"max_check_duration_seconds": 1,
"status_checks": {
"require_identifiers": [
"text"
]
}
},
"reviewers": {
"default_reviewer_ids": [
1
],
"default_user_group_reviewer_ids": [
1
],
"request_code_owners": true
},
"status_checks": {
"require_identifiers": [
"text"
]
}
}
},
"description": "text",
"identifier": "text",
"pattern": {
"default": true,
"exclude": [
"text"
],
"include": [
"text"
]
},
"repo_target": {
"exclude": {
"ids": [
1
],
"patterns": [
"text"
]
},
"include": {
"ids": [
1
],
"patterns": [
"text"
]
}
},
"repositories": {
"ANY_ADDITIONAL_PROPERTY": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
}
},
"scope": 1,
"state": "active",
"type": "branch",
"updated": 1,
"user_groups": {
"ANY_ADDITIONAL_PROPERTY": {
"description": "text",
"id": 1,
"identifier": "text",
"name": "text",
"scope": 1
}
},
"users": {
"ANY_ADDITIONAL_PROPERTY": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
}
}
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/rules/{rule_identifier}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
"created": 1,
"created_by": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
},
"definition": {
"bypass": {
"repo_owners": true,
"user_group_ids": [
1
],
"user_ids": [
1
]
},
"lifecycle": {
"create_forbidden": true,
"delete_forbidden": true,
"update_forbidden": true,
"update_force_forbidden": true
},
"pullreq": {
"approvals": {
"require_code_owners": true,
"require_latest_commit": true,
"require_minimum_count": 1,
"require_minimum_default_reviewer_count": 1,
"require_no_change_request": true
},
"comments": {
"require_resolve_all": true
},
"commits": {
"require_target_is_ancestor": true
},
"merge": {
"block": true,
"delete_branch": true,
"require_bypass_message": true,
"strategies_allowed": [
"fast-forward"
]
},
"merge_queue": {
"checks_concurrency": 1,
"group_size": 1,
"max_check_duration_seconds": 1,
"status_checks": {
"require_identifiers": [
"text"
]
}
},
"reviewers": {
"default_reviewer_ids": [
1
],
"default_user_group_reviewer_ids": [
1
],
"request_code_owners": true
},
"status_checks": {
"require_identifiers": [
"text"
]
}
}
},
"description": "text",
"identifier": "text",
"pattern": {
"default": true,
"exclude": [
"text"
],
"include": [
"text"
]
},
"repo_target": {
"exclude": {
"ids": [
1
],
"patterns": [
"text"
]
},
"include": {
"ids": [
1
],
"patterns": [
"text"
]
}
},
"repositories": {
"ANY_ADDITIONAL_PROPERTY": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
}
},
"scope": 1,
"state": "active",
"type": "branch",
"updated": 1,
"user_groups": {
"ANY_ADDITIONAL_PROPERTY": {
"description": "text",
"id": 1,
"identifier": "text",
"name": "text",
"scope": 1
}
},
"users": {
"ANY_ADDITIONAL_PROPERTY": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
}
}
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
No Content
No content
Unauthorized
Forbidden
Not Found
Internal Server Error
DELETE /code/api/v1/rules/{rule_identifier}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
No content
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
Unauthorized
Forbidden
Not Found
Internal Server Error
PATCH /code/api/v1/rules/{rule_identifier}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 1108
{
"definition": {
"bypass": {
"repo_owners": true,
"user_group_ids": [
1
],
"user_ids": [
1
]
},
"lifecycle": {
"create_forbidden": true,
"delete_forbidden": true,
"update_forbidden": true,
"update_force_forbidden": true
},
"pullreq": {
"approvals": {
"require_code_owners": true,
"require_latest_commit": true,
"require_minimum_count": 1,
"require_minimum_default_reviewer_count": 1,
"require_no_change_request": true
},
"comments": {
"require_resolve_all": true
},
"commits": {
"require_target_is_ancestor": true
},
"merge": {
"block": true,
"delete_branch": true,
"require_bypass_message": true,
"strategies_allowed": [
"fast-forward"
]
},
"merge_queue": {
"checks_concurrency": 1,
"group_size": 1,
"max_check_duration_seconds": 1,
"status_checks": {
"require_identifiers": [
"text"
]
}
},
"reviewers": {
"default_reviewer_ids": [
1
],
"default_user_group_reviewer_ids": [
1
],
"request_code_owners": true
},
"status_checks": {
"require_identifiers": [
"text"
]
}
}
},
"description": "text",
"identifier": "text",
"pattern": {
"default": true,
"exclude": [
"text"
],
"include": [
"text"
]
},
"repo_target": {
"exclude": {
"ids": [
1
],
"patterns": [
"text"
]
},
"include": {
"ids": [
1
],
"patterns": [
"text"
]
}
},
"state": "active",
"type": "branch"
}{
"created": 1,
"created_by": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
},
"definition": {
"bypass": {
"repo_owners": true,
"user_group_ids": [
1
],
"user_ids": [
1
]
},
"lifecycle": {
"create_forbidden": true,
"delete_forbidden": true,
"update_forbidden": true,
"update_force_forbidden": true
},
"pullreq": {
"approvals": {
"require_code_owners": true,
"require_latest_commit": true,
"require_minimum_count": 1,
"require_minimum_default_reviewer_count": 1,
"require_no_change_request": true
},
"comments": {
"require_resolve_all": true
},
"commits": {
"require_target_is_ancestor": true
},
"merge": {
"block": true,
"delete_branch": true,
"require_bypass_message": true,
"strategies_allowed": [
"fast-forward"
]
},
"merge_queue": {
"checks_concurrency": 1,
"group_size": 1,
"max_check_duration_seconds": 1,
"status_checks": {
"require_identifiers": [
"text"
]
}
},
"reviewers": {
"default_reviewer_ids": [
1
],
"default_user_group_reviewer_ids": [
1
],
"request_code_owners": true
},
"status_checks": {
"require_identifiers": [
"text"
]
}
}
},
"description": "text",
"identifier": "text",
"pattern": {
"default": true,
"exclude": [
"text"
],
"include": [
"text"
]
},
"repo_target": {
"exclude": {
"ids": [
1
],
"patterns": [
"text"
]
},
"include": {
"ids": [
1
],
"patterns": [
"text"
]
}
},
"repositories": {
"ANY_ADDITIONAL_PROPERTY": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
}
},
"scope": 1,
"state": "active",
"type": "branch",
"updated": 1,
"user_groups": {
"ANY_ADDITIONAL_PROPERTY": {
"description": "text",
"id": 1,
"identifier": "text",
"name": "text",
"scope": 1
}
},
"users": {
"ANY_ADDITIONAL_PROPERTY": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
}
}
}Last updated
Was this helpful?