-
-
Notifications
You must be signed in to change notification settings - Fork 10
feat(issue-comment): add 403 handling to Update-IssueComment function #701
Copy link
Copy link
Closed
Labels
area-promptsAgent prompts and templatesAgent prompts and templatesarea-skillsSkills documentation and patternsSkills documentation and patternsenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomerspriority:P2Normal: Standard enhancement or bug fix, moderate impactNormal: Standard enhancement or bug fix, moderate impactquestionFurther information is requestedFurther information is requested
Milestone
Metadata
Metadata
Assignees
Labels
area-promptsAgent prompts and templatesAgent prompts and templatesarea-skillsSkills documentation and patternsSkills documentation and patternsenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomerspriority:P2Normal: Standard enhancement or bug fix, moderate impactNormal: Standard enhancement or bug fix, moderate impactquestionFurther information is requestedFurther information is requested
Summary
The
Update-IssueCommentfunction inGitHubCore.psm1lacks the 403-specific error handling that was added toPost-IssueComment.ps1in PR #698.Problem
When updating an existing comment fails with 403 Permission Denied, users get a generic error message instead of the actionable guidance provided for new comment posts.
Current behavior in
Update-IssueComment:Expected behavior (matching Post-IssueComment.ps1):
User Impact
A user might have permission to read comments but not edit them. When they try to update an existing comment and get 403, they see "Failed to update comment" instead of:
Solution
Apply the same 403 handling pattern from
Post-IssueComment.ps1toUpdate-IssueComment:Write-PermissionDeniedErroror similarAffected Files
.claude/skills/github/modules/GitHubCore.psm1-Update-IssueCommentfunctionRelated
🤖 Generated with Claude Code