Merge pull request #931 from Codium-ai/tr/logs_filter

Add logging for skipping non-code files in GitHub provider
This commit is contained in:
Tal
2024-05-30 17:08:58 +03:00
committed by GitHub

View File

@ -147,6 +147,7 @@ class GithubProvider(GitProvider):
for file in files:
if not is_valid_file(file.filename):
get_logger().info(f"Skipping a non-code file: {file.filename}")
continue
new_file_content_str = self._get_pr_file_content(file, self.pr.head.sha) # communication with GitHub