Repository navigation
Update github extension - #30309
Update github extension#30309
Conversation
Rebase the contribution onto current main and address review feedback: extension-level VS Code/Cursor preference, paginated unread notifications, and search pagination with visible errors.
Drop obsolete ESLint/env/codegen helpers and unused assets so the store PR only ships files the extension uses.
GitHub's issue search API has no number qualifier, so queries like raycast#123 never matched the issue. When a repository is known, fetch it via repository.issue(number:).
The rebase onto store main dropped the ★/☆ accessories and two user-facing changelog notes; put them back alongside the later review fixes.
- Fix duplicate issueByNumber GraphQL query after merge. - Merge pull contributions (keep local UX fixes) - Pull contributions - Restore Search Repositories UX and slim search GraphQL. - Restore dropped list UI from the original contribution. - Restore compact repository list UI and original changelog bullets. - Look up issues by number instead of treating raycast#123 as text search. - Remove unused leftover files from the contribution.
|
Thank you for your contribution! 🎉 🔔 @thomaslombart @unnamedd @tonka3000 @khasbilegt @pernielsentikaer @loxygenK @oilbeater @LunaticMuch @aeorge @daquinoaldo @aeither @marcotf @qeude @nesl247 @xilopaint @antonengelhardt @bangerang @wottpal @LitoMore @d-mitrofanov-v @j3lte @jfkisafk @vlasischar @JavaLangRuntimeException @shyakadavis @sushichan044 @luarmr @nicolas-marien @ionTea @ridemountainpig @kud @MartinGonzalez @brandonnly @oscmarb @emergerrrd @ryo246912 @gfazioli @wonbywondev @SandeepBaskaran @0xdhrv you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. 📋 Quick checkout commandsBRANCH="ext/github"
FORK_URL="https://github.com/Ernest0-Production/raycast-extensions.git"
EXTENSION_NAME="github"
REPO_NAME="raycast-extensions"
git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run devWe're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days. |
Greptile SummaryThis PR restores repository-search history, filtering, pagination, and action-state improvements in the GitHub extension.
Confidence Score: 3/5The PR does not appear safe to merge until exact issue lookups stop falling through to unrelated text results and repository actions again respect feature capabilities. A status-mismatched exact issue lookup can display unrelated issues, and the previously reported unconditional actions for disabled or unavailable repository features remain outstanding. Files Needing Attention: extensions/github/src/components/RepositoryIssues.tsx, extensions/github/src/components/RepositoryActions.tsx, extensions/github/src/api/repository.graphql Important Files Changed
Prompt To Fix All With AI### Issue 1
extensions/github/src/components/RepositoryIssues.tsx:58-64
**Status mismatch triggers text search**
When an exact `#123` lookup finds an issue that does not match the selected Open or Closed filter, this branch falls through to a free-text search for `123`. Because GitHub issue search has no issue-number qualifier, the list can display unrelated issues containing those digits instead of returning an empty result.
```suggestion
const matchesStatus = statusFilter === "all" || (statusFilter === "closed" ? issue?.closed : !issue?.closed);
if (issue) {
return {
data: matchesStatus ? [issue as IssueFieldsFragment] : [],
hasMore: false,
};
}
```
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Reviews (3): Last reviewed commit: "Update CHANGELOG.md" | Re-trigger Greptile |
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
| const matchesStatus = statusFilter === "all" || (statusFilter === "closed" ? issue?.closed : !issue?.closed); | ||
| if (issue && matchesStatus) { | ||
| return { | ||
| data: [issue as IssueFieldsFragment], | ||
| hasMore: false, | ||
| }; | ||
| } |
There was a problem hiding this comment.
Status mismatch triggers text search
When an exact #123 lookup finds an issue that does not match the selected Open or Closed filter, this branch falls through to a free-text search for 123. Because GitHub issue search has no issue-number qualifier, the list can display unrelated issues containing those digits instead of returning an empty result.
| const matchesStatus = statusFilter === "all" || (statusFilter === "closed" ? issue?.closed : !issue?.closed); | |
| if (issue && matchesStatus) { | |
| return { | |
| data: [issue as IssueFieldsFragment], | |
| hasMore: false, | |
| }; | |
| } | |
| const matchesStatus = statusFilter === "all" || (statusFilter === "closed" ? issue?.closed : !issue?.closed); | |
| if (issue) { | |
| return { | |
| data: matchesStatus ? [issue as IssueFieldsFragment] : [], | |
| hasMore: false, | |
| }; | |
| } |
Knowledge Base Used: GitHub extension GraphQL integration
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/github/src/components/RepositoryIssues.tsx
Line: 58-64
Comment:
**Status mismatch triggers text search**
When an exact `#123` lookup finds an issue that does not match the selected Open or Closed filter, this branch falls through to a free-text search for `123`. Because GitHub issue search has no issue-number qualifier, the list can display unrelated issues containing those digits instead of returning an empty result.
```suggestion
const matchesStatus = statusFilter === "all" || (statusFilter === "closed" ? issue?.closed : !issue?.closed);
if (issue) {
return {
data: matchesStatus ? [issue as IssueFieldsFragment] : [],
hasMore: false,
};
}
```
**Knowledge Base Used:** [GitHub extension GraphQL integration](https://app.greptile.com/raycast/-/custom-context/knowledge-base/raycast/extensions/-/docs/github-extension.md)
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Description
Note: The previously merged PR #29919 lost part of the key improvements during the contribution merge/rebase. This PR restores the missing behavior and fixes listed below.
#123.Screencast
N/A — improvements to existing commands and repository issue list.
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare located outside the metadata folder if they were not generated with our metadata tool