Issue Description
The GitHub client (oss/github.py) should provide more helpful error messages when API calls fail. Currently, some error messages may be too generic or not actionable.
Current Behavior
When GitHub API calls fail, the error messages might not clearly indicate:
- What operation failed
- Why it failed (authentication, rate limit, network, etc.)
- How to fix the issue
- What the user should do next
Expected Behavior
Error messages should:
- Clearly state what operation failed (e.g., "Failed to fetch issue #123")
- Indicate the type of error (authentication, rate limit, not found, network, etc.)
- Provide actionable guidance (e.g., "Check your GitHub token" or "Rate limit exceeded, wait 60 seconds")
- Include relevant context (issue number, PR number, etc.)
Files to Modify
oss/github.py - Improve error handling and messages in:
fetch_issue()
create_pr()
get_pr_status()
- Other API methods
Acceptance Criteria
Testing
- Test with invalid GitHub token
- Test with rate limit scenario
- Test with non-existent issue/PR
- Test with network errors
- Verify error messages are helpful
Priority
Medium - Improves user experience when GitHub API calls fail
Issue Description
The GitHub client (
oss/github.py) should provide more helpful error messages when API calls fail. Currently, some error messages may be too generic or not actionable.Current Behavior
When GitHub API calls fail, the error messages might not clearly indicate:
Expected Behavior
Error messages should:
Files to Modify
oss/github.py- Improve error handling and messages in:fetch_issue()create_pr()get_pr_status()Acceptance Criteria
Testing
Priority
Medium - Improves user experience when GitHub API calls fail