Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GitHub files API with pagination for PR diff #1491

Merged
merged 2 commits into from
Jul 5, 2024

Conversation

timbaev
Copy link
Contributor

@timbaev timbaev commented Jun 21, 2024

Used the same idea as in danger-js to get a list of files for PR diff using List pull requests files API from GitHub with pagination. The old Get a pull request API has a limit of 300 files and there is no pagination, which is why Danger can't leave an Inline comment with error 406 from the GitHub API.

Fixes #1489

Copy link
Member

@manicmaniac manicmaniac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good suggestion, thank you 👍

@manicmaniac
Copy link
Member

@timbaev Could you please add CHANGELOG entry before merging?

@manicmaniac manicmaniac self-requested a review June 26, 2024 00:52
@timbaev
Copy link
Contributor Author

timbaev commented Jun 28, 2024

@timbaev Could you please add CHANGELOG entry before merging?

No problem, thanks!

@manicmaniac manicmaniac merged commit 7beacab into danger:master Jul 5, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] GitHub api request fails when PR diff is > 300 files
2 participants