We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1488146 commit 51bcdbfCopy full SHA for 51bcdbf
src/renderer/utils/helpers.ts
@@ -123,6 +123,14 @@ export async function generateGitHubWebUrl(
123
): Promise<Link> {
124
const url = new URL(notification.repository.html_url);
125
126
+ // FIXME see #1583
127
+ // Upstream GitHub API has started returning subject urls for Discussion notification types,
128
+ // however these URLs are broken. Temporarily downgrading to use discussion lookup process.
129
+ if (notification.subject.type === 'Discussion') {
130
+ notification.subject.url = null;
131
+ notification.subject.latest_comment_url = null;
132
+ }
133
+
134
try {
135
if (notification.subject.latest_comment_url) {
136
url.href = await getHtmlUrl(
0 commit comments