diff options
author | 2022-04-02 18:53:00 -0300 | |
---|---|---|
committer | 2022-04-02 18:53:00 -0300 | |
commit | a377ac1efc86afd1cb37c69248fa5adae0eb6e37 (patch) | |
tree | 8edb602e029c6d520fd684de6a36d87934842320 /scripts/stats/index.js | |
parent | e30aa4dfef2bbe874e2fe7f07232bf8a3c092317 (diff) | |
parent | a05177c50d52f09f32bcb2983e7af73f6507e235 (diff) | |
download | astro-a377ac1efc86afd1cb37c69248fa5adae0eb6e37.tar.gz astro-a377ac1efc86afd1cb37c69248fa5adae0eb6e37.tar.zst astro-a377ac1efc86afd1cb37c69248fa5adae0eb6e37.zip |
Merge branch 'main' into feat/vercel-adapter
Diffstat (limited to 'scripts/stats/index.js')
-rw-r--r-- | scripts/stats/index.js | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/scripts/stats/index.js b/scripts/stats/index.js index 435bb5c56..659df2f2b 100644 --- a/scripts/stats/index.js +++ b/scripts/stats/index.js @@ -78,12 +78,21 @@ export async function run() { per_page: 100, since: twentyFourHoursAgo.toISOString(), }); - const issuesLastTwentyFourHours = allIssuesLastTwentyFourHours.filter((iss) => new Date(iss.created_at) > twentyFourHoursAgo && !iss.pull_request); - const pullsLastTwentyFourHours = allIssuesLastTwentyFourHours.filter((iss) => new Date(iss.created_at) > twentyFourHoursAgo && iss.pull_request); + const issuesLastTwentyFourHours = allIssuesLastTwentyFourHours.filter( + (iss) => new Date(iss.created_at) > twentyFourHoursAgo && !iss.pull_request + ); + const pullsLastTwentyFourHours = allIssuesLastTwentyFourHours.filter( + (iss) => new Date(iss.created_at) > twentyFourHoursAgo && iss.pull_request + ); const entry = [ // Date (Human Readable) - `"${new Date().toLocaleDateString('en-US', { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' })}"`, + `"${new Date().toLocaleDateString('en-US', { + weekday: 'long', + year: 'numeric', + month: 'long', + day: 'numeric', + })}"`, // Commits in last 24 hours (await countCommits(twentyFourHoursAgo)).length, // New Issues(All) in last 24 hours @@ -103,7 +112,8 @@ export async function run() { // Bugs: Needs Triage (await countCards(COLUMN_ID_BUGS_NEEDS_TRIAGE)).length, // Bugs: Accepted - (await countCards(COLUMN_ID_BUGS_ACCEPTED)).length + (await countCards(COLUMN_ID_BUGS_PRIORITIZED)).length, + (await countCards(COLUMN_ID_BUGS_ACCEPTED)).length + + (await countCards(COLUMN_ID_BUGS_PRIORITIZED)).length, // RFC: In Progress 0, // (await countCards(COLUMN_ID_RFCS_IN_PROGRESS)).length, // RFC: Accepted |