Skip to content

Commit 790bdbc

Browse files
committed
scope
1 parent 3e13354 commit 790bdbc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

content.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,13 @@
7878
return false;
7979
}
8080

81-
// Find the Copilot reviewer link
82-
const copilotLink = document.querySelector('a[href="/apps/copilot-pull-request-reviewer"]');
81+
// Find the Copilot reviewer link in the sidebar only (not in timeline)
82+
const sidebar = document.querySelector('.Layout-sidebar');
83+
if (!sidebar) {
84+
return false;
85+
}
86+
87+
const copilotLink = sidebar.querySelector('a[href="/apps/copilot-pull-request-reviewer"]');
8388
if (!copilotLink) {
8489
return false;
8590
}

0 commit comments

Comments
 (0)