Skip to content

Commit

Permalink
Update processPRs.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AvineshTripathi authored Nov 15, 2023
1 parent ad670bb commit 1ef3a80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions analyze/processPRs.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ async function processPRs() {
const fileContent = fs.readFileSync('author.json', 'utf8');
if (fileContent.trim() !== '') {
authorData = JSON.parse(fileContent);
} else {
console.log('author.json is empty or contains only whitespace.');
}
} else {
console.log('author.json does not exist.');
}

console.log('Existing author data:', authorData);

// Fetch merged PRs in the last week
const { data: mergedPRs } = await octokit.pulls.list({
owner: 'AvineshTripathi',
Expand Down

0 comments on commit 1ef3a80

Please sign in to comment.