-
Notifications
You must be signed in to change notification settings - Fork 648
fix issue 622 #631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
fix issue 622 #631
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Verify the new GitHub Copilot API endpoint
The base API URL has been changed to
https://api.githubcopilot.com. Ensure this is the correct and stable endpoint for GitHub Copilot.🌐 Web query:
💡 Result:
GitHub Copilot offers several API endpoints for different functionalities:
Copilot Metrics API: This API provides aggregated metrics for various GitHub Copilot features, such as active users, code completions, and Copilot Chat usage. The base endpoint is:
For example, to retrieve Copilot metrics for an organization, you can use:
Replace
{org}with your organization's name. (docs.github.com)Copilot User Management API: This API allows you to manage GitHub Copilot Business subscriptions for your organization, including adding or removing users and teams. The base endpoint is:
For instance, to list all Copilot seat assignments for an organization:
Replace
{org}with your organization's name. (docs.github.com)Copilot Chat API: For Copilot Chat functionalities, the endpoint is:
This endpoint is used for managing chat threads and messages within Copilot Chat. (den.dev)
Regarding the endpoint
https://api.githubcopilot.com, it is not recognized as an official GitHub Copilot API endpoint. The correct endpoints are as listed above.Citations:
Update GitHub Copilot API endpoint
The assigned base URL (
https://api.githubcopilot.com) is not an official Copilot endpoint. Please replace it with the correct one for your use case:• For Copilot Metrics (usage & telemetry):
https://api.github.com/copilot/usage• For Copilot Business user/seat management:
https://api.github.com/orgs/{org}/copilot• For Copilot Chat threads & messages:
https://api.individual.githubcopilot.com/github/chat/threadsLocation:
Suggested change (example using Metrics API):
📝 Committable suggestion
🤖 Prompt for AI Agents