Skip to content

Update github extension - #30309

Merged
raycastbot merged 12 commits into
raycast:mainfrom
Ernest0-Production:ext/github
Aug 22, 2026
Merged

raycastbot merged 12 commits into
raycast:mainfrom
Ernest0-Production:ext/github

Conversation

@Ernest0-Production

@Ernest0-Production Ernest0-Production commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Search Repositories: Show Recent Visited Repositories when the search field is empty instead of running a blank API search.
  • Search Repositories: Add Disable Throttle preference for immediate search on each keystroke.
  • Search Repositories: Restore My Organizations filter when you belong to multiple organizations.
  • Repository history: Remove items from recently visited and refresh star state without a full list reload.
  • Search Repositories: Request fewer GraphQL fields per search result for faster responses.
  • Show Issues (per repository): Filter by open/closed/all and look up issues by #123.

Screencast

N/A — improvements to existing commands and repository issue list.

Checklist

Ernest0-Production and others added 7 commits August 13, 2026 19:32
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.
@Ernest0-Production
Ernest0-Production marked this pull request as ready for review August 17, 2026 22:28
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: github Issues related to the github extension AI Extension platform: macOS platform: Windows OP is contributor The OP of the PR is a contributor of the extension labels Aug 17, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

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 commands
BRANCH="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 dev

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days.

@greptile-apps

greptile-apps Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR restores repository-search history, filtering, pagination, and action-state improvements in the GitHub extension.

  • Adds recent-repository behavior and configurable search throttling.
  • Adds status filtering and exact-number lookup to per-repository issue lists.
  • Reduces repository search fields and paginates issue, discussion, and release results.
  • Updates repository history and star state without requiring full list reloads.

Confidence Score: 3/5

The 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

Filename Overview
extensions/github/src/components/RepositoryIssues.tsx Adds paginated status filtering and exact-number lookup, but a status-mismatched exact result falls through to an unrelated free-text search.
extensions/github/src/components/RepositoryActions.tsx Adds history and optimistic star-state actions, while the previously reported missing capability guards remain outstanding.
extensions/github/src/api/repository.graphql Reduces repository search fields and adds release pagination, but removing capability fields leaves RepositoryActions unable to suppress unavailable features.
extensions/github/src/helpers/issue.ts Parses exact issue references and documents the GitHub search API's lack of an issue-number qualifier.
extensions/github/src/hooks/useRepositories.ts Implements paginated repository retrieval and coordinates the restored repository search behavior.
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

@0xdhrv 0xdhrv self-assigned this Aug 22, 2026

@0xdhrv 0xdhrv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved ✅

@raycastbot
raycastbot merged commit 5f5e6d1 into raycast:main Aug 22, 2026
1 check passed
@github-actions

Copy link
Copy Markdown
Contributor

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

Comment on lines +58 to 64
const matchesStatus = statusFilter === "all" || (statusFilter === "closed" ? issue?.closed : !issue?.closed);
if (issue && matchesStatus) {
return {
data: [issue as IssueFieldsFragment],
hasMore: false,
};
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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.

Suggested change
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Extension extension fix / improvement Label for PRs with extension's fix improvements extension: github Issues related to the github extension OP is contributor The OP of the PR is a contributor of the extension platform: macOS platform: Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants