From 65be8c7f16391263f795f7f84e05ffbf2b7e5375 Mon Sep 17 00:00:00 2001 From: Mikael Hugo Date: Sat, 2 May 2026 17:56:44 +0200 Subject: [PATCH] fix(sf): update stale repo references to singularity-forge/sf-run forensics.md: GraphQL queries used owner:"sf-build" name:"sf-2" while the gh issue create command above them correctly used --repo singularity-forge/sf-run. This meant /sf forensics could create the issue but the follow-up calls to set issue type would silently fail against a non-existent repo. Both GraphQL queries now match the canonical singularity-forge/sf-run. error-classifier.ts: doc-comment @see link pointed to the old sf-build/sf repo URL. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/resources/extensions/sf/error-classifier.ts | 2 +- src/resources/extensions/sf/prompts/forensics.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/resources/extensions/sf/error-classifier.ts b/src/resources/extensions/sf/error-classifier.ts index c43800337..bfbadde35 100644 --- a/src/resources/extensions/sf/error-classifier.ts +++ b/src/resources/extensions/sf/error-classifier.ts @@ -7,7 +7,7 @@ * * Single entry point: classifyError(errorMsg, retryAfterMs?) * - * @see https://github.com/sf-build/sf/issues/2577 + * @see https://github.com/singularity-forge/sf-run/issues/2577 */ // ── ErrorClass discriminated union ────────────────────────────────────────── diff --git a/src/resources/extensions/sf/prompts/forensics.md b/src/resources/extensions/sf/prompts/forensics.md index 286c5537b..8e20e3579 100644 --- a/src/resources/extensions/sf/prompts/forensics.md +++ b/src/resources/extensions/sf/prompts/forensics.md @@ -180,8 +180,8 @@ rm -f /tmp/sf-forensic-issue.md # Step 2: Set issue type via GraphQL (gh issue create has no --type flag) ISSUE_NUM=$(echo "$ISSUE_URL" | grep -oE '[0-9]+$') -ISSUE_ID=$(gh api graphql -f query='{ repository(owner:"sf-build",name:"sf-2") { issue(number:'"$ISSUE_NUM"') { id } } }' --jq '.data.repository.issue.id') -TYPE_ID=$(gh api graphql -f query='{ repository(owner:"sf-build",name:"sf-2") { issueTypes(first:20) { nodes { id name } } } }' --jq '.data.repository.issueTypes.nodes[] | select(.name=="Bug") | .id') +ISSUE_ID=$(gh api graphql -f query='{ repository(owner:"singularity-forge",name:"sf-run") { issue(number:'"$ISSUE_NUM"') { id } } }' --jq '.data.repository.issue.id') +TYPE_ID=$(gh api graphql -f query='{ repository(owner:"singularity-forge",name:"sf-run") { issueTypes(first:20) { nodes { id name } } } }' --jq '.data.repository.issueTypes.nodes[] | select(.name=="Bug") | .id') gh api graphql -f query='mutation { updateIssue(input:{id:"'"$ISSUE_ID"'",issueTypeId:"'"$TYPE_ID"'"}) { issue { number } } }' ```