Skip to content

ics-yamen/server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3,354 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEEP Server

Build Status Maintainability Test Coverage codecov

codecov

Git hooks for pre-commit

Add this to your .git/hooks/pre-commit to generate latest graphql schema before each commit.

#!/bin/sh

echo "pre-commit: Generating graphql schema."
if [ -z `docker ps -q --no-trunc | grep $(docker compose ps -q web)` ]; then
    docker compose run --rm web ./manage.py graphql_schema --out schema.graphql
else
    docker compose exec -T web ./manage.py graphql_schema --out schema.graphql
fi

FYI: If hooks aren't working https://stackoverflow.com/questions/49912695/git-pre-and-post-commit-hooks-not-running

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 22