[ 
https://issues.apache.org/jira/browse/SCM-977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17539806#comment-17539806
 ] 

ASF GitHub Bot commented on SCM-977:
------------------------------------

nielsbasjes commented on code in PR #135:
URL: https://github.com/apache/maven-scm/pull/135#discussion_r877550284


##########
maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/test/java/org/apache/maven/scm/provider/git/gitexe/command/changelog/GitChangeLogConsumerTest.java:
##########
@@ -172,4 +173,72 @@ public void testConsumer2()
         assertTrue( cf.getRevision() != null && cf.getRevision().length() > 0 
);
     }
 
+    public void testGitLogConsumer3()
+            throws Exception
+    {
+        GitChangeLogConsumer consumer = new GitChangeLogConsumer( new 
DefaultLog(), null );
+
+        File f = getTestFile( 
"/src/test/resources/git/changelog/gitlog3.gitlog" );
+
+        ConsumerUtils.consumeFile( f, consumer );
+
+        List<ChangeSet> modifications = consumer.getModifications();
+
+        assertEquals( 10, modifications.size() );
+
+        SimpleDateFormat sdf = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss Z" );
+        sdf.setTimeZone( TimeZone.getTimeZone( "GMT" ) );

Review Comment:
   Np.





> Retrieve the tags on commits using the changelog command.
> ---------------------------------------------------------
>
>                 Key: SCM-977
>                 URL: https://issues.apache.org/jira/browse/SCM-977
>             Project: Maven SCM
>          Issue Type: New Feature
>          Components: maven-scm-api, maven-scm-provider-gitexe, 
> maven-scm-provider-jgit, maven-scm-provider-mercurial (hg)
>            Reporter: Niels Basjes
>            Priority: Major
>
> My aim is to support having something like 
> [https://www.conventionalcommits.org/] in the maven-release-plugin.
> This simply means that the next version of a release is calculated from the 
> last tag in the version history and the patterns in the commit messages since 
> that tag.
> To support this idea the maven-scm should be extended to also retrieve the 
> tags with the changelog command on SCM implementations that support this idea.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to