diff --git a/scripts/stats/index.js b/scripts/stats/index.js index 9f1519de89..42a58486de 100644 --- a/scripts/stats/index.js +++ b/scripts/stats/index.js @@ -1,7 +1,7 @@ // @ts-check import { Octokit } from '@octokit/action'; import { execSync } from 'child_process'; -import { appendFileSync, readFileSync, writeFileSync } from 'fs'; +import { readFileSync, writeFileSync } from 'fs'; const octokit = new Octokit(); const owner = 'snowpackjs'; @@ -110,9 +110,12 @@ export async function run() { (await countCards(COLUMN_ID_RFCS_ACCEPTED)).length + (await countCards(COLUMN_ID_RFCS_PRIORITIZED)).length, // Date (ISO) `"${new Date().toISOString()}"`, - ]; + ].join(','); - appendFileSync('scripts/stats/stats.csv', entry.join(',') + '\n'); + const statCsv = readFileSync('scripts/stats/stats.csv', {encoding: 'utf-8'}); + const [statHeader, ...statItems] = statCsv.split('\n'); + const updatedStatCsv = [statHeader, entry, ...statItems].join('\n'); + writeFileSync('scripts/stats/stats.csv', updatedStatCsv); } run(); diff --git a/scripts/stats/stats.csv b/scripts/stats/stats.csv index 6fa4e1b984..46c29cafdb 100644 --- a/scripts/stats/stats.csv +++ b/scripts/stats/stats.csv @@ -1,71 +1,71 @@ Date,Commits (24hr),Issues (24hr),Issues:BUG (24hr),Issues:RFC (24hr),Issues:DOC (24hr),PRs (24hr),Open PRs,Open Issues,Bugs: Needs Triage,Bugs: Accepted,RFC: In Progress,RFC: Accepted,Date (ISO) -"Thursday, September 2, 2021",18,4,3,1,0,5,8,172,3,54,36,12,"2021-09-02T12:04:50.438Z" -"Friday, September 3, 2021",1,0,0,0,0,4,12,172,3,54,36,12,"2021-09-03T12:05:00.018Z" -"Saturday, September 4, 2021",9,4,2,2,0,6,11,176,5,54,38,12,"2021-09-04T12:05:49.637Z" -"Sunday, September 5, 2021",2,2,2,0,0,5,12,177,5,55,38,12,"2021-09-05T12:09:11.805Z" -"Monday, September 6, 2021",12,5,4,1,0,1,9,182,9,55,38,12,"2021-09-06T12:09:10.713Z" -"Tuesday, September 7, 2021",3,3,1,0,1,4,10,183,9,57,38,12,"2021-09-07T12:04:36.739Z" -"Wednesday, September 8, 2021",4,4,4,0,0,5,12,181,4,59,38,12,"2021-09-08T12:06:33.698Z" -"Thursday, September 9, 2021",5,2,1,1,0,1,10,181,6,52,39,12,"2021-09-09T12:07:12.662Z" -"Friday, September 10, 2021",6,0,0,0,0,4,11,181,6,52,39,12,"2021-09-10T12:04:51.984Z" -"Saturday, September 11, 2021",2,2,0,2,0,2,10,184,6,52,42,12,"2021-09-11T12:06:55.070Z" -"Sunday, September 12, 2021",0,2,1,1,0,0,10,186,7,52,43,12,"2021-09-12T12:08:11.836Z" -"Monday, September 13, 2021",1,1,1,0,0,0,10,187,8,52,43,12,"2021-09-13T12:08:08.013Z" -"Tuesday, September 14, 2021",7,4,4,0,0,7,12,191,12,52,43,12,"2021-09-14T12:07:03.530Z" -"Wednesday, September 15, 2021",16,4,2,1,0,6,4,194,12,54,41,14,"2021-09-15T12:05:55.219Z" -"Thursday, September 16, 2021",4,2,2,0,0,3,4,195,14,54,41,13,"2021-09-16T12:05:30.904Z" -"Friday, September 17, 2021",7,1,0,0,0,5,5,195,13,54,41,13,"2021-09-17T12:05:15.464Z" -"Saturday, September 18, 2021",6,1,1,0,0,3,6,193,14,53,40,13,"2021-09-18T12:07:37.446Z" -"Sunday, September 19, 2021",1,0,0,0,0,5,11,192,14,53,40,13,"2021-09-19T12:05:42.171Z" -"Monday, September 20, 2021",1,2,2,0,0,2,13,194,16,53,40,13,"2021-09-20T12:05:24.215Z" -"Tuesday, September 21, 2021",6,2,2,0,0,4,12,195,18,53,40,13,"2021-09-21T12:05:24.427Z" -"Wednesday, September 22, 2021",2,1,0,1,0,7,13,196,18,53,41,13,"2021-09-22T12:05:16.758Z" -"Thursday, September 23, 2021",1,1,1,0,0,2,13,187,16,52,41,12,"2021-09-23T12:05:25.606Z" -"Friday, September 24, 2021",9,3,2,0,0,7,11,190,18,52,41,12,"2021-09-24T12:05:17.886Z" -"Saturday, September 25, 2021",9,2,1,0,0,2,8,192,19,52,41,12,"2021-09-25T12:06:27.156Z" -"Sunday, September 26, 2021",1,5,4,0,1,4,11,197,23,52,41,12,"2021-09-26T12:08:47.121Z" -"Monday, September 27, 2021",1,0,0,0,0,1,12,197,23,52,41,12,"2021-09-27T12:05:19.921Z" -"Tuesday, September 28, 2021",4,1,0,0,1,6,14,190,23,51,34,12,"2021-09-28T12:05:21.122Z" -"Wednesday, September 29, 2021",6,5,4,1,0,1,9,190,28,50,33,14,"2021-09-29T12:05:28.424Z" -"Thursday, September 30, 2021",5,3,1,1,0,5,6,193,29,50,34,14,"2021-09-30T12:06:24.182Z" -"Friday, October 1, 2021",5,0,0,0,0,9,8,188,18,53,34,14,"2021-10-01T12:08:16.589Z" -"Saturday, October 2, 2021",12,0,0,0,0,7,5,184,5,55,34,14,"2021-10-02T12:05:33.697Z" -"Sunday, October 3, 2021",3,1,1,0,0,3,6,186,7,55,34,14,"2021-10-03T12:05:31.684Z" -"Monday, October 4, 2021",1,3,2,0,0,0,6,188,8,55,34,14,"2021-10-04T12:05:26.660Z" -"Tuesday, October 5, 2021",1,2,1,1,0,4,10,189,6,56,35,14,"2021-10-05T12:05:17.480Z" -"Wednesday, October 6, 2021",4,6,4,1,1,3,8,190,10,56,30,16,"2021-10-06T12:05:22.904Z" -"Thursday, October 7, 2021",4,0,0,0,0,6,12,188,8,54,31,15,"2021-10-07T12:05:21.928Z" -"Friday, October 8, 2021",1,2,1,1,0,5,17,190,9,54,32,15,"2021-10-08T12:05:24.361Z" -"Saturday, October 9, 2021",1,5,3,1,1,3,19,195,11,54,33,15,"2021-10-09T12:05:15.979Z" -"Sunday, October 10, 2021",6,0,0,0,0,3,19,195,11,54,33,15,"2021-10-10T12:05:25.390Z" -"Monday, October 11, 2021",3,1,1,0,0,2,18,195,12,54,33,15,"2021-10-11T12:06:07.437Z" -"Tuesday, October 12, 2021",7,3,3,0,0,6,19,197,15,54,33,14,"2021-10-12T12:05:36.457Z" -"Wednesday, October 13, 2021",16,5,4,0,0,3,8,199,18,53,32,15,"2021-10-13T12:15:38.734Z" -"Thursday, October 14, 2021",8,3,3,0,0,6,7,202,21,53,32,15,"2021-10-14T12:15:34.689Z" -"Friday, October 15, 2021",8,2,2,0,0,9,5,203,22,53,32,15,"2021-10-15T12:05:10.204Z" -"Saturday, October 16, 2021",3,2,1,0,1,5,4,203,21,52,32,15,"2021-10-16T12:05:18.119Z" -"Sunday, October 17, 2021",1,0,0,0,0,5,9,203,21,52,32,15,"2021-10-17T12:05:17.702Z" -"Monday, October 18, 2021",1,1,0,1,0,7,15,204,21,52,33,15,"2021-10-18T12:07:19.562Z" -"Tuesday, October 19, 2021",16,1,1,0,0,8,7,205,22,52,33,15,"2021-10-19T12:05:19.601Z" -"Wednesday, October 20, 2021",2,3,3,0,0,11,10,208,25,52,33,15,"2021-10-20T12:05:42.078Z" -"Thursday, October 21, 2021",5,2,2,0,0,8,8,210,26,53,33,15,"2021-10-21T12:05:31.148Z" -"Friday, October 22, 2021",2,2,1,1,0,7,10,212,26,53,34,15,"2021-10-22T12:05:17.551Z" -"Saturday, October 23, 2021",7,3,2,1,0,16,6,214,28,53,35,14,"2021-10-23T12:05:23.725Z" -"Sunday, October 24, 2021",0,0,0,0,0,0,6,214,28,53,35,14,"2021-10-24T12:05:42.586Z" -"Monday, October 25, 2021",1,3,2,1,0,1,7,217,30,53,36,14,"2021-10-25T12:05:36.120Z" -"Tuesday, October 26, 2021",4,4,2,1,0,6,4,215,30,53,36,14,"2021-10-26T12:06:21.795Z" -"Wednesday, October 27, 2021",1,1,1,0,0,14,10,216,31,53,36,14,"2021-10-27T12:05:11.199Z" -"Thursday, October 28, 2021",0,5,5,0,0,9,9,220,35,53,36,14,"2021-10-28T12:05:36.934Z" -"Friday, October 29, 2021",1,2,1,1,0,9,13,218,23,64,37,14,"2021-10-29T12:05:26.320Z" -"Saturday, October 30, 2021",5,4,3,1,0,11,13,220,26,63,38,14,"2021-10-30T12:06:23.911Z" -"Sunday, October 31, 2021",1,1,1,0,0,1,14,221,27,63,38,14,"2021-10-31T12:05:07.491Z" -"Monday, November 1, 2021",0,3,3,0,0,1,15,223,30,62,38,14,"2021-11-01T12:05:36.700Z" -"Tuesday, November 2, 2021",6,3,1,1,0,3,13,218,26,66,39,13,"2021-11-02T12:05:35.560Z" -"Wednesday, November 3, 2021",11,4,0,2,0,4,6,217,16,70,40,13,"2021-11-03T12:04:59.384Z" -"Thursday, November 4, 2021",3,1,1,0,0,4,8,210,3,74,40,13,"2021-11-04T12:05:15.923Z" -"Friday, November 5, 2021",2,4,2,1,1,6,13,211,1,76,41,11,"2021-11-05T12:05:33.159Z" -"Saturday, November 6, 2021",2,0,0,0,0,3,13,211,1,76,41,11,"2021-11-06T12:07:11.382Z" -"Sunday, November 7, 2021",0,4,4,0,0,3,16,214,4,76,41,11,"2021-11-07T12:09:00.481Z" -"Monday, November 8, 2021",5,3,1,2,0,4,18,217,4,77,43,11,"2021-11-08T12:05:08.981Z" -"Wednesday, November 10, 2021",7,3,1,0,1,7,18,220,4,78,44,11,"2021-11-10T12:05:26.569Z" "Thursday, November 11, 2021",10,3,2,1,0,5,16,180,1,63,43,10,"2021-11-11T12:05:19.502Z" +"Wednesday, November 10, 2021",7,3,1,0,1,7,18,220,4,78,44,11,"2021-11-10T12:05:26.569Z" +"Monday, November 8, 2021",5,3,1,2,0,4,18,217,4,77,43,11,"2021-11-08T12:05:08.981Z" +"Sunday, November 7, 2021",0,4,4,0,0,3,16,214,4,76,41,11,"2021-11-07T12:09:00.481Z" +"Saturday, November 6, 2021",2,0,0,0,0,3,13,211,1,76,41,11,"2021-11-06T12:07:11.382Z" +"Friday, November 5, 2021",2,4,2,1,1,6,13,211,1,76,41,11,"2021-11-05T12:05:33.159Z" +"Thursday, November 4, 2021",3,1,1,0,0,4,8,210,3,74,40,13,"2021-11-04T12:05:15.923Z" +"Wednesday, November 3, 2021",11,4,0,2,0,4,6,217,16,70,40,13,"2021-11-03T12:04:59.384Z" +"Tuesday, November 2, 2021",6,3,1,1,0,3,13,218,26,66,39,13,"2021-11-02T12:05:35.560Z" +"Monday, November 1, 2021",0,3,3,0,0,1,15,223,30,62,38,14,"2021-11-01T12:05:36.700Z" +"Sunday, October 31, 2021",1,1,1,0,0,1,14,221,27,63,38,14,"2021-10-31T12:05:07.491Z" +"Saturday, October 30, 2021",5,4,3,1,0,11,13,220,26,63,38,14,"2021-10-30T12:06:23.911Z" +"Friday, October 29, 2021",1,2,1,1,0,9,13,218,23,64,37,14,"2021-10-29T12:05:26.320Z" +"Thursday, October 28, 2021",0,5,5,0,0,9,9,220,35,53,36,14,"2021-10-28T12:05:36.934Z" +"Wednesday, October 27, 2021",1,1,1,0,0,14,10,216,31,53,36,14,"2021-10-27T12:05:11.199Z" +"Tuesday, October 26, 2021",4,4,2,1,0,6,4,215,30,53,36,14,"2021-10-26T12:06:21.795Z" +"Monday, October 25, 2021",1,3,2,1,0,1,7,217,30,53,36,14,"2021-10-25T12:05:36.120Z" +"Sunday, October 24, 2021",0,0,0,0,0,0,6,214,28,53,35,14,"2021-10-24T12:05:42.586Z" +"Saturday, October 23, 2021",7,3,2,1,0,16,6,214,28,53,35,14,"2021-10-23T12:05:23.725Z" +"Friday, October 22, 2021",2,2,1,1,0,7,10,212,26,53,34,15,"2021-10-22T12:05:17.551Z" +"Thursday, October 21, 2021",5,2,2,0,0,8,8,210,26,53,33,15,"2021-10-21T12:05:31.148Z" +"Wednesday, October 20, 2021",2,3,3,0,0,11,10,208,25,52,33,15,"2021-10-20T12:05:42.078Z" +"Tuesday, October 19, 2021",16,1,1,0,0,8,7,205,22,52,33,15,"2021-10-19T12:05:19.601Z" +"Monday, October 18, 2021",1,1,0,1,0,7,15,204,21,52,33,15,"2021-10-18T12:07:19.562Z" +"Sunday, October 17, 2021",1,0,0,0,0,5,9,203,21,52,32,15,"2021-10-17T12:05:17.702Z" +"Saturday, October 16, 2021",3,2,1,0,1,5,4,203,21,52,32,15,"2021-10-16T12:05:18.119Z" +"Friday, October 15, 2021",8,2,2,0,0,9,5,203,22,53,32,15,"2021-10-15T12:05:10.204Z" +"Thursday, October 14, 2021",8,3,3,0,0,6,7,202,21,53,32,15,"2021-10-14T12:15:34.689Z" +"Wednesday, October 13, 2021",16,5,4,0,0,3,8,199,18,53,32,15,"2021-10-13T12:15:38.734Z" +"Tuesday, October 12, 2021",7,3,3,0,0,6,19,197,15,54,33,14,"2021-10-12T12:05:36.457Z" +"Monday, October 11, 2021",3,1,1,0,0,2,18,195,12,54,33,15,"2021-10-11T12:06:07.437Z" +"Sunday, October 10, 2021",6,0,0,0,0,3,19,195,11,54,33,15,"2021-10-10T12:05:25.390Z" +"Saturday, October 9, 2021",1,5,3,1,1,3,19,195,11,54,33,15,"2021-10-09T12:05:15.979Z" +"Friday, October 8, 2021",1,2,1,1,0,5,17,190,9,54,32,15,"2021-10-08T12:05:24.361Z" +"Thursday, October 7, 2021",4,0,0,0,0,6,12,188,8,54,31,15,"2021-10-07T12:05:21.928Z" +"Wednesday, October 6, 2021",4,6,4,1,1,3,8,190,10,56,30,16,"2021-10-06T12:05:22.904Z" +"Tuesday, October 5, 2021",1,2,1,1,0,4,10,189,6,56,35,14,"2021-10-05T12:05:17.480Z" +"Monday, October 4, 2021",1,3,2,0,0,0,6,188,8,55,34,14,"2021-10-04T12:05:26.660Z" +"Sunday, October 3, 2021",3,1,1,0,0,3,6,186,7,55,34,14,"2021-10-03T12:05:31.684Z" +"Saturday, October 2, 2021",12,0,0,0,0,7,5,184,5,55,34,14,"2021-10-02T12:05:33.697Z" +"Friday, October 1, 2021",5,0,0,0,0,9,8,188,18,53,34,14,"2021-10-01T12:08:16.589Z" +"Thursday, September 30, 2021",5,3,1,1,0,5,6,193,29,50,34,14,"2021-09-30T12:06:24.182Z" +"Wednesday, September 29, 2021",6,5,4,1,0,1,9,190,28,50,33,14,"2021-09-29T12:05:28.424Z" +"Tuesday, September 28, 2021",4,1,0,0,1,6,14,190,23,51,34,12,"2021-09-28T12:05:21.122Z" +"Monday, September 27, 2021",1,0,0,0,0,1,12,197,23,52,41,12,"2021-09-27T12:05:19.921Z" +"Sunday, September 26, 2021",1,5,4,0,1,4,11,197,23,52,41,12,"2021-09-26T12:08:47.121Z" +"Saturday, September 25, 2021",9,2,1,0,0,2,8,192,19,52,41,12,"2021-09-25T12:06:27.156Z" +"Friday, September 24, 2021",9,3,2,0,0,7,11,190,18,52,41,12,"2021-09-24T12:05:17.886Z" +"Thursday, September 23, 2021",1,1,1,0,0,2,13,187,16,52,41,12,"2021-09-23T12:05:25.606Z" +"Wednesday, September 22, 2021",2,1,0,1,0,7,13,196,18,53,41,13,"2021-09-22T12:05:16.758Z" +"Tuesday, September 21, 2021",6,2,2,0,0,4,12,195,18,53,40,13,"2021-09-21T12:05:24.427Z" +"Monday, September 20, 2021",1,2,2,0,0,2,13,194,16,53,40,13,"2021-09-20T12:05:24.215Z" +"Sunday, September 19, 2021",1,0,0,0,0,5,11,192,14,53,40,13,"2021-09-19T12:05:42.171Z" +"Saturday, September 18, 2021",6,1,1,0,0,3,6,193,14,53,40,13,"2021-09-18T12:07:37.446Z" +"Friday, September 17, 2021",7,1,0,0,0,5,5,195,13,54,41,13,"2021-09-17T12:05:15.464Z" +"Thursday, September 16, 2021",4,2,2,0,0,3,4,195,14,54,41,13,"2021-09-16T12:05:30.904Z" +"Wednesday, September 15, 2021",16,4,2,1,0,6,4,194,12,54,41,14,"2021-09-15T12:05:55.219Z" +"Tuesday, September 14, 2021",7,4,4,0,0,7,12,191,12,52,43,12,"2021-09-14T12:07:03.530Z" +"Monday, September 13, 2021",1,1,1,0,0,0,10,187,8,52,43,12,"2021-09-13T12:08:08.013Z" +"Sunday, September 12, 2021",0,2,1,1,0,0,10,186,7,52,43,12,"2021-09-12T12:08:11.836Z" +"Saturday, September 11, 2021",2,2,0,2,0,2,10,184,6,52,42,12,"2021-09-11T12:06:55.070Z" +"Friday, September 10, 2021",6,0,0,0,0,4,11,181,6,52,39,12,"2021-09-10T12:04:51.984Z" +"Thursday, September 9, 2021",5,2,1,1,0,1,10,181,6,52,39,12,"2021-09-09T12:07:12.662Z" +"Wednesday, September 8, 2021",4,4,4,0,0,5,12,181,4,59,38,12,"2021-09-08T12:06:33.698Z" +"Tuesday, September 7, 2021",3,3,1,0,1,4,10,183,9,57,38,12,"2021-09-07T12:04:36.739Z" +"Monday, September 6, 2021",12,5,4,1,0,1,9,182,9,55,38,12,"2021-09-06T12:09:10.713Z" +"Sunday, September 5, 2021",2,2,2,0,0,5,12,177,5,55,38,12,"2021-09-05T12:09:11.805Z" +"Saturday, September 4, 2021",9,4,2,2,0,6,11,176,5,54,38,12,"2021-09-04T12:05:49.637Z" +"Friday, September 3, 2021",1,0,0,0,0,4,12,172,3,54,36,12,"2021-09-03T12:05:00.018Z" +"Thursday, September 2, 2021",18,4,3,1,0,5,8,172,3,54,36,12,"2021-09-02T12:04:50.438Z"