Skip to content

Commit 356b06c

Browse files
committed
refactor(api): use graphql api for issue and pull request enrichment
Signed-off-by: Adam Setch <[email protected]>
1 parent 6932eca commit 356b06c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/renderer/utils/helpers.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ export function getDefaultURLForType(notification: Notification) {
8181
const url = new URL(notification.repository.html_url);
8282

8383
switch (notification.subject.type) {
84+
case 'CheckSuite':
85+
url.pathname += '/actions';
86+
break;
8487
case 'Discussion':
8588
url.pathname += '/discussions';
8689
break;
@@ -90,12 +93,18 @@ export function getDefaultURLForType(notification: Notification) {
9093
case 'PullRequest':
9194
url.pathname += '/pulls';
9295
break;
96+
case 'Release':
97+
url.pathname += '/releases';
98+
break;
9399
case 'RepositoryInvitation':
94100
url.pathname += '/invitations';
95101
break;
96102
case 'RepositoryDependabotAlertsThread':
97103
url.pathname += '/security/dependabot';
98104
break;
105+
case 'WorkflowRun':
106+
url.pathname += '/actions';
107+
break;
99108
default:
100109
break;
101110
}

0 commit comments

Comments
 (0)