fix: update path to work-logs

This commit is contained in:
Mrugesh Mohapatra
2018-11-13 02:36:17 +05:30
committed by mrugesh mohapatra
parent b87b7f5083
commit 40116cc7c8
3 changed files with 7 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ const prPropsToGet = ['number', 'labels', 'user'];
console.log(`# of PRs Retrieved: ${openPRs.length}`);
console.log(`PR Range: ${firstPR} - ${lastPR}`);
const now = formatDate(new Date(), 'YYYY-MM-DDTHHmmss');
const fileName = path.resolve(__dirname, `./data/openprs_${firstPR}-${lastPR}_${now}.json`);
const fileName = path.resolve(__dirname, `./work-logs/openprs_${firstPR}-${lastPR}_${now}.json`);
saveToFile(fileName, JSON.stringify(openPRs));
console.log(`Data saved in file: ${fileName}`);