developers/gen-schema.sh

12 lines
300 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
poetry run python3 -m sgqlc.introspection \
--exclude-deprecated \
--exclude-description \
-H "Authorization: bearer $(cat GITHUB_TOKEN)" \
https://api.github.com/graphql \
github_schema.json
poetry run sgqlc-codegen schema github_schema.json github_schema.py