ropensci / piggyback

:package: for using large(r) data files on GitHub
https://docs.ropensci.org/piggyback
GNU General Public License v3.0
185 stars 26 forks source link

Mismatch between GitHub "latest" release and piggyback's "latest" release #113

Closed tanho63 closed 9 months ago

tanho63 commented 9 months ago

GitHub allows you to change the latest release via a checkbox on the actual release page, such that an earlier release may be marked as the "latest".

image

Piggyback currently uses first by create_date, which can cause some confusion. We should update this behaviour to align with GitHub, and can do so by querying /repos/owner/repo/releases/latest

gh::gh("/repos/tanho63/tanho63/releases/latest") |> getElement("tag_name")
#> "v1"