Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/environment/inventory.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require('fs-extra');
const path = require('path');
const { Octokit } = require('@octokit/rest');
//const { Octokit } = require('@octokit/rest');

Check failure on line 3 in lib/environment/inventory.js

View workflow job for this annotation

GitHub Actions / ui / Install and lint / Install and lint

Expected exception block, space or tab after '//' in comment

Check warning on line 3 in lib/environment/inventory.js

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove this commented out code.

See more on https://sonarcloud.io/project/issues?id=org.folio%3Astripes-cli&issues=AZ2QpQjQZst1sdfesYw-&open=AZ2QpQjQZst1sdfesYw-&pullRequest=399
Comment thread
EthanFreestone marked this conversation as resolved.
Outdated

const MODULE_CACHE_FILE = '/inventory.json';

Expand Down Expand Up @@ -32,7 +32,10 @@
}

async function fetchAndStoreModules() {
const { Octokit } = await import('@octokit/rest');

const octokit = new Octokit();

const repos = { apps: [], libs: [], other: [], platforms: [], plugins: [] };
const options = octokit.repos.listForOrg.endpoint.merge({ org: 'folio-org', type: 'public' });
const data = await octokit.paginate(options);
Expand Down
Loading