( notification: GitifyNotification, )
| 79 | * @returns A human-readable type string (e.g. "Open Pull Request"). |
| 80 | */ |
| 81 | export function formatNotificationType( |
| 82 | notification: GitifyNotification, |
| 83 | ): string { |
| 84 | return formatForDisplay([ |
| 85 | notification.subject.state ?? '', |
| 86 | notification.subject.type, |
| 87 | ]); |
| 88 | } |
| 89 | |
| 90 | /** |
| 91 | * Return the formatted (issue, pull request, discussion) number for this notification. |
no test coverage detected