stale icon indicating copy to clipboard operation
stale copied to clipboard

reduce the number of issues this action queries

Open devoncarew opened this issue 1 year ago • 3 comments

This action currently queries all open issues when looking for stale issues:

https://github.com/actions/stale/blob/main/src/classes/issues-processor.ts#L564

This exhausts the number of github operations for larger repos (we currently have ~7k open issues). I believe this could be made more efficient by qualifying the query (this.client.rest.issues.listForRepo(...)) with the 'stale' label.

devoncarew avatar Aug 30 '23 17:08 devoncarew

This will likely be fixed by https://github.com/actions/stale/pull/1084.

devoncarew avatar Aug 30 '23 19:08 devoncarew

Hello @devoncarew Thank you for bringing this up. We will take a look and come back to you as soon as we have some news 😃

marko-zivic-93 avatar Sep 01 '23 05:09 marko-zivic-93

Any news @dsame? Would be nice to land https://github.com/actions/stale/pull/1084 if possible.

mraleph avatar Oct 24 '23 12:10 mraleph