Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

git-bob

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-bob - npm Package Compare versions

Comparing version
0.24.0
to
0.24.1
+1
-1
PKG-INFO
Metadata-Version: 2.4
Name: git-bob
Version: 0.24.0
Version: 0.24.1
Summary: git-bob uses AI to solve Github-issues. It runs inside the Github CI, no need to install anything on your computer.

@@ -5,0 +5,0 @@ Home-page: https://github.com/haesleinhuepf/git-bob

Metadata-Version: 2.4
Name: git-bob
Version: 0.24.0
Version: 0.24.1
Summary: git-bob uses AI to solve Github-issues. It runs inside the Github CI, no need to install anything on your computer.

@@ -5,0 +5,0 @@ Home-page: https://github.com/haesleinhuepf/git-bob

@@ -1,4 +0,4 @@

__version__ = "0.24.0"
__version__ = "0.24.1"
__all__ = (
)

@@ -600,2 +600,3 @@ # This file contains utility functions using the github API via github-python:

Get the diff of a specific pull request in a GitHub repository.
Parameters

@@ -607,2 +608,3 @@ ----------

The pull request number to retrieve the diff for.
Returns

@@ -616,3 +618,2 @@ -------

Log().log(f"-> get_diff_of_pull_request({repository}, {pull_request})")
# Authenticate with GitHub
repo = get_repository_handle(repository)

@@ -623,9 +624,11 @@ access_token = os.getenv('GITHUB_API_KEY')

print(pull_request.diff_url)
# read the content of a url
headers = {'Authorization': f'token {access_token}'}
response = requests.get(pull_request.diff_url, headers=headers)
# Use GitHub's REST API endpoint for diffs with proper Accept header
api_url = f"https://api.github.com/repos/{repository}/pulls/{pull_request.number}"
headers = {
'Authorization': f'token {access_token}',
'Accept': 'application/vnd.github.v3.diff'
}
response = requests.get(api_url, headers=headers)
if response.status_code == 200:
# Return the content of the website
return response.text

@@ -933,1 +936,2 @@ else:

issue_obj.edit(state="closed")