Zum Inhalt springen
Skillpedia
Deployment & Cloud (DevOps)40k · #7252

issue-fields-migration

Was er macht

Dieses Tool hilft dir, Informationen in GitHub Issues zu ordnen. Es kann bestehende Labels oder alte Projektfelder in strukturierte, durchsuchbare Felder umwandeln, zum Beispiel 'Priority' oder 'Type'.

Wann du ihn nutzt

  • ✓Wenn du Projekt-Labels in standardisierte Felder überführen willst.
  • ✓Wenn du Daten aus alten Projekten in die neuen GitHub-Felder übertragen willst.
  • ✓Um lose Labels durch strukturiertere Informationen zu ersetzen.

Link zum Skill

https://github.com/github/awesome-copilot/blob/main/skills/issue-fields-migration/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/github/awesome-copilot/blob/main/skills/issue-fields-migration/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Ich möchte die Labels 'bug' und 'feature' aus meinem Repository in das Feld 'Type' der Issue Fields migrieren.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Das Tool analysiert deine vorhandenen Labels oder Projektfelder. Anschließend wandelt es sie in die neuen Issue Fields von GitHub um, sodass du Informationen effizienter ordnen und finden kannst.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Issue Fields Migration

Issue fields are org-level typed metadata (single select, text, number, date) that replace label-based workarounds with structured, searchable, cross-repo fields. Every organization gets Priority, Effort, Start date, and Target date preconfigured, with support for up to 25 custom fields.

This skill bulk-migrates existing metadata into issue fields from two sources:

  • Repo labels: Convert labels like p0, p1, priority/high into structured issue field values (e.g. the Priority field). Supports migrating multiple labels at once and optionally removing them after migration.
  • Project V2 fields: Copy field values (single select, text, number, date, iteration) from a GitHub Project into the equivalent org-level issue fields.

When to Use

  • User added org-level issue fields that overlap with existing project fields
  • User wants to copy values from project fields to issue fields before deleting the old project fields
  • User asks about "migrating", "transferring", or "copying" project field data to issue fields
  • User wants to convert repo labels (e.g., p0, p1, p2, p3) into issue field values (e.g., Priority field)
  • User asks about replacing labels with issue fields or cleaning up labels after adopting issue fields

Prerequisites

  • The target org must have issue fields enabled
  • The issue fields must already exist at the org level
  • For project field migration: issue fields must be added to the project
  • For label migration: labels must exist on the target repo(s)
  • The user must have write access to the repos (and project, if migrating project fields)
  • gh CLI must be authenticated with appropriate scopes

Available Tools

MCP Tools (read operations)

Tool Purpose
mcp__github__projects_list List project fields (list_project_fields), list project items with values (list_project_items)
mcp__github__projects_get Get details of a specific project field or item

CLI / REST API

Operation Command
List org issue fields gh api /orgs/{org}/issue-fields -H "X-GitHub-Api-Version: 2026-03-10"
Read issue field values gh api /repos/{owner}/{repo}/issues/{number}/issue-field-values -H "X-GitHub-Api-Version: 2026-03-10"
Write issue field values gh api /repositories/{repo_id}/issues/{number}/issue-field-values -X POST -H "X-GitHub-Api-Version: 2026-03-10" --input -
Get repository ID gh api /repos/{owner}/{repo} --jq .id
List repo labels gh label list -R {owner}/{repo} --limit 1000 --json name,color,description
List issues by label gh issue list -R {owner}/{repo} --label "{name}" --state all --json number,title,labels --limit 1000
Remove label from issue gh api /repos/{owner}/{repo}/issues/{number}/labels/{label_name} -X DELETE

See references/issue-fields-api.md, references/projects-api.md, and references/labels-api.md for full API details.

Workflow

Step 0: Migration Source

Ask the user what they are migrating:

  1. "Are you migrating labels or project fields?"

  2. If the user says labels:

    • Ask: "Which org and repo(s) contain the labels?"
    • Ask: "Which labels do you want to migrate?" (they can name them or say "show me the labels first")
  3. If the user says project fields:

    • Ask: "Can you share the link to your project or tell me the org name and project number?"
    • Ask: "Which field do you want to migrate?"

Label Migration Flow

Use this flow when the user wants to convert repo labels into issue field values. Labels can only map to single_select issue fields (each label name maps to one option value).

Phase L1: Input & Label Discovery

  1. Ask the user for: org name and repo(s) to migrate.
  2. Fetch labels from each repo:
gh label list -R {owner}/{repo} --limit 1000 --json name,color,description
  1. Fetch org issue fields:
gh api /orgs/{org}/issue-fields \
  -H "X-GitHub-Api-Version: 2026-03-10" \
  --jq '.[] | {id, name, content_type, options: [.options[]?.name]}'

…

Häufige Fragen

Was sind 'Issue Fields'?

Das sind Felder auf Organisationsebene in GitHub, mit denen du Issues strukturierte Metadaten hinzufügen kannst, etwa Priorität, Datum oder Text. So musst du nicht nur auf Labels setzen.

Kann ich jede Art von Label migrieren?

Ja, du kannst Repository-Labels oder Werte aus Projektfeldern migrieren. Das Tool hilft dabei, sie den passenden Issue Fields zuzuordnen.

Brauche ich dafür besondere Berechtigungen?

Ja, du brauchst Schreibzugriff auf die Repositories und Projekte, die du migrieren willst. Außerdem müssen Issue Fields in deiner Organisation aktiviert sein.

Details

Originalbeschreibung des Autors

Bulk-migrate metadata to GitHub issue fields from two sources: repo labels (e.g. priority labels to a Priority field) and Project V2 fields. Use when users say "migrate my labels to issue fields", "migrate project fields to issue fields", "convert labels to issue fields", "copy project field values to issue fields", or ask about adopting issue fields. Issue fields are org-level typed metadata (sin

repo: github/awesome-copilot

Beliebtheit

GitHub-Sterne
40k
Platz im Ranking
#7252
Lizenz
MIT
Aktualisiert
15.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills