lock-threads icon indicating copy to clipboard operation
lock-threads copied to clipboard

GET request is deprecated

Open JC5 opened this issue 9 months ago • 3 comments

There's plenty of time still, but my output contains the following message:

[@octokit/request] "GET https://api.github.com/search/issues?q=repo%3Afirefly-iii%2Ffirefly-iii%20updated%3A%3C2025-02-19T02%3A26%3A13Z%20is%3Aclosed%20is%3Aunlocked%20is%3Aissue&sort=updated&order=desc&per_page=50" 
is deprecated. It is scheduled to be removed on Thu, 04 Sep 2025 00:00:00 GMT

JC5 avatar Mar 12 '25 06:03 JC5

Same issue

peilinok avatar Mar 12 '25 07:03 peilinok

@JC5 Try to use https://github.com/marketplace/actions/close-stale-issues

peilinok avatar Mar 12 '25 07:03 peilinok

Thanks. I'm specifically looking for an action that locks old issues, and your link does not seem to provide that functionality.

JC5 avatar Mar 12 '25 07:03 JC5

Since this action will stop working in 3 weeks, has anyone found a replacement?

vkbo avatar Aug 16 '25 06:08 vkbo

No, but as far as I can tell from the linked documentation there will be some syntax changes that this particular search query does not seem to be affected by. The query could be changed to include the AND keyword but as far as I can tell it's not mandatory (it defaults to AND).

I've not really managed to test this yet.

JC5 avatar Aug 19 '25 04:08 JC5

If you want, use JC5/[email protected]. Works the same, but gives no deprecation errors.

JC5 avatar Aug 19 '25 04:08 JC5

From a quick look the queries used by Lock Threads are not affected by the new advanced search syntax, and the deprecation warning should go away tomorrow. Please let me know if you notice any issue.

dessant avatar Sep 02 '25 08:09 dessant

I'm still seeing similar warnings, just with a different date. I opened https://github.com/dessant/lock-threads/issues/54.

mgol avatar Sep 23 '25 17:09 mgol

Hi @mgol, GitHub has delayed the switch to the new search syntax by two months, but the new syntax should not affect this action.

dessant avatar Sep 24 '25 06:09 dessant