Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 17, 2025

Adds a feature to display the remaining GitHub API rate limit requests on GitHub pages.

Screenshot

GitHub Rate Limit Badge

Changes Made

  1. New content script (github-rate-limit.js):

    • Fetches GitHub API rate limit information from the public API
    • Displays a color-coded badge in the bottom-right corner (green/yellow/red based on remaining requests)
    • Shows detailed tooltip on hover with reset time
    • Auto-refreshes every 5 minutes
    • Click to manually refresh
    • Proper error handling and interval cleanup
  2. Updated manifest.json:

    • Registered content script to run on *://*.github.com/* pages

Features

  • Color-coded badge: Green (plenty remaining), Yellow (medium), Red (low remaining)
  • Detailed tooltip: Shows exact count, limit, and reset time on hover
  • Auto-refresh: Updates rate limit info every 5 minutes
  • Manual refresh: Click the badge to refresh immediately
  • Note: Displays unauthenticated request limits (60/hour) as indicated in the tooltip
Original prompt

add into the github website how many github agent requests you have for the rate limit remaining


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@coderabbitai
Copy link

coderabbitai bot commented Nov 17, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@DonnieBLT
Copy link
Collaborator

@copilot try again

@DonnieBLT
Copy link
Collaborator

@copilot continue

@DonnieBLT
Copy link
Collaborator

@copilot go

Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Nov 25, 2025

@copilot go

Implemented the GitHub API rate limit display feature in commit 654d84b.

The extension now shows a badge in the bottom-right corner on GitHub pages displaying remaining API requests:

GitHub Rate Limit Badge

Features:

  • Color-coded badge (green/yellow/red based on remaining requests)
  • Tooltip on hover showing detailed info and reset time
  • Auto-refreshes every 5 minutes
  • Click to manually refresh

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/rate_limit
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Add display of remaining GitHub agent requests Add display of remaining GitHub API rate limit requests Nov 25, 2025
@DonnieBLT
Copy link
Collaborator

@copilot I mean for copilot requests and fix the merge conflict

Copy link
Contributor Author

Copilot AI commented Nov 25, 2025

@copilot I mean for copilot requests and fix the merge conflict

I need some clarification:

  1. Copilot requests: GitHub Copilot doesn't expose rate limit information through a public API that browser extensions can access. Copilot usage limits are managed by GitHub internally and shown in user settings. Could you clarify what specific Copilot metrics you'd like to display? Or would you like to show a link to the GitHub Copilot settings page instead?

  2. Merge conflict: I cannot fix merge conflicts directly - I don't have permission to pull from the main branch. Could you please merge the main branch into this PR through the GitHub UI, or resolve the conflict manually?

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

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants