(raw: RawGitHubNotification['reason'])
| 60 | } |
| 61 | |
| 62 | function 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 | |
| 72 | function transformSubject( |
| 73 | raw: RawGitHubNotification['subject'], |
no test coverage detected