Commit 2c3abcf
committed
🚀 CRITICAL FIX: Resolve GitHub diff API header issue
🐛 ROOT CAUSE IDENTIFIED:
- GitHub API was returning JSON metadata instead of diff content
- Session headers were set to 'application/vnd.github.v3+json'
- This caused 16,951 characters of PR JSON data instead of actual diff
🔧 SOLUTION:
- Override Accept header in get_pr_diff() method specifically
- Use 'application/vnd.github.v3.diff' for diff requests
- Maintain JSON format for other API calls
✅ EXPECTED RESULT:
- Should now receive actual Git diff content
- Unidiff parser will find files to process
- Code review will work as intended
This resolves the core issue where PatchSet was empty despite having
'content' - we were parsing JSON instead of diff format.1 parent 33d2e57 commit 2c3abcf
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
178 | 183 | | |
179 | | - | |
| 184 | + | |
180 | 185 | | |
181 | 186 | | |
182 | 187 | | |
| |||
0 commit comments