Skip to content

Commit

Permalink
Fallback release name to tag name
Browse files Browse the repository at this point in the history
Release name is optional for git,. If you don't fill it in, the Releases will use the tag name as the title. If you build Travis from a git tag (non-release) it will convert it to a releases without a name.
  • Loading branch information
friday authored Aug 21, 2021
1 parent c0a6eb0 commit 83b311c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jQuery(function($) {
.addClass(!selectStable ? 'fa-dot-circle' : 'fa-circle');

$('#stable-release + .option-info')
.html('<b>v' + stable.name + '</b> from ' + new Date(stable.published_at).toLocaleDateString() +
.html('<b>v' + (stable.name || stable.tag_name) + '</b> from ' + new Date(stable.published_at).toLocaleDateString() +
' <a href="' + stable.html_url + '">Release notes</a>.');
$('#dev-release + .option-info')
.html('<b>v' + dev.name + '</b> from ' + new Date(dev.published_at).toLocaleDateString() +
.html('<b>v' + (dev.name || dev.tag_name) + '</b> from ' + new Date(dev.published_at).toLocaleDateString() +
' <a href="' + dev.html_url + '">Release notes</a>.');

var aurLink = selectStable ? 'https://aur.archlinux.org/packages/ulauncher/' :
Expand Down

0 comments on commit 83b311c

Please sign in to comment.