Using the latest tag of a repo

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

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

2 Likes

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) ?