Using the latest tag of a repo (original) (raw)

January 6, 2025, 2:37pm 1

Hi,

I would like to be able use the latest tag of a GitHub repo (the idea is that the README file of the repo contains a link to use the latest tag on MyBinder).

GitHub provides an URL of the form https://github.com/octo-org/octo-repo/releases/latest to this but I haven’t found a way to use this on MyBinder.

I was thinking about creating a synonymous (lightweight) tag for the latest tag (say latest). So the URL would always be https://mybinder.org/v2/gh/octo-org/octo-repo/latest but this tag would change over time. Can MyBinder handle that ?

Thanks in advance,
Mathieu

manics January 6, 2025, 7:36pm 2

That should work- BinderHub will resolve the Git reference to a commit when you try to launch the repository.

duboism January 7, 2025, 10:10am 3

Thanks for your answer. I did some tests and it seems to work. Would it be worth to document that somewhere (like in a FAQ/bag of trick section) ?