From 8053a64616feb11b25558a7ee46c5610253bb570 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Sun, 25 Feb 2024 17:23:40 -0500 Subject: [PATCH] feat: issue not planned icon --- src/utils/github-api.test.ts | 8 ++++++++ src/utils/github-api.ts | 2 ++ 2 files changed, 10 insertions(+) diff --git a/src/utils/github-api.test.ts b/src/utils/github-api.test.ts index 019f3c4e2..d3a335b2a 100644 --- a/src/utils/github-api.test.ts +++ b/src/utils/github-api.test.ts @@ -96,6 +96,14 @@ describe('getNotificationTypeIcon', () => { }), ).displayName, ).toBe('IssueClosedIcon'); + expect( + getNotificationTypeIcon( + createSubjectMock({ + type: 'Issue', + state: 'not_planned', + }), + ).displayName, + ).toBe('SkipIcon'); expect( getNotificationTypeIcon( createSubjectMock({ diff --git a/src/utils/github-api.ts b/src/utils/github-api.ts index 2fa8d09f9..bd79b5b45 100644 --- a/src/utils/github-api.ts +++ b/src/utils/github-api.ts @@ -114,6 +114,8 @@ export function getNotificationTypeIcon( case 'closed': case 'completed': return IssueClosedIcon; + case 'not_planned': + return SkipIcon; case 'reopened': return IssueReopenedIcon; default: