Skip to content

Commit aab7cfe

Browse files
committed
prettify-status.pl: strip trailing underscores
Many Fiji plugins have a trailing underscore in the artifactId, but the GitHub repo never includes this underscore. Let's add a "repo" field that is the same as artifactId, but excludes any trailing underscore.
1 parent 26a9951 commit aab7cfe

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

prettify-status.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ ($$)
4242
my $tag = $version ? "$artifactId-$version" : "";
4343
my $org = $orgs{$groupId};
4444
if (!$org) { $org = $groupId; }
45-
my $link = "https://github.com/$orgs{$groupId}/$artifactId";
45+
my $repo = $artifactId;
46+
$repo =~ s/_$//;
47+
my $link = "https://github.com/$orgs{$groupId}/$repo";
4648

4749
my $data = {
4850
groupId => $groupId,
@@ -52,6 +54,7 @@ ($$)
5254
version => $version,
5355
tag => $tag,
5456
org => $org,
57+
repo => $repo,
5558
};
5659

5760
if (not $org) {

0 commit comments

Comments
 (0)