diff --git a/__tests__/apiwrapper.js b/__tests__/apiwrapper.js index 44fc3b6..cee57cc 100644 --- a/__tests__/apiwrapper.js +++ b/__tests__/apiwrapper.js @@ -1,12 +1,12 @@ import { Octokit } from '@octokit/core'; // eslint-disable-line import/no-extraneous-dependencies -import { paginateGraphql } from '@octokit/plugin-paginate-graphql'; +import { paginateGraphQL } from '@octokit/plugin-paginate-graphql'; import { graphql, HttpResponse } from 'msw'; // https://mswjs.io/docs/getting-started/mocks/graphql-api import { setupServer } from 'msw/node'; // https://mswjs.io/docs/getting-started/integrate/node import { ApiWrapper } from '../apiwrapper'; -const GraphQlOctokit = Octokit.plugin(paginateGraphql); +const GraphQlOctokit = Octokit.plugin(paginateGraphQL); const octokit = new GraphQlOctokit({ auth: 'fake-token-value' }); // don't use default GITHUB_TOKEN token from env const apiWrapper = new ApiWrapper({ octokit }); diff --git a/__tests__/integration.js b/__tests__/integration.js index 63f742d..0c47ce6 100644 --- a/__tests__/integration.js +++ b/__tests__/integration.js @@ -1,5 +1,5 @@ import { Octokit } from '@octokit/core'; // eslint-disable-line import/no-extraneous-dependencies -import { paginateGraphql } from '@octokit/plugin-paginate-graphql'; +import { paginateGraphQL } from '@octokit/plugin-paginate-graphql'; import { graphql, HttpResponse } from 'msw'; // https://mswjs.io/docs/getting-started/mocks/graphql-api import { setupServer } from 'msw/node'; // https://mswjs.io/docs/getting-started/integrate/node @@ -7,7 +7,7 @@ import { setupServer } from 'msw/node'; // https://mswjs.io/docs/getting-started import { ApiWrapper } from '../apiwrapper'; import { RepositoryProjectsManager } from '../projects.js'; // eslint-disable-line import/extensions -const GraphQlOctokit = Octokit.plugin(paginateGraphql); +const GraphQlOctokit = Octokit.plugin(paginateGraphQL); const octokit = new GraphQlOctokit({ auth: 'fake-token-value' }); // don't use default GITHUB_TOKEN token from env const apiWrapper = new ApiWrapper({ octokit }); diff --git a/index.js b/index.js index ecc5a2f..d221830 100644 --- a/index.js +++ b/index.js @@ -2,12 +2,12 @@ import core from '@actions/core'; import github from '@actions/github'; import { Octokit } from '@octokit/core'; // eslint-disable-line import/no-extraneous-dependencies -import { paginateGraphql } from '@octokit/plugin-paginate-graphql'; +import { paginateGraphQL } from '@octokit/plugin-paginate-graphql'; import { ApiWrapper } from './apiwrapper.js'; // eslint-disable-line import/extensions import { RepositoryProjectsManager } from './projects.js'; // eslint-disable-line import/extensions -const GraphQlOctokit = Octokit.plugin(paginateGraphql); +const GraphQlOctokit = Octokit.plugin(paginateGraphQL); // https://github.com/octokit/authentication-strategies.js // example: https://github.com/octokit/graphql.js/issues/61#issuecomment-542399763