size-label-action icon indicating copy to clipboard operation
size-label-action copied to clipboard

Set maximum size, if diff is too big

Open guettli opened this issue 1 year ago • 1 comments

Hi, thank you for that handy Github Action.

We get:

RequestError [HttpError]: Sorry, the diff exceeded the maximum number of files (300). Consider using 'List pull requests files' API or locally cloning the repository instead.: {"resource":"PullRequest","field":"diff","code":"too_large"}
    at /home/runner/_work/_actions/pascalgn/size-label-action/bbbaa0d5ccce[8](https://github.com/syself/foo/actions/runs/11365518112/job/31613876587?pr=1087#step:12:9)e2e76254560df5c64b82dac2e12/dist/index.js:2733:21
    at process.processTicksAndRejections (node:internal/process/task_queues:[9](https://github.com/syself/foo/actions/runs/11365518112/job/31613876587?pr=1087#step:12:10)5:5)
    at async main (/home/runner/_work/_actions/pascalgn/size-label-action/bbbaa0d5ccce8e2e76254560df5c64b82dac2e12/dist/index.js:71:27) {
  status: 406,

It would be great, if size-label-action would automatically set the biggest size, if above error occurs.

Maybe "off" by default. But it would be nice to have that for us.

guettli avatar Oct 16 '24 12:10 guettli

I think this is fixed with the latest release!

pascalgn avatar Oct 23 '24 09:10 pascalgn