From dcaa43dc2c444c6367b28416a7722ebd41b812a5 Mon Sep 17 00:00:00 2001 From: Sebastian Frick Date: Thu, 19 Feb 2026 12:48:22 +0100 Subject: [PATCH] docs: update memory --- CLAUDE.md | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 9fbefde..5ae38b5 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -119,8 +119,48 @@ Issue-Body mit Markdown... EOF )" -# Auflisten +# Auflisten (nach Milestone, State, Label) nix shell nixpkgs#gh -c gh issue list --milestone "Name" --limit 50 +nix shell nixpkgs#gh -c gh issue list --milestone "Name" --state open --json number,title,labels \ + --jq '.[] | "\(.number)\t\(.title)"' | sort -n + +# Details anzeigen +nix shell nixpkgs#gh -c gh issue view 3 --json title,body,projectItems + +# Kommentieren +nix shell nixpkgs#gh -c gh issue comment 3 --body "Kommentar-Text" + +# Schließen (mit optionalem Kommentar) +nix shell nixpkgs#gh -c gh issue close 3 --comment "$(cat <<'EOF' +Abschluss-Kommentar mit Markdown... +EOF +)" +``` + +### GitHub Projects (Projektstatus ändern) + +```bash +# Projekt-IDs: +# Project: PVT_kwHOAvvITc4BPlrt +# Status-Field: PVTSSF_lAHOAvvITc4BPlrtzg99FPE +# Status-Optionen: +# Todo: f75ad846 +# In Progress: 47fc9ee4 +# Done: 98236657 +# Test: d755b468 +# Completed: b7405d2f + +# Item-ID eines Issues im Projekt ermitteln (z.B. Issue #3) +nix shell nixpkgs#gh -c gh api graphql -f query='{ node(id: "PVT_kwHOAvvITc4BPlrt") { ... on ProjectV2 { items(first: 50) { nodes { id content { ... on Issue { number title } } } } } } }' \ + --jq '.data.node.items.nodes[] | select(.content.number == 3) | .id' + +# Status ändern (Item-ID einsetzen) +nix shell nixpkgs#gh -c gh project item-edit \ + --project-id PVT_kwHOAvvITc4BPlrt \ + --id \ + --field-id PVTSSF_lAHOAvvITc4BPlrtzg99FPE \ + --single-select-option-id 47fc9ee4 \ + --format json ``` ## Doku