diff --git a/.github/branch-protection/dev.json b/.github/branch-protection/dev.json new file mode 100644 index 0000000..6557961 --- /dev/null +++ b/.github/branch-protection/dev.json @@ -0,0 +1,15 @@ +{ + "required_status_checks": { + "strict": true, + "checks": [ + { "context": "Qualité (lint, format, tests)", "app_id": 15368 } + ] + }, + "enforce_admins": true, + "required_pull_request_reviews": null, + "restrictions": null, + "required_linear_history": false, + "allow_force_pushes": false, + "allow_deletions": false, + "required_conversation_resolution": false +} diff --git a/.github/branch-protection/main.json b/.github/branch-protection/main.json new file mode 100644 index 0000000..cb37ce0 --- /dev/null +++ b/.github/branch-protection/main.json @@ -0,0 +1,20 @@ +{ + "required_status_checks": { + "strict": false, + "checks": [ + { "context": "Garde : PR vers main doit venir de dev", "app_id": 15368 }, + { "context": "Qualité (lint, format, tests)", "app_id": 15368 } + ] + }, + "enforce_admins": true, + "required_pull_request_reviews": { + "dismiss_stale_reviews": false, + "require_code_owner_reviews": false, + "required_approving_review_count": 0 + }, + "restrictions": null, + "required_linear_history": false, + "allow_force_pushes": false, + "allow_deletions": false, + "required_conversation_resolution": false +}