Skip to content

Commit ec0701c

Browse files
feat(notifications): include repository name and subject type in native Windows OS notifications (#3058)
* fix: resolve issue #3026 - Add additional information to native OS notification * chore: delete package-lock.json --------- Co-authored-by: emre155 <emre155@users.noreply.github.com> Co-authored-by: Afonso Jorge Ramos <afonsojorgeramos@gmail.com>
1 parent ba64642 commit ec0701c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/renderer/utils/system/native.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ export async function raiseNativeNotification(notifications: GitifyNotification[
2020

2121
if (notifications.length === 1) {
2222
const notification = notifications[0];
23-
title = window.gitify.platform.isWindows() ? '' : notification.repository.fullName;
24-
body = notification.subject.title;
23+
title = notification.repository.fullName;
24+
body = notification.subject.type
25+
? `${notification.subject.title} [${notification.subject.type}]`
26+
: notification.subject.title;
2527
url = await generateNotificationWebUrl(notification);
2628
} else {
2729
title = APPLICATION.NAME;

0 commit comments

Comments
 (0)