Skip to content

Commit cd3e9ac

Browse files
zwickCopilot
andcommitted
Address hierarchy review nits
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 71b3b4f commit cd3e9ac

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/github/issues_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ func Test_GetIssue_HierarchyEnrichment(t *testing.T) {
635635
{
636636
name: "has_children is false when total is zero even with completed nonzero",
637637
parent: nil,
638-
summary: map[string]any{"total": 0, "completed": 0, "percentCompleted": 0},
638+
summary: map[string]any{"total": 0, "completed": 1, "percentCompleted": 0},
639639
assertResponse: func(t *testing.T, issue MinimalIssue) {
640640
assert.Equal(t, github.Ptr(false), issue.HasChildren)
641641
assert.Nil(t, issue.SubIssuesSummary)

pkg/github/minimal_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ type MinimalIssue struct {
354354
}
355355

356356
// MinimalIssueRef is a compact reference to a related issue (e.g. a parent issue).
357-
// Its keys mirror the get_parent (GetIssueParent) payload so both surfaces agree.
357+
// Its keys mirror the get_parent (GetIssueParent) response shape.
358358
type MinimalIssueRef struct {
359359
Number int `json:"number"`
360360
Title string `json:"title"`

0 commit comments

Comments
 (0)