Change summary
script/issue_response/main.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Detailed changes
@@ -46,12 +46,16 @@ async function main() {
githubHandles.sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase()));
const commenterFilters = githubHandles.map((name) => `-commenter:${name}`);
const authorFilters = githubHandles.map((name) => `-author:${name}`);
+ const twoDaysAgo = new Date();
+ twoDaysAgo.setDate(twoDaysAgo.getDate() - 2);
+ const twoDaysAgoString = twoDaysAgo.toISOString().split("T")[0];
+ const dateRangeFilter = `2025-02-01..${twoDaysAgoString}`;
const q = [
`repo:${owner}/${repo}`,
"is:issue",
"state:open",
- "created:>=2025-02-01",
+ `created:${dateRangeFilter}`,
"sort:created-asc",
...commenterFilters,
...authorFilters,