Browse Source

Draft: Maintenance: Enable custom pre-push-hook.

Tobias Schäfer 1 year ago
parent
commit
ed07a38ea5
1 changed files with 6 additions and 0 deletions
  1. 6 0
      .overcommit.yml

+ 6 - 0
.overcommit.yml

@@ -65,6 +65,12 @@ PostRewrite:
 PrePush:
   ALL:
     enabled: false
+  CustomScript:
+    enabled: true
+    description: "Verify GraphQL introspection file is not empty."
+    required_executable: 'bash'
+    command: [ 'bash', '-c', 'test -s app/graphql/graphql_introspection.json' ]
+    on_warn: fail
 
 PreRebase:
   ALL: