From 478ffa59ce02eba18cf5297365db6ed6850ea7f7 Mon Sep 17 00:00:00 2001 From: william Date: Sat, 31 Oct 2026 10:59:20 +0100 Subject: [PATCH] fix(ci): remove redundant pull_request trigger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every push to develop (with the develop->main PR open) fired two identical CI runs: one from push, one from pull_request synchronize. Branch protection on main checks the exact commit SHA's status regardless of which event produced it, and the required check is literally named "CI / quality (push)" — so the push-triggered run alone already gates the merge. Dropping the pull_request trigger removes the duplicate without changing what's enforced. Co-Authored-By: Claude Sonnet 5 --- .gitea/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f9cf94e..d54e1e6 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,10 +1,13 @@ name: CI on: + # Un seul declenchement par commit : la protection de branche sur main verifie le statut du + # commit exact en tete de la PR (par SHA, peu importe l'evenement qui l'a produit), donc le + # trigger "push" suffit deja a bloquer la fusion tant que ce commit n'est pas vert. Le trigger + # "pull_request" produirait un second run redondant pour le meme commit (contexte de statut + # different, non verifie par la regle de protection "CI / quality (push)"). push: branches: [develop, main] - pull_request: - branches: [develop, main] jobs: quality: