Files
Iulia Bejan cdfa34e0a9 Order list_label results by issue count (descending) (#2974)
* Order list_label results by issue count (descending)

Sends orderBy: {field: ISSUE_COUNT, direction: DESC} on the GraphQL
labels query so the most-used labels (by issue count) are returned
first. ISSUE_COUNT is accepted by the GitHub GraphQL API but is not
part of the public schema docs or the githubv4 client library's
LabelOrderField constants, so it is defined locally.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* regen docs

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-08-10 10:35:52 +02:00

26 lines
682 B
Plaintext

{
"annotations": {
"idempotentHint": false,
"readOnlyHint": true,
"title": "List labels from a repository"
},
"description": "List labels from a repository, ordered by issue count (descending) so the most-used labels are returned first",
"inputSchema": {
"properties": {
"owner": {
"description": "Repository owner (username or organization name) - required for all operations",
"type": "string"
},
"repo": {
"description": "Repository name - required for all operations",
"type": "string"
}
},
"required": [
"owner",
"repo"
],
"type": "object"
},
"name": "list_label"
}