Created
February 28, 2025 14:45
-
-
Save Neodevils/bb2903ccc27070e76746ff1ade495595 to your computer and use it in GitHub Desktop.
My branch & tag rules.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 3843056, | |
"name": "Branching Rules", | |
"target": "branch", | |
"source_type": "Repository", | |
"source": "minesa-time/kaeru", | |
"enforcement": "active", | |
"conditions": { | |
"ref_name": { | |
"exclude": [ | |
"refs/heads/feature/*", | |
"refs/heads/bugfix/*", | |
"refs/heads/experiment/*" | |
], | |
"include": [ | |
"~DEFAULT_BRANCH", | |
"refs/heads/dev", | |
"refs/heads/release/*" | |
] | |
} | |
}, | |
"rules": [ | |
{ | |
"type": "deletion" | |
}, | |
{ | |
"type": "non_fast_forward" | |
}, | |
{ | |
"type": "update" | |
}, | |
{ | |
"type": "pull_request", | |
"parameters": { | |
"required_approving_review_count": 1, | |
"dismiss_stale_reviews_on_push": true, | |
"require_code_owner_review": true, | |
"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": null, | |
"actor_type": "OrganizationAdmin", | |
"bypass_mode": "always" | |
}, | |
{ | |
"actor_id": 5, | |
"actor_type": "RepositoryRole", | |
"bypass_mode": "always" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 3843057, | |
"name": "Tag Rules", | |
"target": "tag", | |
"source_type": "Repository", | |
"source": "minesa-time/kaeru", | |
"enforcement": "active", | |
"conditions": { | |
"ref_name": { | |
"exclude": [], | |
"include": [ | |
"~ALL" | |
] | |
} | |
}, | |
"rules": [ | |
{ | |
"type": "deletion" | |
}, | |
{ | |
"type": "non_fast_forward" | |
} | |
], | |
"bypass_actors": [ | |
{ | |
"actor_id": null, | |
"actor_type": "OrganizationAdmin", | |
"bypass_mode": "always" | |
}, | |
{ | |
"actor_id": 5, | |
"actor_type": "RepositoryRole", | |
"bypass_mode": "always" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment