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

Function formatNotificationType

src/renderer/utils/notifications/formatters.ts:81–88  ·  view source on GitHub ↗
(
  notification: GitifyNotification,
)

Source from the content-addressed store, hash-verified

79 * @returns A human-readable type string (e.g. "Open Pull Request").
80 */
81export 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.

Callers 2

formatters.test.tsFile · 0.90
formatNotificationFunction · 0.85

Calls 1

formatForDisplayFunction · 0.85

Tested by

no test coverage detected