Skip to content

Fix: Add authentication to pull request diff retrieval for private repositories - #727

Merged
haesleinhuepf merged 3 commits into
mainfrom
git-bob-mod-bPNMBDunqy
Jun 22, 2025
Merged

Fix: Add authentication to pull request diff retrieval for private repositories#727
haesleinhuepf merged 3 commits into
mainfrom
git-bob-mod-bPNMBDunqy

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This message was generated by git-bob (version: 0.23.0, model: claude-3-5-sonnet-20241022, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.

Fixed an issue with the get_diff_of_pull_request function by adding GitHub authentication headers to the requests.get() call. The function was failing to retrieve diffs from private repositories because it lacked proper authentication. Now, it uses the GitHub API token from environment variables to create an authorization header, allowing access to both public and private repository diffs.

closes #726

@codecov

codecov Bot commented Jun 22, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.16%. Comparing base (998fe95) to head (fc24289).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #727      +/-   ##
==========================================
+ Coverage   59.11%   59.16%   +0.04%     
==========================================
  Files          14       14              
  Lines        1886     1888       +2     
==========================================
+ Hits         1115     1117       +2     
  Misses        771      771              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@haesleinhuepf
haesleinhuepf merged commit a4123a2 into main Jun 22, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: get_diff_of_pull_request fails for private repositories

1 participant