-
-
Notifications
You must be signed in to change notification settings - Fork 10
fix(issue-comment): add ConvertFrom-Json error handling #700
Copy link
Copy link
Closed
Labels
area-promptsAgent prompts and templatesAgent prompts and templatesarea-skillsSkills documentation and patternsSkills documentation and patternsbugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomerspriority:P2Normal: Standard enhancement or bug fix, moderate impactNormal: Standard enhancement or bug fix, moderate impact
Milestone
Metadata
Metadata
Assignees
Labels
area-promptsAgent prompts and templatesAgent prompts and templatesarea-skillsSkills documentation and patternsSkills documentation and patternsbugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomerspriority:P2Normal: Standard enhancement or bug fix, moderate impactNormal: Standard enhancement or bug fix, moderate impact
Summary
The
Post-IssueComment.ps1script has unprotectedConvertFrom-Jsoncalls that could fail silently with malformed API responses.Problem
Lines 85 and 269 contain
ConvertFrom-Jsonwithout error handling:If the GitHub API returns invalid JSON (rate limiting HTML page, network truncation, API error response), these calls will fail with an unhelpful error.
Solution
Wrap in try-catch with descriptive error handling:
Severity
LOW - API responses are typically well-formed, but edge cases exist:
Affected Files
.claude/skills/github/scripts/issue/Post-IssueComment.ps1Related
🤖 Generated with Claude Code