@@ -29,11 +29,9 @@ import { DefaultHandler, defaultHandler } from './default';
2929import { getNotificationAuthor } from './utils' ;
3030
3131class PullRequestHandler extends DefaultHandler {
32- readonly type = 'PullRequest' as const ;
32+ override readonly supportsMergedQueryEnrichment = true ;
3333
34- readonly supportsMergedQueryEnrichment = true ;
35-
36- async enrich (
34+ override async enrich (
3735 notification : GitifyNotification ,
3836 _settings : SettingsState ,
3937 fetchedData ?: PullRequestDetailsFragment ,
@@ -80,7 +78,7 @@ class PullRequestHandler extends DefaultHandler {
8078 } ;
8179 }
8280
83- iconType ( notification : GitifyNotification ) : FC < OcticonProps > {
81+ override iconType ( notification : GitifyNotification ) : FC < OcticonProps > {
8482 switch ( notification . subject . state as GitifyPullRequestState ) {
8583 case 'DRAFT' :
8684 return GitPullRequestDraftIcon ;
@@ -95,7 +93,7 @@ class PullRequestHandler extends DefaultHandler {
9593 }
9694 }
9795
98- iconColor ( notification : GitifyNotification ) : IconColor {
96+ override iconColor ( notification : GitifyNotification ) : IconColor {
9997 switch ( notification . subject . state as GitifyPullRequestState ) {
10098 case 'OPEN' :
10199 return IconColor . GREEN ;
@@ -110,7 +108,7 @@ class PullRequestHandler extends DefaultHandler {
110108 }
111109 }
112110
113- defaultUrl ( notification : GitifyNotification ) : Link {
111+ override defaultUrl ( notification : GitifyNotification ) : Link {
114112 const url = new URL ( defaultHandler . defaultUrl ( notification ) ) ;
115113 url . pathname += '/pulls' ;
116114 return url . href as Link ;
0 commit comments