Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 7

Why last release is not marked as "latest release"

Hello,
 
According to Github docs, the last release of a project is automatically marked as "latest release", visually and with "/releases/latest" url suffix.
 
 latest release.jpg
 
 
Here is one example where it works.
 
 
 
But it doesn't work in the following project. The last release is not visually marked as "latest release", and the "/releases/latest" suffix doesn't work.
 
 
 
Why doesn't it work here? What is missing?
 
TIA
6 Replies
Highlighted
Copilot Lvl 3
Message 2 of 7

Re: Why last release is not marked as "latest release"

In the example where "latest release" works, those Releases were all created via either the GitHub web interface or the API. When the release is created, it also creates a tag. So every release has a tag, but not every tag has a full release. 

 

The one that doesn't have the "latest release" feature is because everything you see there are tags that were pushed to the repository without having a release formally created. We still show them on the Releases page because a tag is also a milestone in the repository history, but since no title, description, or assets were added to the tag, it doesn't have the same functionality as a full Release does. That's why the "latest release" button isn't showing there. 

 

Hope that clears up what you're seeing a little bit!

Highlighted
Copilot Lvl 3
Message 3 of 7

Re: Why last release is not marked as "latest release"

Hello! I'm struggling with the same issue. I'm working for a company that has a semi-automated system that creates release tags. Now we have started monitoring project for all releases in our organization and we want to use the Release event in the API for that. But since our "release tag" is not considered a full release, it does not create "Release" event. We can of course use "New tag event", but we'd much prefer to be able to create full Release  with title, description, or assets from the command line. Is there any way to that?

Highlighted
Community Manager
Message 4 of 7

Re: Why last release is not marked as "latest release"

Hi @Dodotree,

 

You can do this using the Create a release API endpoint as long as you know the tag name that you want to attach the release to. This does not allow you to attach assets, however.

 

Thanks!

Highlighted
Copilot Lvl 2
Message 5 of 7

Re: Why last release is not marked as "latest release"

You can employ lastversion - as long as your tags include version information, it will report the latest release version correctly.

Highlighted
Ground Controller Lvl 1
Message 6 of 7

Re: Why last release is not marked as "latest release"

I ran into this today and found a straightforward resolution and thought I would share for the next person.

 

We created a git tag for our release using the git command line. This showed up in GitHub, even under the Releases view.  It was in the "Other Tags" section and an older version was highlighted as "Latest Release".

 

Resolution: I clicked into the tag, clicked the 'Edit tag' button, added a value for the 'Release title' field, then clicked the 'Publish release' button.  This converted the tag to a release and moved the 'Latest Release' badge to the correct release.

Highlighted
Copilot Lvl 2
Message 7 of 7

Re: Why last release is not marked as "latest release"

Hi, I find it interesting thank you for sharing