Add docs editable blacklist of file extensions like sql, yaml...

This commit is contained in:
Hussam.lawen
2023-10-17 18:50:39 +03:00
parent bce2262d4e
commit 3673924fe9
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,