diff --git a/src/typesGithub.ts b/src/typesGithub.ts index 0f6a087e6..340ec9a37 100644 --- a/src/typesGithub.ts +++ b/src/typesGithub.ts @@ -22,7 +22,8 @@ export type SubjectType = | 'PullRequest' | 'Release' | 'RepositoryInvitation' - | 'RepositoryVulnerabilityAlert'; + | 'RepositoryVulnerabilityAlert' + | 'WorkflowRun'; export type IssueStateType = | 'closed' diff --git a/src/utils/github-api.test.ts b/src/utils/github-api.test.ts index e9cc4d756..5193e5291 100644 --- a/src/utils/github-api.test.ts +++ b/src/utils/github-api.test.ts @@ -152,6 +152,13 @@ describe('getNotificationTypeIcon', () => { }), ).displayName, ).toBe('AlertIcon'); + expect( + getNotificationTypeIcon( + createSubjectMock({ + type: 'WorkflowRun', + }), + ).displayName, + ).toBe('RocketIcon'); expect(getNotificationTypeIcon(createSubjectMock({})).displayName).toBe( 'QuestionIcon', ); diff --git a/src/utils/github-api.ts b/src/utils/github-api.ts index eff854549..344bae4ef 100644 --- a/src/utils/github-api.ts +++ b/src/utils/github-api.ts @@ -14,6 +14,7 @@ import { MailIcon, OcticonProps, QuestionIcon, + RocketIcon, SkipIcon, StopIcon, SyncIcon, @@ -132,6 +133,8 @@ export function getNotificationTypeIcon( return MailIcon; case 'RepositoryVulnerabilityAlert': return AlertIcon; + case 'WorkflowRun': + return RocketIcon; default: return QuestionIcon; }