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 94ae3da commit ff72f9b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions analyze/processPRs.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ async function processPRs() {
} catch (error) {
console.error('Error occurred:', error);
}

const f = fs.readFileSync("./author.json", 'utf8');
console.log(f)
}


Expand All @@ -77,11 +74,12 @@ async function commitChangesAndCreatePR() {
const owner = 'AvineshTripathi';
const repo = 'cred';
const branchName = 'new';

/home/runner/work/cred/cred/analyze
// Read the updated/created file content
const filePath = './author.json'; // Adjust as per your file path
const fileContent = fs.readFileSync(filePath, 'utf8');
const filePath = '/home/runner/work/cred/cred/analyze/author.json';

const fileContent = fs.readFileSync("./author.json", 'utf8');
console.log(f)
// Create or update the file in the repository
await octokit.repos.createOrUpdateFileContents({
owner,
Expand Down

0 comments on commit ff72f9b

Please sign in to comment.