Git Product home page Git Product logo

Comments (3)

Blakeinstein avatar Blakeinstein commented on June 1, 2024 2

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.

Blakeinstein avatar Blakeinstein commented on June 1, 2024 1

This is what I ended up doing, fetching said data to json at vuild time and loading that.
Thanks!

from gatsby-source-github-api.

ldd avatar ldd commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.