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) <noreply@anthropic.com>
This commit is contained in:
parent
59a37c1080
commit
65be8c7f16
2 changed files with 3 additions and 3 deletions
|
|
@ -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 ──────────────────────────────────────────
|
||||
|
|
|
|||
|
|
@ -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 } } }'
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue