[ 
https://issues.apache.org/jira/browse/MCHANGES-360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov updated MCHANGES-360:
------------------------------------
    Issue Type: New Feature  (was: Improvement)

> Add support for issues with more than one label
> -----------------------------------------------
>
>                 Key: MCHANGES-360
>                 URL: https://issues.apache.org/jira/browse/MCHANGES-360
>             Project: Maven Changes Plugin
>          Issue Type: New Feature
>          Components: announcement
>    Affects Versions: 2.11
>            Reporter: David Pilato
>            Priority: Trivial
>
> If your github issues have more than one label, the announcement.vm file is 
> not generated correctly.
> For example, I added to an issue labels:
> * 2.0.0
> * update
> When I generate the report, the report is empty.
> If I remove 2.0.0, the report is correct.
> This issue is caused by this: 
> https://github.com/apache/maven-plugins/blob/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/github/GitHubDownloader.java#L169-L173
> We extract here only the first label.
> {code:title=GitHubDownloader.java}
> List<Label> labels = githubIssue.getLabels();
> if ( labels != null && !labels.isEmpty() )
> {
>    issue.setType( labels.get( 0 ).getName() );
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to