From 5eb40801bcf0ecc6631fa30a78a3ec4b3c95fa15 Mon Sep 17 00:00:00 2001 From: docker24003 <350526502+docker24003@users.noreply.github.com> Date: Tue, 3 Nov 2026 22:04:13 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20restaure=20les=20r=C3=A8gles=20de=20pr?= =?UTF-8?q?otection=20des=20branches=20versionn=C3=A9es=20sur=20dev=20(per?= =?UTF-8?q?dues=20=C3=A0=20l'extraction=20#111)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/branch-protection/dev.json | 15 +++++++++++++++ .github/branch-protection/main.json | 20 ++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .github/branch-protection/dev.json create mode 100644 .github/branch-protection/main.json 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 +}