Run GraphQL docs rake task on changes

This commit makes pre-push hook run gitlab:graphql:check_docs rake task
to make sure that our GraphQL docs are up-to-date.

Changelog: changed
This commit is contained in:
Michał Zając 2021-10-22 15:17:09 +02:00
parent 3e2c29a9f9
commit 15ceccd30c
No known key found for this signature in database
GPG key ID: 371EE0B6B68ADA2E

View file

@ -33,6 +33,11 @@ pre-push:
files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD
glob: '*.rb'
run: REVEAL_RUBOCOP_TODO=0 bundle exec rubocop --parallel --force-exclusion {files}
graphql_docs:
tags: documentation
files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD
glob: '{app/graphql/**/*.rb,ee/app/graphql/**/*.rb}'
run: bundle exec rake gitlab:graphql:check_docs
vale: # Requires Vale: https://docs.gitlab.com/ee/development/documentation/#install-linters
tags: documentation style
files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD