diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5d3b5355c21594d60cbfd09fed6257c1c308f709..cf9bf12f1ae941792151ac6f02b12c521e866003 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,15 @@ include:
   - project: funkwhale/ci
     file: /templates/pre-commit.yml
 
+workflow:
+  rules:
+    # Run for any event on the default branch in the funkwhale namespace
+    - if: >
+        $CI_PROJECT_NAMESPACE == "funkwhale" &&
+        $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
+    # Run for merge requests
+    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
+
 stages:
   - lint
   - test