Comments (3)
One solution I can think of is to just make the graphql queries seperately from gatsby and then once i had the repositories list, I can then get contributors and write the result to a json file. And use the json file in the build process.
This should also allow me to add dummy data, as another issue I have right now is with other people contributing to the code. They may not have an api key with same access level, resulting in errors on the queries and also I cannot test pull requests with a test build process as the repo secrets are not made available to PRs
from gatsby-source-github-api.
This is what I ended up doing, fetching said data to json at vuild time and loading that.
Thanks!
from gatsby-source-github-api.
It seems you are right.
It would be outside of the scope of this project, but if it were me, i would just write a short bash script file that fetches this with the default REST api. Then I'd use jq to manipulate the result and write it to a JSON file.
you could probably do it in a git hook.
Let me know what you end up doing! :D
from gatsby-source-github-api.
Related Issues (15)
- Media files for this repository
- Warning during node transformation when using gatsby-transformer-json HOT 2
- cannot query languages HOT 1
- GitHub Url Docs HOT 2
- Errors handling HOT 3
- Unknown type "Blob" HOT 12
- Cant get gatsby-source-github-api to load properly HOT 5
- Gatsby v3.x compatibility HOT 5
- Breaks on Gatsby v3 because npm package needs published with new version HOT 2
- Cannot use variables in certain queries HOT 2
- Multiple queries HOT 2
- Limitations HOT 3
- Multiple queries? HOT 1
- Using this with markdown remark HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-source-github-api.