mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-12 08:40:38 +08:00
run_from_scratch
This commit is contained in:
@ -46,9 +46,9 @@ class PRSimilarIssue:
|
|||||||
# check if index exists, and if repo is already indexed
|
# check if index exists, and if repo is already indexed
|
||||||
run_from_scratch = False
|
run_from_scratch = False
|
||||||
if run_from_scratch: # for debugging
|
if run_from_scratch: # for debugging
|
||||||
|
pinecone.init(api_key=api_key, environment=environment)
|
||||||
if not index_name in pinecone.list_indexes():
|
if not index_name in pinecone.list_indexes():
|
||||||
get_logger().info('Removing index...')
|
get_logger().info('Removing index...')
|
||||||
pinecone.init(api_key=api_key, environment=environment)
|
|
||||||
pinecone.delete_index(index_name)
|
pinecone.delete_index(index_name)
|
||||||
get_logger().info('Done')
|
get_logger().info('Done')
|
||||||
|
|
||||||
@ -76,7 +76,6 @@ class PRSimilarIssue:
|
|||||||
else: # update index if needed
|
else: # update index if needed
|
||||||
pinecone_index = pinecone.Index(index_name=index_name)
|
pinecone_index = pinecone.Index(index_name=index_name)
|
||||||
issues_to_update = []
|
issues_to_update = []
|
||||||
issues_paginated_list = []
|
|
||||||
issues_paginated_list = self.git_provider.get_repo_issues(repo_obj)
|
issues_paginated_list = self.git_provider.get_repo_issues(repo_obj)
|
||||||
counter = 1
|
counter = 1
|
||||||
for issue in issues_paginated_list:
|
for issue in issues_paginated_list:
|
||||||
|
Reference in New Issue
Block a user