chore: split schema update script

This commit is contained in:
Rongjian Zhang 2022-10-01 13:30:34 +08:00
parent 89966a95e6
commit ba34337b07
4 changed files with 53912 additions and 4 deletions

1
.gitignore vendored
View File

@ -48,4 +48,3 @@ app.*.map.json
*.gql.dart
*.g.dart
schema.graphql

53908
lib/gql_github/schema.graphql Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,3 @@
#!/bin/bash
# https://docs.github.com/en/graphql/overview/public-schema
curl -o lib/gql_github/schema.graphql https://docs.github.com/public/schema.docs.graphql
flutter pub run build_runner watch --delete-conflicting-outputs

4
scripts/update-schema.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# https://docs.github.com/en/graphql/overview/public-schema
curl -o lib/gql_github/schema.graphql https://docs.github.com/public/schema.docs.graphql