Skip to content

Commit

Permalink
Support Sprint Backup Field (#119)
Browse files Browse the repository at this point in the history
* initial commit for Support Sprint Backup Field

* support sprint backup field
  • Loading branch information
JensRavens authored Feb 18, 2025
1 parent 1c33c25 commit 573ea63
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/models/github.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def sprint_board_items
repository:,
issue_number: item.dig("content", "number"),
status: item.dig("status", "name").presence,
sprint_title: item.dig("sprint", "title").presence,
sprint_title: item.dig("sprint", "title").presence || item.dig("sprint_backup", "text").presence,
points: item.dig("points", "number")&.to_i
)
end
Expand Down Expand Up @@ -135,6 +135,11 @@ def query
title
}
}
sprint_backup: fieldValueByName(name: "SprintBackup") {
... on ProjectV2ItemFieldTextValue {
text
}
}
points: fieldValueByName(name: "Points") {
... on ProjectV2ItemFieldNumberValue {
number
Expand Down

0 comments on commit 573ea63

Please sign in to comment.