Skip to content

Conversation

@2bndy5
Copy link
Contributor

@2bndy5 2bndy5 commented Sep 5, 2024

This uses the paginated JSON responses from Github's REST API to get file changes (with individual diffs) when the full diff is too large for 1 HTTP request/response.

These changes are abstracted from the initial proposal in #115 and solely aims to address cpp-linter/cpp-linter-action#249

@2bndy5 2bndy5 added the enhancement New feature or request label Sep 5, 2024
include hidden files in CI artifact upload
@2bndy5 2bndy5 force-pushed the paginated-fallback branch from 4a06724 to 895b7e7 Compare September 5, 2024 06:30
@codecov
Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (cf528d8) to head (43ea203).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #116   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        23    +1     
  Lines         1665      1718   +53     
=========================================
+ Hits          1665      1718   +53     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@2bndy5
Copy link
Contributor Author

2bndy5 commented Sep 7, 2024

With the new unit tests (modeled from actual HTTP responses), I'm confident this is safe to merge. It would be too much work to create a test condition where we have to parse over 300 file changes just to satisfy this patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants