diff --git a/modules/openstack_project/files/zuul/layout-dev.yaml b/modules/openstack_project/files/zuul/layout-dev.yaml
index d55eab0821..a36673674c 100644
--- a/modules/openstack_project/files/zuul/layout-dev.yaml
+++ b/modules/openstack_project/files/zuul/layout-dev.yaml
@@ -52,7 +52,7 @@ pipelines:
     trigger:
       gerrit:
         - event: ref-updated
-          ref: ^(?!(devnull|refs/.*)).*$
+          ref: ^(?!refs/).*$
 
   - name: tag
     description: This pipeline runs jobs in response to any tag event.
diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml
index 81380f78a2..e106f1ecf1 100644
--- a/modules/openstack_project/files/zuul/layout.yaml
+++ b/modules/openstack_project/files/zuul/layout.yaml
@@ -89,7 +89,7 @@ pipelines:
     trigger:
       gerrit:
         - event: ref-updated
-          ref: ^(?!(devnull|refs/.*)).*$
+          ref: ^(?!refs/).*$
 
   - name: tag
     description: This pipeline runs jobs in response to any tag event.