Skip to content

Commit

Permalink
Incorporate spelling change of export
Browse files Browse the repository at this point in the history
See BREAKING CHANGE here:
octokit/plugin-paginate-graphql.js#175
  • Loading branch information
awendt committed Mar 14, 2024
1 parent b7de881 commit 3bf8a30
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions __tests__/apiwrapper.js
Original file line number Diff line number Diff line change
@@ -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
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 });
Expand Down
4 changes: 2 additions & 2 deletions __tests__/integration.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
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
import { setupServer } from 'msw/node'; // https://mswjs.io/docs/getting-started/integrate/node

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 });
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31011,7 +31011,7 @@ __nccwpck_require__.a(__webpack_module__, async (__webpack_handle_async_dependen
// eslint-disable-line import/extensions
// eslint-disable-line import/extensions

const GraphQlOctokit = _octokit_core__WEBPACK_IMPORTED_MODULE_2__.Octokit.plugin(_octokit_plugin_paginate_graphql__WEBPACK_IMPORTED_MODULE_3__.paginateGraphql);
const GraphQlOctokit = _octokit_core__WEBPACK_IMPORTED_MODULE_2__.Octokit.plugin(_octokit_plugin_paginate_graphql__WEBPACK_IMPORTED_MODULE_3__.paginateGraphQL);

// https://github.com/octokit/authentication-strategies.js
// example: https://github.com/octokit/graphql.js/issues/61#issuecomment-542399763
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3bf8a30

Please sign in to comment.