summaryrefslogtreecommitdiff
path: root/testing/admin-patches/must-add-FOO.patch
blob: 845f8644d3e47ef1910bbeb1e011d179c8c54f36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/rules/project.lace b/rules/project.lace
index aafa17c..388766a 100644
--- a/rules/project.lace
+++ b/rules/project.lace
@@ -43,6 +43,8 @@ include global:remoteconfigchecks op_is_config
 # Okay, if we're altering the admin ref, in we go
 include global:adminchecks is_admin_ref
 
+deny "Needs a FOO" op_is_normal ![treediff/added is FOO]
+
 # Now we're into branch operations.  Owners can do any normal operation
 # Normal ops are create/delete/fastforward on refs
 allow "Owners can create refs" op_is_normal is_owner