MCPcopy Index your code
hub / github.com/gitify-app/gitify / transformSubject

Function transformSubject

src/renderer/utils/api/transform.ts:72–83  ·  view source on GitHub ↗
(
  raw: RawGitHubNotification['subject'],
)

Source from the content-addressed store, hash-verified

70}
71
72function transformSubject(
73 raw: RawGitHubNotification['subject'],
74): GitifySubject {
75 return {
76 title: raw.title,
77 type: raw.type as SubjectType,
78 url: raw.url as Link | null,
79 latestCommentUrl: raw.latest_comment_url as Link | null,
80
81 // Enriched fields start as undefined, populated by handlers
82 };
83}
84
85function transformRepository(
86 raw: RawGitHubNotification['repository'],

Callers 1

transformNotificationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected