Skip to content

Commit

Permalink
406 max lines case
Browse files Browse the repository at this point in the history
  • Loading branch information
angelachenn committed Jan 20, 2025
1 parent b2ae5cc commit 568919e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tap_github/repository_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -1474,9 +1474,12 @@ def validate_response(self, response: requests.Response) -> None:
if (
contents["message"]
== "Sorry, the diff exceeded the maximum number of files (300). Consider using 'List pull requests files' API or locally cloning the repository instead." # noqa: E501
) or (
contents["message"]
== "Sorry, the diff exceeded the maximum number of lines (20000)."
):
self.logger.info(
"Skipping PR. The diff exceeded the maximum number of files (300)."
"Skipping PR. The diff exceeded the maximum number of files (300) or lines (20000)." # noqa: E501
)
return
super().validate_response(response)
Expand Down

0 comments on commit 568919e

Please sign in to comment.