Skip to content

Commit

Permalink
fix incorrect usage of state
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Dec 3, 2024
1 parent cbd0d7c commit ecfdd7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper/src/github-scraper/projectItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async function getProjectBoardItems(projectId: string) {
... on Issue {
url
closedAt
state
stateReason
author {
login
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit ecfdd7e

Please sign in to comment.