How to use the @octokit/graphql function in @octokit/graphql

To help you get started, we’ve selected a few @octokit/graphql examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tesseralis / is-react-translated-yet / src / LangList.js View on Github external
async function getProgressList(langs) {
  // TODO this search requires looking for issues with the string "Translation Progress"
  // in the title. Maybe we should replace it with something more robust.
  const { search } = await graphql(
    `
      query($limit: Int!) {
        search(
          type: ISSUE
          query: "org:reactjs Translation Progress in:title"
          first: $limit
        ) {
          nodes {
            ... on Issue {
              title
              body
              createdAt
              lastEditedAt
              number
              repository {
                name
github vector-im / feature-dashboard / src / Github.js View on Github external
userContentEdits(first: 100) {
                                    edges {
                                        node {
                                            editedAt
                                            diff
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }`
        for (const repo of searchRepos) {
            let [owner, project] = repo.split('/');
            let issues = await graphql(query, {
                headers: {
                    authorization: "token f3b7ff551d31170bef759d1a6889ee62ce5b3a83"
                },
                owner: owner,
                project: project,
                labels: labels
            });
            console.log(issues);
        }
    }

@octokit/graphql

GitHub GraphQL API client for browsers and Node

MIT
Latest version published 25 days ago

Package Health Score

89 / 100
Full package analysis