Skip to content

Update github-copilot extension#25205

Merged
raycastbot merged 5 commits intoraycast:mainfrom
pedrocostadev:ext/github-copilot
Feb 8, 2026
Merged

Update github-copilot extension#25205
raycastbot merged 5 commits intoraycast:mainfrom
pedrocostadev:ext/github-copilot

Conversation

@pedrocostadev
Copy link
Contributor

@pedrocostadev pedrocostadev commented Feb 6, 2026

Description

Adds premium requests to view tasks

Screencast

Screenshot 2026-02-06 at 17 17 08

Checklist

- improve mocks
- Compact date and count
- Add premium tokens to the view tasks list items
- Pull contributions
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: github-copilot Issues related to the github-copilot extension AI Extension platform: macOS platform: Windows OP is contributor The OP of the PR is a contributor of the extension labels Feb 6, 2026
@raycastbot
Copy link
Collaborator

raycastbot commented Feb 6, 2026

Thank you for your contribution! 🎉

🔔 @timrogers @thomaspaulmann @gdarchen @pedrocostadev @xilopaint 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-copilot"
FORK_URL="https://github.com/pedrocostadev/raycast-extensions.git"
EXTENSION_NAME="github-copilot"
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 10-15 business days.

@pedrocostadev pedrocostadev marked this pull request as ready for review February 6, 2026 17:20
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 6, 2026

Greptile Overview

Greptile Summary

This PR adds premium request tracking to the "View Tasks" command in the GitHub Copilot extension. The implementation fetches agent session data in parallel with task data from the new /agents/sessions API endpoint, aggregates premium request counts by pull request global ID, and displays them in the task list with a bolt icon. A new formatRelativeDate utility provides human-readable date formatting (e.g., "2m", "3h", "Mon 5") to replace the previous date display format.

Key changes:

  • Fetches agent sessions in parallel with tasks using Promise.all for performance
  • Adds premiumRequests field to TaskWithPullRequest type
  • Displays premium request count with bolt icon when count > 0
  • Uses useMemo for date calculations to optimize re-renders
  • Gracefully handles sessions API failures (falls back to empty array)
  • Updates dummy test data to include premium request counts

The implementation is well-structured with proper error handling and follows React best practices with memoization.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The implementation is straightforward and follows established patterns in the codebase. Parallel API fetching is done correctly with Promise.all, error handling is graceful (falls back to empty sessions on failure), TypeScript types are properly defined, React optimizations use useMemo appropriately, and the changelog follows the required format with {PR_MERGE_DATE} placeholder.
  • No files require special attention

Important Files Changed

Filename Overview
extensions/github-copilot/src/services/copilot.ts Added parallel fetching of agent sessions to retrieve premium request counts, with proper error handling
extensions/github-copilot/src/components/TaskItem.tsx Updated UI to display premium requests with bolt icon and relative date formatting using memoization
extensions/github-copilot/src/utils.tsx Added formatRelativeDate utility for human-readable date formatting (e.g., "2m", "3h", "Mon 5")

@raycast-extensions-bot raycast-extensions-bot bot added the Approved Approved by a user label Feb 6, 2026
@pernielsentikaer
Copy link
Collaborator

Hi 👋

I might have created a merge conflict. Do you think you can help resolve it @pedrocostadev?

@pernielsentikaer pernielsentikaer self-assigned this Feb 6, 2026
- minor improvement on TaskItem
- minor improvement on TaskItem
- Pull contributions
@pedrocostadev
Copy link
Contributor Author

Hi 👋

I might have created a merge conflict. Do you think you can help resolve it @pedrocostadev?

No problem @pernielsentikaer 😎 Just fixed it.

@pedrocostadev
Copy link
Contributor Author

Can we merge this @pernielsentikaer @timrogers ?

Copy link
Collaborator

@pernielsentikaer pernielsentikaer left a comment

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 d9ee3fd into raycast:main Feb 8, 2026
2 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2026

Published to the Raycast Store:
https://raycast.com/github/github-copilot

@raycastbot
Copy link
Collaborator

🎉 🎉 🎉

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

@pedrocostadev pedrocostadev deleted the ext/github-copilot branch February 8, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Extension Approved Approved by a user extension fix / improvement Label for PRs with extension's fix improvements extension: github-copilot Issues related to the github-copilot 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.

4 participants