Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimise rate limiting #10

Open
domoscargin opened this issue Dec 19, 2024 · 1 comment
Open

Minimise rate limiting #10

domoscargin opened this issue Dec 19, 2024 · 1 comment

Comments

@domoscargin
Copy link

Investigate whether we can:

  • reduce API calls
  • set concurrency limits
  • other
@domoscargin
Copy link
Author

We can investigate the graphQL API to collect more data in one call.

Something like:

  const query = `
    query($owner: String!, $name: String!) {
      repository(owner: $owner, name: $name) {
        createdAt
        pushedAt
        object(expression: "HEAD:package.json") {
          ... on Blob {
            text
          }
        }
        packageLock: object(expression: "HEAD:package-lock.json") {
          ... on Blob {
            text
          }
        }
        yarnLock: object(expression: "HEAD:yarn.lock") {
          ... on Blob {
            text
          }
        }
      }
    }
  `

would get the repo metadata, and the package file in one go. (I don't know GraphQL...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant