From 06a4da10b14ff95112b6f4d3e58c9047b8a017c9 Mon Sep 17 00:00:00 2001 From: strager Date: Wed, 16 Apr 2025 19:37:13 -0400 Subject: [PATCH] Fix broken issue search for GitHub PRs The extension uses the `issueSearch` root field. This field is deprecated [1] and, for me, no longer functions properly. This breaks various parts of the extension including the widget showing the associated Linear issue on PRs. Switch the query to use a non-deprecated API, fixing the widget on PRs. [1] https://studio.apollographql.com/public/Linear-API/variant/current/schema/reference?query=issueSearch#issueSearch --- extension/scripts/content.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/scripts/content.js b/extension/scripts/content.js index bfa2f43..dfa0e0c 100644 --- a/extension/scripts/content.js +++ b/extension/scripts/content.js @@ -612,7 +612,7 @@ async function fetchExistingIssues(currentIssue) { chrome.runtime.sendMessage( { linearQuery: `{ - issueSearch( + issues( filter: { or: [ ${issues.map(makeFilterBlock).join('\n')} @@ -645,7 +645,7 @@ async function fetchExistingIssues(currentIssue) { (response) => resolve(response) ); }); - return response?.data?.issueSearch?.nodes || null; + return response?.data?.issues?.nodes || null; } /**