This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-dist-tool.git
The following commit(s) were added to refs/heads/master by this push:
new 17eb4a9 add link to Jira project
17eb4a9 is described below
commit 17eb4a92bb7af5771b39247f0a5c5c01a1f6c559
Author: Hervé Boutemy <[email protected]>
AuthorDate: Sat Feb 13 21:50:18 2021 +0100
add link to Jira project
---
.../java/org/apache/maven/dist/tools/branches/ListBranchesMojo.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/src/main/java/org/apache/maven/dist/tools/branches/ListBranchesMojo.java
b/src/main/java/org/apache/maven/dist/tools/branches/ListBranchesMojo.java
index 83963e2..8495786 100644
--- a/src/main/java/org/apache/maven/dist/tools/branches/ListBranchesMojo.java
+++ b/src/main/java/org/apache/maven/dist/tools/branches/ListBranchesMojo.java
@@ -49,6 +49,8 @@ import org.jsoup.select.Elements;
@Mojo( name = "list-branches", requiresProject = false )
public class ListBranchesMojo extends AbstractMavenReport
{
+ private static final String JIRA_BASE_URL =
"https://issues.apache.org/jira/projects/";
+
private static final String GITBOX_URL =
"https://gitbox.apache.org/repos/asf";
private static final String MAVENBOX_JOBS_BASE_URL =
"https://ci-builds.apache.org/job/Maven/job/maven-box/job/";
@@ -342,6 +344,10 @@ public class ListBranchesMojo extends AbstractMavenReport
//jira branches
sink.tableCell();
+ sink.link( JIRA_BASE_URL + r.getRepositoryName() );
+ sink.rawText( JIRAPROJECTS.get( r.getRepositoryName() ) );
+ sink.link_();
+ sink.rawText( ": " );
if ( r.getJiraBranchesGit() == 0 )
{
sink.text( "-" );