Skip to content

Commit d375443

Browse files
author
Jet Xu
committed
Prepare for release 0.1.2
1 parent 87d48a8 commit d375443

File tree

5 files changed

+25
-10
lines changed

5 files changed

+25
-10
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@ 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.2] - 2024-10-09
9+
10+
### Added
11+
- New `get_pr_content` method in `Repository` class for comprehensive PR data retrieval
12+
- Singleton pattern implementation for efficient PR data caching
13+
- Support for LLM-assisted PR analysis and Q&A capabilities
14+
- Automatic caching mechanism to reduce API calls and improve performance
15+
- Threaded comment and review retrieval functionality
16+
17+
### Changed
18+
- Improved PR data fetching process to include metadata, file changes, and comments
19+
20+
### Optimized
21+
- Reduced API calls through intelligent caching of PR data
22+
23+
### Developer Notes
24+
- First call to `get_pr_content` fetches data from GitHub API, subsequent calls use cached data
25+
- Cache automatically refreshes when PR is updated
26+
827
## [0.1.1] - 2024-08-23
928

1029
### Added

docs/examples/advanced_integration.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@ The `get_pr_content` method is a new feature in the `Repository` class of the ll
66
## Usage
77

88
```python
9-
from llama_github.github_entities import Repository
9+
from llama_github import GithubRAG
1010

11-
# Assuming you have already initialized a Repository object
12-
repo = Repository("owner/repo_name", github_instance)
13-
14-
# Retrieve PR content
15-
pr_number = 123
16-
pr_content = repo.get_pr_content(pr_number)
11+
github_rag=GithubRAG(github_access_token=github_access_token)
12+
repo = github_rag.RepositoryPool.get_repository("JetXu-LLM/llama-github")
13+
pr_content = repo.get_pr_content(number=15)
1714
```
1815

1916
## Features

llama_github/data_retrieval/github_entities.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from dateutil import parser
1414
from datetime import timezone
1515
import base64
16-
import ast
1716

1817
from llama_github.utils import DiffGenerator, CodeAnalyzer
1918

llama_github/version.py

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

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.1
3+
version = 0.1.2
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)