( raw: RawGitHubNotification['subject'], )
| 70 | } |
| 71 | |
| 72 | function 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 | |
| 85 | function transformRepository( |
| 86 | raw: RawGitHubNotification['repository'], |
no outgoing calls
no test coverage detected