Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save webknjaz/4c5424b6edbf873c89fc78063480a813 to your computer and use it in GitHub Desktop.

Select an option

Save webknjaz/4c5424b6edbf873c89fc78063480a813 to your computer and use it in GitHub Desktop.
downloads rulesets
{
"id": 1832759,
"name": "[incompatible with Merge Queues] Require checks to pass against the main development branch: RTD status",
"target": "branch",
"source_type": "Repository",
"source": "ansible/awx-plugins",
"enforcement": "disabled",
"conditions": {
"ref_name": {
"exclude": [],
"include": [
"~DEFAULT_BRANCH"
]
}
},
"rules": [
{
"type": "required_status_checks",
"parameters": {
"strict_required_status_checks_policy": false,
"do_not_enforce_on_create": false,
"required_status_checks": [
{
"context": "docs/readthedocs.org:awx-plugins-core",
"integration_id": null
}
]
}
}
],
"bypass_actors": []
}
{
"id": 1519582,
"name": "Frozen skeleton and awx-migrated filtered branch",
"target": "branch",
"source_type": "Repository",
"source": "ansible/awx-plugins",
"enforcement": "active",
"conditions": {
"ref_name": {
"exclude": [],
"include": [
"refs/heads/skeleton",
"refs/heads/features/filtered-awx-history"
]
}
},
"rules": [
{
"type": "deletion"
},
{
"type": "non_fast_forward"
},
{
"type": "update"
},
{
"type": "creation"
},
{
"type": "required_status_checks",
"parameters": {
"strict_required_status_checks_policy": true,
"do_not_enforce_on_create": false,
"required_status_checks": [
{
"context": "check",
"integration_id": 15368
}
]
}
},
{
"type": "pull_request",
"parameters": {
"required_approving_review_count": 10,
"dismiss_stale_reviews_on_push": true,
"require_code_owner_review": true,
"require_last_push_approval": true,
"required_review_thread_resolution": true
}
},
{
"type": "required_signatures"
},
{
"type": "required_deployments",
"parameters": {
"required_deployment_environments": [
"pip-tools"
]
}
},
{
"type": "required_linear_history"
},
{
"type": "merge_queue",
"parameters": {
"merge_method": "MERGE",
"max_entries_to_build": 5,
"min_entries_to_merge": 1,
"max_entries_to_merge": 5,
"min_entries_to_merge_wait_minutes": 5,
"grouping_strategy": "ALLGREEN",
"check_response_timeout_minutes": 60
}
},
{
"type": "code_scanning",
"parameters": {
"code_scanning_tools": [
{
"tool": "CodeQL",
"security_alerts_threshold": "high_or_higher",
"alerts_threshold": "errors"
}
]
}
}
],
"bypass_actors": []
}
{
"id": 1793749,
"name": "Protect the main development branch against forbidden manipulations",
"target": "branch",
"source_type": "Repository",
"source": "ansible/awx-plugins",
"enforcement": "active",
"conditions": {
"ref_name": {
"exclude": [],
"include": [
"~DEFAULT_BRANCH"
]
}
},
"rules": [
{
"type": "deletion"
},
{
"type": "non_fast_forward"
},
{
"type": "creation"
}
],
"bypass_actors": [
{
"actor_id": 5,
"actor_type": "RepositoryRole",
"bypass_mode": "always"
}
]
}
{
"id": 7243951,
"name": "Require approved and completed PRs to get code into the main development branch",
"target": "branch",
"source_type": "Repository",
"source": "re-actors/alls-green",
"enforcement": "active",
"conditions": {
"ref_name": {
"exclude": [],
"include": [
"~DEFAULT_BRANCH"
]
}
},
"rules": [
{
"type": "pull_request",
"parameters": {
"required_approving_review_count": 1,
"dismiss_stale_reviews_on_push": false,
"require_code_owner_review": false,
"require_last_push_approval": true,
"required_review_thread_resolution": true,
"automatic_copilot_code_review_enabled": true,
"allowed_merge_methods": [
"merge",
"squash",
"rebase"
]
}
}
],
"bypass_actors": [
{
"actor_id": 5,
"actor_type": "RepositoryRole",
"bypass_mode": "always"
}
]
}
{
"id": 7541997,
"name": "Require checks to pass against the main development branch: every PR must contain a towncrier change log fragment",
"target": "branch",
"source_type": "Repository",
"source": "ansible/pylibssh",
"enforcement": "active",
"conditions": {
"ref_name": {
"exclude": [],
"include": [
"~DEFAULT_BRANCH"
]
}
},
"rules": [
{
"type": "required_status_checks",
"parameters": {
"strict_required_status_checks_policy": false,
"do_not_enforce_on_create": false,
"required_status_checks": [
{
"context": "Timeline protection",
"integration_id": 34011
}
]
}
}
],
"bypass_actors": [
{
"actor_id": 5,
"actor_type": "RepositoryRole",
"bypass_mode": "always"
}
]
}
{
"id": 7542047,
"name": "Require checks to pass against the main development branch: Packit status",
"target": "branch",
"source_type": "Repository",
"source": "ansible/pylibssh",
"enforcement": "active",
"conditions": {
"ref_name": {
"exclude": [],
"include": [
"~DEFAULT_BRANCH"
]
}
},
"rules": [
{
"type": "required_status_checks",
"parameters": {
"strict_required_status_checks_policy": false,
"do_not_enforce_on_create": false,
"required_status_checks": [
{
"context": "testing-farm:fedora-41-x86_64",
"integration_id": 29076
},
{
"context": "testing-farm:fedora-42-x86_64",
"integration_id": 29076
},
{
"context": "testing-farm:fedora-43-x86_64",
"integration_id": 29076
}
]
}
}
],
"bypass_actors": [
{
"actor_id": 5,
"actor_type": "RepositoryRole",
"bypass_mode": "always"
}
]
}
{
"id": 1793739,
"name": "Require checks to pass against the main development branch: Codecov status",
"target": "branch",
"source_type": "Repository",
"source": "ansible/awx-plugins",
"enforcement": "active",
"conditions": {
"ref_name": {
"exclude": [],
"include": [
"~DEFAULT_BRANCH"
]
}
},
"rules": [
{
"type": "required_status_checks",
"parameters": {
"strict_required_status_checks_policy": false,
"do_not_enforce_on_create": false,
"required_status_checks": [
{
"context": "codecov/patch",
"integration_id": 254
},
{
"context": "codecov/patch/pytest",
"integration_id": 254
},
{
"context": "codecov/patch/typing",
"integration_id": 254
},
{
"context": "codecov/project/tests",
"integration_id": 254
}
]
}
}
],
"bypass_actors": [
{
"actor_id": 5,
"actor_type": "RepositoryRole",
"bypass_mode": "always"
}
]
}
{
"id": 1793730,
"name": "Require checks to pass against the main development branch: GitHub Actions CI/CD status",
"target": "branch",
"source_type": "Repository",
"source": "ansible/awx-plugins",
"enforcement": "active",
"conditions": {
"ref_name": {
"exclude": [],
"include": [
"~DEFAULT_BRANCH"
]
}
},
"rules": [
{
"type": "required_status_checks",
"parameters": {
"strict_required_status_checks_policy": false,
"do_not_enforce_on_create": false,
"required_status_checks": [
{
"context": "check",
"integration_id": 15368
}
]
}
}
],
"bypass_actors": [
{
"actor_id": 5,
"actor_type": "RepositoryRole",
"bypass_mode": "always"
}
]
}
{
"id": 1793734,
"name": "Require checks to pass against the main development branch: pre-commit.ci status",
"target": "branch",
"source_type": "Repository",
"source": "ansible/awx-plugins",
"enforcement": "active",
"conditions": {
"ref_name": {
"exclude": [],
"include": [
"~DEFAULT_BRANCH"
]
}
},
"rules": [
{
"type": "required_status_checks",
"parameters": {
"strict_required_status_checks_policy": false,
"do_not_enforce_on_create": false,
"required_status_checks": [
{
"context": "pre-commit.ci - pr",
"integration_id": 68672
}
]
}
}
],
"bypass_actors": [
{
"actor_id": 5,
"actor_type": "RepositoryRole",
"bypass_mode": "always"
}
]
}
{
"id": 7244082,
"name": "Require incoming patches to go through Merge Queues on their way into the main development branch",
"target": "branch",
"source_type": "Repository",
"source": "re-actors/alls-green",
"enforcement": "active",
"conditions": {
"ref_name": {
"exclude": [],
"include": [
"~DEFAULT_BRANCH"
]
}
},
"rules": [
{
"type": "merge_queue",
"parameters": {
"merge_method": "MERGE",
"max_entries_to_build": 5,
"min_entries_to_merge": 2,
"max_entries_to_merge": 5,
"min_entries_to_merge_wait_minutes": 5,
"grouping_strategy": "HEADGREEN",
"check_response_timeout_minutes": 60
}
}
],
"bypass_actors": [
{
"actor_id": 5,
"actor_type": "RepositoryRole",
"bypass_mode": "always"
}
]
}
{
"id": 1594466,
"name": "The lock file update branch names must match the expectations",
"target": "branch",
"source_type": "Repository",
"source": "ansible/awx-plugins",
"enforcement": "active",
"conditions": {
"ref_name": {
"exclude": [],
"include": [
"refs/heads/maintenance/pip-tools-constraint-lockfiles",
"refs/heads/maintenance/pip-tools-constraint-lockfiles-*"
]
}
},
"rules": [
{
"type": "branch_name_pattern",
"parameters": {
"operator": "regex",
"pattern": "^maintenance/pip-tools-constraint-lockfiles(:?-[a-zA-Z0-9-]+)?$",
"negate": false,
"name": "Must follow the known pattern"
}
}
],
"bypass_actors": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment