You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/11/04 13:09:59 UTC

[GitHub] [maven-release] michael-o commented on a diff in pull request #104: [MRELEASE-1078] Conventional commits

michael-o commented on code in PR #104:
URL: https://github.com/apache/maven-release/pull/104#discussion_r1014003025


##########
maven-release-plugin/src/it/projects/prepare/ccsemver-policy/pom.xml:
##########
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven.plugin.release.it</groupId>
+  <artifactId>ccsemver-policy</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <scm>
+    <connection>scm:dummytags|nul</connection>
+    <developerConnection>scm:dummytags|nul</developerConnection>
+  </scm>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-release-plugin</artifactId>
+        <version>@project.version@</version>
+        <configuration>
+          <allowReleasePluginSnapshot>true</allowReleasePluginSnapshot>
+          <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
+          <pushChanges>false</pushChanges>
+          <remoteTagging>false</remoteTagging>
+
+          <scmCommentPrefix>ci(Release): </scmCommentPrefix>
+          <scmReleaseCommitComment>ci(Release): Version @{releaseLabel}</scmReleaseCommitComment>
+          <tagNameFormat>v@{project.version}</tagNameFormat>
+
+          <projectVersionPolicyId>CCSemVerVersionPolicy</projectVersionPolicyId>
+
+          <!-- projectVersionPolicyConfig for the CCSemVerVersionPolicy is an XML structure:  -->
+          <!-- versionTag: A regex with 1 capture group that MUST extract the project.version from the SCM tag. -->
+          <!-- minorRules: A list regexes that will be matched against all lines in each commit message since   -->
+          <!--             the last tag. If matched the next version is at least a MINOR update.                -->
+          <!-- majorRules: A list regexes that will be matched against all lines in each commit message since   -->
+          <!--             the last tag. If matched the next version is at least a MAJOR update.                -->
+          <!-- If a match is found the commit will trigger either a minor or major version increase             -->
+          <!-- instead of only a patch increase.  -->
+          <projectVersionPolicyConfig>
+            <versionTag>^v([0-9]+(?:\.[0-9]+(?:\.[0-9]+)?)?)$</versionTag>
+            <majorRules>
+              <majorRule>^[a-zA-Z]+!(?:\([a-zA-Z0-9_-]+\))?: .*$</majorRule>
+              <majorRule>^BREAKING CHANGE:.*$</majorRule>
+            </majorRules>
+            <minorRules>
+              <minorRule>^feat(?:\([a-zA-Z0-9_-]+\))?: .*$</minorRule>
+            </minorRules>
+          </projectVersionPolicyConfig>

Review Comment:
   Yeah, let me first find the component I already forgot and then take care of this.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org