From 6d6be0b13b13e08c23c4735dd7cf047ef698f71b Mon Sep 17 00:00:00 2001 From: Ricardo Casares <84963+ricardocasares@users.noreply.github.com> Date: Wed, 6 Oct 2021 14:50:41 +0200 Subject: [PATCH] feat: create compass.yml (#191) --- .github/compass.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/compass.yml diff --git a/.github/compass.yml b/.github/compass.yml new file mode 100644 index 0000000..926bb21 --- /dev/null +++ b/.github/compass.yml @@ -0,0 +1,20 @@ +rules: + - name: grahpql recommendations + check: true + skip: true + match: ["**/*.graphql"] + comment: |- + :warning: + + You have modified the GraphQL schema. Please take this into account when modifying graphql schemas: + + **When deleting fields** + - [ ] Marked the field as `@deprecated` instead of deleting it + **When adding new types** + - [ ] You have checked there is no naming conflicts + - [ ] You are using `PascalCase` for naming the types + + :warning: + + When you modify the GraphQL schema, we automatically generate a client library. + If you have modified types or queries and you have not updated the code handling it, the build step will fail.