Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Create a Skill for reading issue-level custom fields (Type/Priority/Effort) via GraphQL

Aperta Adatta ai principianti
#14,802 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
88/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
github, graphql
Ambito
documentation

Direzione di ricerca

Crea la SKILL.md richiesta in .github/skills/ e usa la ricetta GraphQL dell’issue come punto di partenza. Documenta issueType, issueFieldValues, le union IssueFieldValue e IssueFields, la query da copiare e incollare e la variante batch con alias. Il lavoro è completo quando lo skill copre il filtraggio per Priority/Effort, spiega perché labels e projectItems sono diversi e soddisfa ogni criterio di accettazione elencato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

NewApi-Net11
Summary

Create a Copilot Skill (under .github/skills/) that documents how to read GitHub issue-level custom fields (the new Type → Priority / Effort fields that appear on issues, distinct from Projects v2 fields and from labels).

Motivation

Triaging the NewApi-Net11 work relies on the Priority field (High/Medium/Low). These are not labels and not Projects v2 items, so the usual gh issue list --label ... and projectItems/projectV2 GraphQL paths do not surface them. Discovering the correct GraphQL shape took several introspection round-trips; a Skill would let the agent (and contributors) read/filter by these fields immediately.

What the Skill should document

The working GraphQL recipe on the Issue type:

  • issueType { name } — the Type (e.g. Bug).
  • issueFieldValues(first: N) { nodes { ... } } — the custom field values. Each node is a union IssueFieldValue with members:
    • IssueFieldSingleSelectValue (Priority/Effort): select value and field { ... on IssueFieldSingleSelect { name } }.
    • IssueFieldTextValue, IssueFieldNumberValue, IssueFieldDateValue, IssueFieldMultiSelectValue.
  • The field accessor is the union IssueFields (members IssueFieldSingleSelect, IssueFieldText, IssueFieldNumber, IssueFieldDate, IssueFieldMultiSelect) — you must use an inline fragment to read name.

Example query that returns Priority for an issue:

query {
  repository(owner: "dotnet", name: "winforms") {
    issue(number: 14795) {
      number
      issueType { name }
      issueFieldValues(first: 20) {
        nodes {
          __typename
          ... on IssueFieldSingleSelectValue {
            value
            field { ... on IssueFieldSingleSelect { name } }
          }
        }
      }
    }
  }
}

Returns: issueType.name = "Bug", and a node { value: "High", field: { name: "Priority" } }.

Acceptance criteria
  • A SKILL.md describing when to use this (filtering NewApi-Net11 work by Priority/Effort), the union shapes, the copy-paste GraphQL, and a batched multi-issue variant (aliased sub-selections) for reading many issues at once.
  • A short note that gh issue list --label cannot filter these fields, and that Projects v2 (projectItems) is a different mechanism.
Lingua principale
C#
Stelle
4.9k
Fork
1.1k
Merge medio
10h 43m
PR unite (30g)
63

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dotnet/winforms

Tutte le issue di dotnet/winforms

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.