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

Function transformReason

src/renderer/utils/api/transform.ts:62–70  ·  view source on GitHub ↗
(raw: RawGitHubNotification['reason'])

Source from the content-addressed store, hash-verified

60}
61
62function transformReason(raw: RawGitHubNotification['reason']): GitifyReason {
63 const reasonDetails = getReasonDetails(raw as Reason);
64
65 return {
66 code: raw as Reason,
67 title: reasonDetails.title,
68 description: reasonDetails.description ?? '',
69 };
70}
71
72function transformSubject(
73 raw: RawGitHubNotification['subject'],

Callers 1

transformNotificationFunction · 0.85

Calls 1

getReasonDetailsFunction · 0.90

Tested by

no test coverage detected