Skip to content

Commit 3220e53

Browse files
author
Jet Xu
committed
fix bugs for get pr content
1 parent 3659283 commit 3220e53

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.1.9] - 2024-10-31
9+
10+
### Optimized
11+
- fix bugs for get pr content
12+
813
## [0.1.8] - 2024-11-03
914

1015
### Optimized

llama_github/utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,11 @@ def categorize_change(diff_text: str) -> List[str]:
288288
:return: A list of change categories.
289289
"""
290290
categories = []
291+
292+
if not diff_text:
293+
categories.append('general_change')
294+
return categories
295+
291296
patterns = {
292297
'function_added': r'^\+.*def\s+\w+\(',
293298
'function_removed': r'^-.*def\s+\w+\(',

llama_github/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.1.8'
1+
__version__ = '0.1.9'

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = llama-github
3-
version = 0.1.8
3+
version = 0.1.9
44
author = Jet Xu
55
author_email = [email protected]
66
description = Llama-github is an open-source Python library that empowers LLM Chatbots, AI Agents, and Auto-dev Agents to conduct Retrieval from actively selected GitHub public projects. It Augments through LLMs and Generates context for any coding question, in order to streamline the development of sophisticated AI-driven applications.

0 commit comments

Comments
 (0)