From fb14296e249df0edd249a80f38c9c23c9bde8b52 Mon Sep 17 00:00:00 2001 From: Berkmann18 Date: Sun, 23 Jul 2023 16:04:20 +0100 Subject: [PATCH] refactor: clean-up --- src/cli.js | 20 -------------------- src/discover/index.js | 1 - 2 files changed, 21 deletions(-) diff --git a/src/cli.js b/src/cli.js index c811f25..87b5806 100755 --- a/src/cli.js +++ b/src/cli.js @@ -94,24 +94,6 @@ function startGeneration(argv) { async function addContribution(argv) { util.configFile.readConfig(argv.config) // ensure the config file exists const username = argv._[1] === undefined ? undefined : String(argv._[1]) - /* Example: (for clarity & debugging purposes) - { - _: [ 'add' ], - projectName: 'cz-cli', - projectOwner: 'commitizen', - repoType: 'github', - repoHost: 'https://github.com', - files: [ 'AC.md' ], - imageSize: 100, - commit: false, - commitConvention: 'angular', - contributors: [], - contributorsPerLine: 7, - 'contributors-per-line': 7, - config: '/mnt/c/Users/max/Projects/cz-cli/.all-contributorsrc', - '$0': '../all-contributors-cli/src/cli.js' - } - */ const contributions = argv._[2] // Add or update contributor in the config file @@ -124,7 +106,6 @@ async function addContribution(argv) { } argv.contributors = data.contributors - /* Example [ { login: 'Berkmann18', name: 'Maximilian Berkmann', @@ -291,7 +272,6 @@ async function fetchContributors(argv) { contributorsToAdd.push({login: usr.login, contributions: ['code']}) } }) - // TODO: Roll onto other contribution categories following https://www.draw.io/#G1uL9saIuZl3rj8sOo9xsLOPByAe28qhwa info('Finalising') diff --git a/src/discover/index.js b/src/discover/index.js index 0a8c547..b1ed4d1 100644 --- a/src/discover/index.js +++ b/src/discover/index.js @@ -18,7 +18,6 @@ const getContributors = async function (owner, name, cacheResult = false) { commits: true, } - // console.log('info provided:', options); if (cacheResult) { const nycOutputPath = join(__dirname, './nyc-output.json') if (existsSync(nycOutputPath)) {