File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ const DESCRIPTIONS = {
13
13
STATE_CHANGE : 'You changed the thread state (for example, closing an issue or merging a pull request).' ,
14
14
SUBSCRIBED : "You're watching the repository." ,
15
15
TEAM_MENTION : 'You were on a team that was mentioned.' ,
16
+ CI_ACTIVITY : 'A GitHub Actions workflow run was triggered for your repository' ,
16
17
UNKNOWN : 'The reason for this notification is not supported by the app.' ,
17
18
} ;
18
19
@@ -43,6 +44,8 @@ export function formatReason(
43
44
return { type : 'Subscribed' , description : DESCRIPTIONS [ 'SUBSCRIBED' ] } ;
44
45
case 'team_mention' :
45
46
return { type : 'Team Mention' , description : DESCRIPTIONS [ 'TEAM_MENTION' ] } ;
47
+ case 'ci_activity' :
48
+ return { type : 'Workflow Run' , description : DESCRIPTIONS [ 'WORKFLOW_RUN' ] } ;
46
49
default :
47
50
return { type : 'Unknown' , description : DESCRIPTIONS [ 'UNKNOWN' ] } ;
48
51
}
@@ -60,6 +63,8 @@ export function getNotificationTypeIcon(type: SubjectType): string {
60
63
return 'tag' ;
61
64
case 'RepositoryVulnerabilityAlert' :
62
65
return 'alert' ;
66
+ case 'CheckSuite' :
67
+ return 'sync' ;
63
68
default :
64
69
return 'question' ;
65
70
}
Original file line number Diff line number Diff line change @@ -9,13 +9,15 @@ export type Reason =
9
9
| 'security_alert'
10
10
| 'state_change'
11
11
| 'subscribed'
12
- | 'team_mention' ;
12
+ | 'team_mention'
13
+ | 'ci_activity' ;
13
14
14
15
export type SubjectType =
15
16
| 'Issue'
16
17
| 'PullRequest'
17
18
| 'Commit'
18
19
| 'Release'
20
+ | 'CheckSuite'
19
21
| 'RepositoryVulnerabilityAlert' ;
20
22
21
23
export interface Notification {
@@ -102,7 +104,7 @@ export interface Owner {
102
104
103
105
export interface Subject {
104
106
title : string ;
105
- url : string ;
106
- latest_comment_url : string ;
107
+ url ? : string ;
108
+ latest_comment_url ? : string ;
107
109
type : SubjectType ;
108
110
}
You can’t perform that action at this time.
0 commit comments