Skip to content

Add issue hierarchy metadata#13

Merged
dubscode merged 2 commits intomainfrom
issue-5
May 9, 2026
Merged

Add issue hierarchy metadata#13
dubscode merged 2 commits intomainfrom
issue-5

Conversation

@dubscode
Copy link
Copy Markdown
Contributor

@dubscode dubscode commented May 9, 2026

Summary

Adds normalized issue hierarchy metadata so JSON consumers can inspect parent and child relationships without an extra Linear API call.

The issue record now includes parentTitle, childrenCount, and hasChildren alongside the existing parent and child fields, preserving childCount for backward compatibility.

The v2 gateway test now covers the new hierarchy fields.

Validation

  • pnpm verify

Copilot AI review requested due to automatic review settings May 9, 2026 04:26
@dubscode dubscode marked this pull request as ready for review May 9, 2026 04:27
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds additional (normalized) issue hierarchy metadata to the IssueRecord returned by linear-core, allowing JSON consumers to inspect parent/child relationships without additional Linear API calls.

Changes:

  • Extend IssueRecord with parentTitle, childrenCount, and hasChildren (keeping childCount for backwards compatibility).
  • Populate the new fields in the v2 LinearGateway issue mapping.
  • Extend the v2 gateway test assertions to cover the new hierarchy fields.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/linear-core/tests/v2-gateway.test.ts Adds assertions for parentTitle, childrenCount, and hasChildren in the v2 issue enrichment test.
packages/linear-core/src/entities/models.ts Extends the IssueRecord public shape with the new hierarchy metadata fields.
packages/linear-core/src/entities/linear-gateway.ts Populates the new hierarchy fields when converting SDK issues into IssueRecord.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/linear-core/src/entities/linear-gateway.ts Outdated
Avoid recomputing children.length three times; keep
childCount/childrenCount/hasChildren from drifting.
@dubscode dubscode merged commit 66f60ac into main May 9, 2026
5 checks passed
@dubscode dubscode deleted the issue-5 branch May 9, 2026 04:33
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 9, 2026

🎉 This PR is included in version 1.5.0-alpha.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 9, 2026

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants