Do not include recent issues in issue response script (#26064)

Do not report issues that were created yesterday or today.

Release Notes:

- N/A
This commit is contained in:
Joseph T. Lyons 2025-03-04 16:13:53 -05:00 committed by GitHub
parent fc01f496a9
commit 0a2d938ac5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,12 +46,16 @@ async function main() {
githubHandles.sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase())); githubHandles.sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase()));
const commenterFilters = githubHandles.map((name) => `-commenter:${name}`); const commenterFilters = githubHandles.map((name) => `-commenter:${name}`);
const authorFilters = githubHandles.map((name) => `-author:${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 = [ const q = [
`repo:${owner}/${repo}`, `repo:${owner}/${repo}`,
"is:issue", "is:issue",
"state:open", "state:open",
"created:>=2025-02-01", `created:${dateRangeFilter}`,
"sort:created-asc", "sort:created-asc",
...commenterFilters, ...commenterFilters,
...authorFilters, ...authorFilters,