Commit 1994544
committed
Fix pagination for commits and PRs with 100+ changed files
The ref and pull_request strategies both fetched only the first 100
files from the GitHub API without following Link headers. For commits
with more than 100 changed files, the callback only saw the first
page, causing the dox_graphql_publish_changes workflow to skip
publishing when the SDL file was beyond position 100.
This caused the doximity subgraph schema publish to be silently
skipped for HG-601 (PR #49569, 228 files changed) — the SDL file
config/graphql/federation_subgraph_schema.gql was at position >100.
Changes:
- Add getPaginated method to GithubApiClient that follows Link headers
- Update RefStrategy to merge files across all pages
- Update PullRequestStrategy to flatten results across all pages
- Add unit tests for pagination behavior
- Bump version to 1.1.0
- Update action.yml from node16 to node20 (node16 is deprecated)
CSVUEAN-30431 parent 07b2f2f commit 1994544
9 files changed
Lines changed: 457 additions & 243 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
0 commit comments