list_issues and search_issues: inconsistent `fields` allow-lists (`html_url` rejected by list)
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 62/100
Direzione di ricerca
Inizia individuando gli schemi dei campi di list_issues e search_issues e l’errore di validazione che indica i campi accettati. Confronta le rispettive liste di campi consentiti, quindi esamina i test esistenti per ciascuno strumento. Aggiungi un controllo per assicurarti che gli insiemi di campi restino sincronizzati. Il lavoro è completo quando entrambi accettano i campi condivisi, incluso html_url, e i test coprono gli schemi corrispondenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
list_issues and search_issues return the same kind of object but accept different fields allow-lists. In particular, html_url is accepted by search_issues and rejected by list_issues:
search_issues(fields: ["number","title","state","html_url"])succeeds.list_issues(fields: ["number","title","state","html_url"])fails with:
fields[3]: Expected "number" | "title" | "body" | "state" | "user" | "labels" | "assignees" | "comments" | "created_at" | "updated_at" | "field_values"
This forces callers to keep separate field lists for two tools that should be interchangeable, and it turns a simple "list or search, same projection" workflow into a retry. html_url is a standard, useful field (linking issues), so its absence from list_issues is surprising.
Steps to reproduce the behavior
- Call
search_issueswithfields: ["number","title","state","html_url"]. - Observe success and
html_urlin the results. - Call
list_issueswith the samefields. - Observe the invalid-arguments error above.
Expected vs actual behavior
Expected: both tools accept the same issue-field allow-list, including html_url, or share a single schema/type for issue projections.
Actual: the allow-lists diverge, and a field valid in one tool is invalid in the other.
Proposed solution
Define one shared issue-field schema used by list_issues, search_issues, and (with #3959) issue_read. Include at least:
number, title, state, state_reason, user.login, labels, assignees, milestone, comments, created_at, updated_at, closed_at, html_url, and opt-in body.
Return the allowed field list in validation errors, and add a test that the list/search field sets stay in sync.
Example prompts or workflows (for tools/toolsets only)
- "List the 30 newest issues with number, title, state, and URL; then run the same query as a search." — same
fieldsargument for both calls. - "Build a release-notes table with issue links from either a list or a search."
- "Switch from
search_issuestolist_issueswhen the search rate limit is hit, without rewriting the projection."
Additional context
Related: #3605 (inconsistent parameter names), #3286 (PR response field filtering), #3959 (issue_read field filtering), #2425 (schema descriptions), #2270 (closed: projects_list ignored fields).
Environment: OpenCode 2.4.1, hosted endpoint https://api.githubcopilot.com/mcp/, toolsets repos,issues,pull_requests,actions.
Logs
list_issues fields error:
fields[3]: Expected "number" | "title" | "body" | "state" | "user" | "labels" | "assignees" | "comments" | "created_at" | "updated_at" | "field_values"
- Lingua principale
- Go
- Stelle
- 34.8k
- Fork
- 5.4k
- Merge medio
- 3g 22h
- PR unite (30g)
- 31
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di github/github-mcp-server
-
Scope-challenge middleware fails open when the token-scope fetch returns an errorForse già presa @Shanmukh-l33t l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
github/github-mcp-server#3929 ·
I maintainer di solito rispondono entro 3 giorni
-
ListLabelsOutput drops every label id from the typed responseForse già presa @Shanmukh-l33t l’ha presa 3 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
github/github-mcp-server#3923 · 1 reazione ·
I maintainer di solito rispondono entro 3 giorni
-
create_or_update_file rejects explicitly empty file contentForse già presa @Elon-Jiang l’ha presa 8 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
github/github-mcp-server#3883 ·
I maintainer di solito rispondono entro 3 giorni
-
csv_output silently overwrites distinct fields when flattened keys collideForse già presa @Mystery01092000 l’ha presa 9 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
github/github-mcp-server#3865 ·
I maintainer di solito rispondono entro 3 giorni
-
update_issue_labels is annotated destructiveHint: false but replaces (removes) existing labelsForse già presa @shhhhhhjokerist l’ha presa 16 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
github/github-mcp-server#3760 · 2 commenti ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di github/github-mcp-server
Issue simili
-
test_archive_is_downloaded_after_logout_login doesn't wait for the storage client after loginAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
JuliusBrussee/caveman#1594 ·
I maintainer di solito rispondono entro 1 giorno
-
C-bug O-community X-blathers-triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
cockroachdb/cockroach#176264 · 1 commento ·
-
security trivy
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
kubefleet-dev/kubefleet#1068 ·
I maintainer di solito rispondono entro 3 giorni