Skip to content

Commit

Permalink
Count commits, see #287
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Nov 11, 2022
1 parent 0f50dcf commit 6b8f409
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion js/scripts/compare-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const dependencies2 = loadDependenciesForProject( project2 );
const allKeys = [ ...Object.keys( dependencies1 ), ...Object.keys( dependencies2 ) ].filter( repo => repo !== 'comment' );

const issues = new Set();
let commitCount = 0;

// Iterate over the keys they have in common
allKeys.forEach( repo => {
Expand Down Expand Up @@ -94,6 +95,10 @@ allKeys.forEach( repo => {

issues.add( url );
}

if ( line.trim().length > 0 ) {
commitCount++;
}
} );
}
}
Expand All @@ -105,4 +110,6 @@ allKeys.forEach( repo => {
} );

console.log( 'Discovered issues' );
console.log( Array.from( issues ).sort().join( '\n' ) );
console.log( Array.from( issues ).sort().join( '\n' ) );

console.log( `${commitCount} commits referenced ${issues.size} separate issues` );

0 comments on commit 6b8f409

Please sign in to comment.