( raw: RawGitHubNotification['repository'], )
| 83 | } |
| 84 | |
| 85 | function transformRepository( |
| 86 | raw: RawGitHubNotification['repository'], |
| 87 | ): GitifyRepository { |
| 88 | return { |
| 89 | name: raw.name, |
| 90 | fullName: raw.full_name, |
| 91 | htmlUrl: raw.html_url as Link, |
| 92 | owner: transformOwner(raw.owner), |
| 93 | }; |
| 94 | } |
| 95 | |
| 96 | function transformOwner( |
| 97 | raw: NonNullable<RawGitHubNotification['repository']['owner']>, |
no test coverage detected