You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2019/12/20 14:45:01 UTC

[jira] [Resolved] (MCHANGES-360) Add support for issues with more than one label

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

Elliotte Rusty Harold resolved MCHANGES-360.
--------------------------------------------
    Resolution: Invalid

> 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: Major
>
> 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
(v8.3.4#803005)