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 a6367f2 commit a242039
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion analyze/processPRs.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ async function processPRs() {

mergedPRs.forEach((pr) => {
const { number, user, labels } = pr;
console.log(pr)
const author = user.login;

if (!authorData[author]) {
Expand Down Expand Up @@ -83,7 +84,7 @@ async function commitChangesAndCreatePR() {
await octokit.repos.createOrUpdateFileContents({
owner,
repo,
path: "author.json",
path: "analyze/author.json",
branch: branchName,
message: 'Updated author.json', // Commit message
content: Buffer.from(fileContent).toString('base64'),
Expand Down

0 comments on commit a242039

Please sign in to comment.