google-github-actions / google-github-actions/run-gemini-cli
Github CLI for getting changed file list is buggy
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 285
- Avg merge
- 8h 8m
- Merged PRs (30d)
- 1
Description
TL;DR
Currently we are using github cli for getting the changed files list and it has a issue which throws 406 if changes are more than 20k lines but files are less.
could not find pull request diff: HTTP 406: Sorry, the diff exceeded the maximum number of lines (20000) (https://api.github.com/repos/org/repo/pulls/714)
PullRequest.diff too_large
The number of file changes in this PR is 150 only, should explore some other solution for getting file change list.
Expected behavior
No response
Observed behavior
No response
Action YAML
-
Log output
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue identifies GitHub CLI's changed-file retrieval and links CLI issue #10712; start by tracing the action's changed-file list entry point and reproduce the 406 case with a pull request whose diff exceeds 20,000 lines. Done means the action can obtain the file list for that case without relying on the failing diff response, with coverage for the regression.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, github-actions, typescript
- Domain
- ci-cd
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100