PR #119
60 votes · 59 up · 1 down
60
Total Votes
+59
Upvotes
-1
Downvotes
+59-1
All Activity(62)
Fix merge conflict indicator showing false positives
Problem
The health indicators merged in #8 are showing conflicts on PRs that don't have conflicts.
Root cause: getPRMergeStatus() and getCommitStatus() were missing auth headers. Without authentication, GitHub API returns null for mergeable, which defaults to false via ?? false.
Fix
Use getHeaders() instead of hardcoded headers - same pattern as all other API calls in this file.
Testing
Verified against GitHub API:
- PR #13:
mergeable: false(actual conflicts) ✅ - PR #52:
mergeable: true(no conflicts) ✅ - PR #11:
mergeable: true(no conflicts) ✅
cc @matthewmayer @FelixLttks