Merge pull request #385 from Codium-ai/hl/fix_add_docs_in_scripts

Add Blacklist for Non-Editable File Extensions in Documentation
This commit is contained in:
Hussam Lawen
2023-10-19 11:21:36 +03:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@ -65,6 +65,11 @@ class PRAddDocs:
async def _prepare_prediction(self, model: str):
get_logger().info('Getting PR diff...')
# Disable adding docs to scripts and other non-relevant text files
from pr_agent.algo.language_handler import bad_extensions
bad_extensions += get_settings().docs_blacklist_extensions.docs_blacklist
self.patches_diff = get_pr_diff(self.git_provider,
self.token_handler,
model,