Mirror of
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: gh API query

+11 -5
+10 -4
scripts/backfill.ts
··· 1 1 import { z } from "zod"; 2 2 import { spawn } from "child_process"; 3 3 4 - const END_TIME_CONSTANT = "2026-02-02T22:00:00Z"; 4 + const END_TIME_CONSTANT = "2026-02-03T06:00:00Z"; 5 5 const WINDOW_HOURS = 8; 6 6 7 7 const EventSchema = z.object({ ··· 63 63 64 64 const startIso = start.toISOString().split(".")[0] + "Z"; 65 65 const endIso = end.toISOString().split(".")[0] + "Z"; 66 - const query = encodeURIComponent( 67 - `repo:${owner}/${repo} is:closed closed:${startIso}..${endIso}`, 68 - ); 66 + 67 + const repository = `repo:${owner}/${repo}`; 68 + const timeRange = `closed:${startIso}..${endIso}`; 69 + const filters = "is:closed -is:unmerged"; 70 + 71 + const query = encodeURIComponent(`${repository} ${filters} ${timeRange}`); 72 + 73 + console.log(query); 74 + console.log(`${repository} ${filters} ${timeRange}`); 69 75 70 76 const headers = { 71 77 Accept: "application/vnd.github.v3+json",
+1 -1
src/lib/events.ts
··· 55 55 56 56 const repository = `repo:${owner}/${repo}`; 57 57 const timeRange = `closed:${startIso}..${endIso}`; 58 - const filters = "(is:issue is:closed) OR (is:pr is:merged)"; 58 + const filters = "is:closed -is:unmerged"; 59 59 60 60 const query = encodeURIComponent(`${repository} ${filters} ${timeRange}`); 61 61