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

Function formatNotificationTitle

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

Source from the content-addressed store, hash-verified

121 * @returns The display title string.
122 */
123export function formatNotificationTitle(
124 notification: GitifyNotification,
125): string {
126 let title = notification.subject.title;
127 const number = formatNotificationNumber(notification);
128
129 if (number.length > 0) {
130 title = `${title} [${number}]`;
131 }
132
133 return title;
134}
135
136/**
137 * Helper to format the metric description, determine singular or plural noun,

Callers 2

formatters.test.tsFile · 0.90
formatNotificationFunction · 0.85

Calls 1

formatNotificationNumberFunction · 0.85

Tested by

no test coverage detected