Handle Large Diffs
### Welcome
- [x] Yes, I understand that the GitHub action repository is not the repository of golangci-lint itself.
- [x] Yes, I've searched similar issues on GitHub and didn't find any.
### Your feature request related to a problem? Please describe.
Large diffs can't be fetched from the GitHub API it seems
```
failed to fetch pull request patch: RequestError [HttpError]: Sorry, the diff exceeded the maximum number of lines (20000): {"resource":"PullRequest","field":"diff","code":"too_large"} - https://docs.github.com/rest/pulls/pulls#get-a-pull-request
only new issues on pull_request:
at /home/runner/work/_actions/golangci/golangci-lint-action/v9/dist/run/index.js:47763:21
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async requestWithGraphqlErrorHandling (/home/runner/work/_actions/golangci/golangci-lint-action/v9/dist/run/index.js:47489:20)
at async Job.doExecute (/home/runner/work/_actions/golangci/golangci-lint-action/v9/dist/run/index.js:56610:18) {
```
### Describe the solution you'd like.
There being a clear fallback to obtain the diff - eg. clone the fork/repo and checkout the SHA
### Describe alternatives you've considered.
Didn't see any
### Additional context.
_No response_
1 条评论