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

Pull request linting #618

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Pull request linting #618

merged 1 commit into from
Oct 21, 2024

Conversation

Taepper
Copy link
Collaborator

@Taepper Taepper commented Oct 17, 2024

resolves #606

Summary

The github api for pull-requests is specified here:
https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#list-pull-requests-files

I now specify the per_page variable which is used for pagination to return 100 files (which is unfortunately the maximum) The default value is 30. This means that before no more than 30 files were returned by the endpoint in the CI action

Additionally, I request the next page until we receive no more data, thus guaranteeing that we receive a complete file list, even when there are more than 100 files changed / added / moved / removed in the PR.

PR Checklist

  • All necessary documentation has been adapted or there is an issue to do so.
  • The implemented feature is covered by an appropriate test.

Copy link
Contributor

There is no change in the changelog. This PR will not produce a new releasable version.

Copy link
Contributor

@fengelniederhammer fengelniederhammer left a comment

Choose a reason for hiding this comment

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

Seems to work as far as I could test it (on some other test branch)

@Taepper Taepper merged commit 5ac5f27 into main Oct 21, 2024
9 checks passed
@Taepper Taepper deleted the 606-pull-request-linting branch October 21, 2024 13:30
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.

Pull request linting not working for large PRs
2 participants