fix: nightly resolution to select newest published release (#562)

* fix(nightly): pick latest nightly by published_at

GitHub's /releases endpoint is not reliably ordered by published_at,
so resolveNightly could pick an older nightly than the most recent
one. Filter, sort by published_at desc, and take the first.

* test(nightly): add regression coverage for release ordering

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
Copilot
2026-05-18 21:38:28 -03:00
committed by GitHub
parent 5cc7ebb73d
commit 5daf1e915a
3 changed files with 23 additions and 2 deletions
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long