From 2e33fcf735c53bb9701947fac3c5502bc38de3b6 Mon Sep 17 00:00:00 2001 From: Jake Fineman Date: Thu, 23 Jul 2026 22:25:11 -0400 Subject: [PATCH] fix(hygiene): drop unused $p var from map-fields item query MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GraphQL rejected the projectItems query with "Variable \$p is declared but not used" — \$p was only referenced in the client-side jq filter, not the query body. Removing it fixes the map-fields job (smoke issue #18 failed on this). The project filter stays in jq via the PROJECT_ID shell var. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/ticket-hygiene.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ticket-hygiene.yml b/.github/workflows/ticket-hygiene.yml index dbc7db0..bcc3245 100644 --- a/.github/workflows/ticket-hygiene.yml +++ b/.github/workflows/ticket-hygiene.yml @@ -67,9 +67,9 @@ jobs: # --- resolve (or create) this issue's project item --- item="$(gh api graphql -f query=' - query($n:ID!,$p:ID!){ node(id:$n){ ... on Issue { + query($n:ID!){ node(id:$n){ ... on Issue { projectItems(first:20,includeArchived:false){ nodes{ id project{ id } } } } } }' \ - -F n="$ISSUE_NODE" -F p="$PROJECT_ID" \ + -F n="$ISSUE_NODE" \ --jq ".data.node.projectItems.nodes[]|select(.project.id==\"$PROJECT_ID\")|.id" | head -1 || true)" if [ -z "${item:-}" ]; then item="$(gh api graphql -f query='