diff --git a/scraper/src/github-scraper/projectItems.ts b/scraper/src/github-scraper/projectItems.ts index 1bbeabf5..11cc38f7 100644 --- a/scraper/src/github-scraper/projectItems.ts +++ b/scraper/src/github-scraper/projectItems.ts @@ -97,7 +97,7 @@ async function getProjectBoardItems(projectId: string) { ... on Issue { url closedAt - state + stateReason author { login } @@ -157,7 +157,7 @@ async function getProjectBoardItems(projectId: string) { let completedAt = null; - if (node.type === "ISSUE" && node.content.state === "CLOSED") { + if (node.type === "ISSUE" && node.content.stateReason === "COMPLETED") { completedAt = node.content.closedAt; } if (node.type === "PULL_REQUEST" && node.content.merged) {